/// Creates a new pointer chain given an array of addresses.
Creates a new pointer chain given an array of addresses.
Creates a new pointer chain given an array of addresses .
pub fn new(chain: &[usize]) -> PointerChain<T> {
    let mut it = chain.iter();
    let base = *it.next().unwrap() as usize as *mut T;
    PointerChain {
      proc: unsafe { GetCurrentProcess() },
      base,
      offsets: it.copied().collect(), // it.map(|x| *x).collect(),
    }
  }
pub fn new ( chain : & [ usize ] ) -> PointerChain < T > { let mut it = chain . iter ( ) ; let base = * it . next ( ) . unwrap ( ) as usize as * mut T ; PointerChain { proc : unsafe { GetCurrentProcess ( ) } , base , offsets : it . copied ( ) . collect ( ) , // it.map(|x| *x).collect(), } }
Creates a new pointer chain given an array of addresses.
Creates a new pointer chain given an array of addresses .
chain
&[usize]