PERWAPI.PEReader.GetBlobNativeType C# (CSharp) Method

GetBlobNativeType() private method

private GetBlobNativeType ( ) : NativeType
return NativeType
        internal NativeType GetBlobNativeType()
        {
            byte typeIx = blob.ReadByte();
            if (typeIx == (byte)NativeTypeIx.Array) {
                return new NativeArray(GetBlobNativeType(),blob.ReadCompressedNum(),
                    blob.ReadCompressedNum(), blob.ReadCompressedNum());
            } else
                return NativeType.GetNativeType(typeIx);
        }

Same methods

PEReader::GetBlobNativeType ( uint blobIx ) : NativeType

Usage Example

Ejemplo n.º 1
0
 internal override void Resolve(PEReader buff)
 {
     field = buff.GetCodedElement(CIx.HasFieldMarshal,parentIx);
     nt = buff.GetBlobNativeType(ntIx);
     if (field is FieldDef) {
         ((FieldDef)field).SetMarshalType(nt);
     } else {
         ((Param)field).SetMarshalType(nt);
     }
 }