C# Class PERWAPI.PEReader

Inheritance: System.IO.BinaryReader
显示文件 Open project: xored/f4 Class Usage Examples

Public Methods

Method Description
GetGUID ( ) : System.Guid
GetUserString ( ) : string
ReadByteCodes ( MethodDef meth, uint rva ) : void
ReadPEFile ( string filename, bool skipBody ) : PEFile

Private Methods

Method Description
CheckForRefMerges ( ) : void
CodedIndex ( CIx code, uint ix ) : uint
CodedTable ( CIx code, uint ix ) : MDTable
DoByteCodes ( uint len, MethodDef thisMeth ) : PERWAPI.CILInstruction[]
FirstBlobByte ( uint ix ) : byte
GetAssemblyRefNames ( ) : string[]
GetAssemblyRefs ( ) : AssemblyRef[]
GetBlob ( ) : byte[]
GetBlob ( uint ix ) : byte[]
GetBlobConst ( int constType ) : Constant
GetBlobIx ( ) : uint
GetBlobNativeType ( ) : NativeType
GetBlobNativeType ( uint blobIx ) : NativeType
GetBlobString ( ) : string
GetBlobType ( ) : Type
GetBlobType ( uint blobIx ) : Type
GetCodedElement ( CIx code, uint ix ) : MetaDataElement
GetCodedIndex ( CIx codedIx ) : uint
GetDataConstant ( uint rva, Type constType ) : DataConstant
GetElement ( MDTable tabIx, uint ix ) : MetaDataElement
GetExportedInterface ( string filename ) : ReferenceScope
GetFieldType ( uint blobIx ) : Type
GetFile ( string filename ) : FileStream
GetFileDesc ( string name ) : ModuleFile
GetGUIDIx ( ) : uint
GetGenericParams ( MethodDef meth ) : void
GetIndex ( MDTable tabIx ) : uint
GetListOfType ( ) : Type[]
GetOffset ( uint rva ) : uint
GetResource ( uint offset ) : byte[]
GetSection ( uint rva ) : Section
GetString ( ) : string
GetString ( uint ix ) : string
GetStringIx ( ) : uint
GetTableSize ( MDTable tabIx ) : uint
GetTokenElement ( uint token ) : MetaDataElement
InputError ( ) : void
InsertInTable ( MDTable tabIx, uint ix, MetaDataElement elem ) : void
IsFieldSig ( uint blobIx ) : bool
MakeCodedIndex ( CIx code, MDTable tab, uint ix ) : uint
MetaDataError ( string msg ) : void
PEReader ( PEFile pefile, System file, bool refs, bool skipBody ) : System
ReadCLIHeader ( ) : void
ReadConst ( int constType, BinaryReader blob ) : Constant
ReadDOSHeader ( ) : void
ReadFileHeader ( ) : void
ReadLocalSig ( uint sigIx ) : Local[]
ReadMetaData ( ) : void
ReadMetaDataTableRefs ( ) : void
ReadMetaDataTables ( ) : void
ReadMethSig ( Method currMeth, bool firstByteRead ) : MethSig
ReadMethSig ( Method thisMeth, string name, uint blobIx ) : MethSig
ReadMethSig ( Method thisMeth, uint blobIx ) : MethSig
ReadMethSpecSig ( uint blobIx ) : Type[]
ReadMethodImpls ( ClassDef theClass, uint classIx ) : void
ReadPropertySig ( uint sigIx, Property prop ) : void
ReadSectionHeaders ( ) : void
ReadStreamName ( ) : String
ReadTildeStreamStart ( ) : void
ReadZeros ( int num ) : void
ReplaceSig ( Signature sig, Type sigType ) : void
SetElementPosition ( MDTable tabIx, uint ix ) : void
SetThisScope ( ) : void
SetUpTableInfo ( ) : void

Method Details

GetGUID() public method

public GetGUID ( ) : System.Guid
return System.Guid

GetUserString() public method

public GetUserString ( ) : string
return string

ReadByteCodes() public method

public ReadByteCodes ( MethodDef meth, uint rva ) : void
meth MethodDef
rva uint
return void

ReadPEFile() public static method

public static ReadPEFile ( string filename, bool skipBody ) : PEFile
filename string
skipBody bool
return PEFile