Ejemplo n.º 1
0
        public RelocationBlock(BinaryReader reader)
        {
            Start = reader.BaseStream.Position;

            _PageRVA   = reader.ReadUInt32();
            _BlockSize = reader.ReadUInt32();

            uint numEntries = (_BlockSize / 2 - 4);

            _entries = new Relocation[numEntries];

            for (int i = 0; i < numEntries; ++i)
            {
                _entries[i] = new Relocation(reader.ReadUInt16());
            }

            Length = reader.BaseStream.Position - Start;
        }
Ejemplo n.º 2
0
        public RelocationBlock(BinaryReader reader)
        {
            Start = reader.BaseStream.Position;

            _PageRVA = reader.ReadUInt32();
            _BlockSize = reader.ReadUInt32();

            uint numEntries = (_BlockSize/2 - 4);

            _entries = new Relocation[numEntries];

            for (int i = 0; i < numEntries; ++i)
            {
                _entries[i] = new Relocation(reader.ReadUInt16());
            }

            Length = reader.BaseStream.Position - Start;
        }