Exemple #1
0
        private IEnumerable <ProgramAddress> GetPointersInSegment(ImageSegment s)
        {
            var rdr = s.CreateImageReader(program.Architecture);

            return(program.Platform.CreatePointerScanner(
                       program.SegmentMap,
                       rdr,
                       addresses,
                       PointerScannerFlags.All)
                   .Select(a => new ProgramAddress(program, a)));
        }
Exemple #2
0
        private IEnumerable <AddressSearchHit> GetPointersInSegment(ImageSegment s)
        {
            var rdr = s.CreateImageReader(program.Architecture);

            return(program.Platform.CreatePointerScanner(
                       program.SegmentMap,
                       rdr,
                       addresses,
                       PointerScannerFlags.All)
                   .Select(a => new AddressSearchHit
            {
                Program = program,
                Address = a,
                Length = 1
            }));
        }