Mono.Cecil.PE.ImageReader.ReadHeapData C# (CSharp) Method

ReadHeapData() private method

private ReadHeapData ( uint offset, uint size ) : byte[]
offset uint
size uint
return byte[]
        byte[] ReadHeapData(uint offset, uint size)
        {
            var position = BaseStream.Position;
            MoveTo (offset + image.MetadataSection.PointerToRawData);
            var data = ReadBytes ((int) size);
            BaseStream.Position = position;

            return data;
        }