PERWAPI.PEReader.GetResource C# (CSharp) Method

GetResource() private method

private GetResource ( uint offset ) : byte[]
offset uint
return byte[]
        internal byte[] GetResource(uint offset)
        {
            BaseStream.Position = GetOffset(resourcesRVA)+offset;
            uint resSize = ReadUInt32();
            return ReadBytes((int)resSize);
        }

Usage Example

Ejemplo n.º 1
0
 internal override void Resolve(PEReader buff)
 {
     impl = buff.GetCodedElement(CIx.Implementation,implIx);
     if (impl == null) {
         if (!buff.skipBody)
             resourceBytes = buff.GetResource(fileOffset);
     }
 }