PERWAPI.PEReader.GetFieldType C# (CSharp) Метод

GetFieldType() приватный Метод

private GetFieldType ( uint blobIx ) : Type
blobIx uint
Результат Type
        internal Type GetFieldType(uint blobIx)
        {
            //Console.WriteLine("Getting field type");
            blob.GoToIndex(blobIx);
            uint blobSize = blob.ReadCompressedNum();
            byte fldByte = blob.ReadByte();
            if (fldByte != 0x6)
                throw new Exception("Expected field signature");
            //if ((currClass != null) && (currClass is ClassRef))
            //  currClass = null;
            return GetBlobType(); //currClass,null);
        }

Usage Example

Пример #1
0
 internal void Resolve(PEReader buff, uint fIx)
 {
     /*
     if ((flags & HasFieldMarshal) != 0)
       marshalType = FieldMarshal.FindMarshalType(buff,this,
         buff.MakeCodedIndex(CIx.HasFieldMarshal,MDTable.Field,fIx));
     if ((flags & HasFieldRVA) != 0)
       initVal = FieldRVA.FindValue(buff,this,fIx);
     if ((flags & HasDefault) != 0)
       constVal = ConstantElem.FindConst(buff,this,
         buff.MakeCodedIndex(CIx.HasConstant,MDTable.Field,fIx));
     long offs = FieldLayout.FindLayout(buff,this,fIx);
     if (offs > -1){
       hasOffset = true;
       offset = (uint)offs;
     }
     */
     buff.currentClassScope = parent;
     type = buff.GetFieldType(sigIx);
     buff.currentClassScope = null;
 }
All Usage Examples Of PERWAPI.PEReader::GetFieldType