C# Class TUP.AsmResolver.NET.BlobHeap

Represents the blob heap stream containing various values of many metadata members.
Inheritance: MetaDataStream
ファイルを表示 Open project: Rex-Hays/GNIDA Class Usage Examples

Public Methods

Method Description
ClearCache ( ) : void
Dispose ( ) : void
GetBlob ( uint index ) : byte[]

Gets the blob value by it's signature/index.

GetBlobIndex ( byte blobValue ) : uint
GetBlobReader ( uint index ) : BlobSignatureReader

Gets the blob value by it's signature/index and creates a binary reader.

GetBlobReader ( uint index, IGenericContext instance ) : BlobSignatureReader

Gets the blob value by it's signature/index and creates a binary reader using a generic instance.

ReadConstantValue ( ElementType type, uint signature ) : object
ReadCustomAttributeSignature ( CustomAttribute parent, uint signature ) : CustomAttributeSignature
ReadGenericArgumentsSignature ( uint signature, IGenericContext context ) : TUP.AsmResolver.NET.Specialized.TypeReference[]
ReadMemberRefSignature ( uint sig, IGenericContext context ) : IMemberSignature
ReadPropertySignature ( uint signature, PropertyDefinition parentProperty ) : PropertySignature
ReadTypeSignature ( uint signature, IGenericContext paramProvider ) : TypeReference
ReadVariableSignature ( uint signature, MethodDefinition parentMethod ) : TUP.AsmResolver.NET.Specialized.MSIL.VariableDefinition[]
TryGetBlobReader ( uint index, BlobSignatureReader &reader ) : bool
TryGetBlobReader ( uint index, IGenericContext instance, BlobSignatureReader &reader ) : bool

Private Methods

Method Description
AddMissingGenericParameters ( IGenericParamProvider provider, int index ) : void
BlobHeap ( NETHeader netheader, int headeroffset, Structures rawHeader, string name ) : System
Initialize ( ) : void
ReadAllBlobs ( ) : void
Reconstruct ( ) : void

Method Details

ClearCache() public method

public ClearCache ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

GetBlob() public method

Gets the blob value by it's signature/index.
public GetBlob ( uint index ) : byte[]
index uint The index or signature to get the blob value from.
return byte[]

GetBlobIndex() public method

public GetBlobIndex ( byte blobValue ) : uint
blobValue byte
return uint

GetBlobReader() public method

Gets the blob value by it's signature/index and creates a binary reader.
public GetBlobReader ( uint index ) : BlobSignatureReader
index uint The index or signature to get the blob value from.
return BlobSignatureReader

GetBlobReader() public method

Gets the blob value by it's signature/index and creates a binary reader using a generic instance.
public GetBlobReader ( uint index, IGenericContext instance ) : BlobSignatureReader
index uint The index or signature to get the blob value from.
instance IGenericContext The generic instance that is being used as a context.
return BlobSignatureReader

ReadConstantValue() public method

public ReadConstantValue ( ElementType type, uint signature ) : object
type ElementType
signature uint
return object

ReadCustomAttributeSignature() public method

public ReadCustomAttributeSignature ( CustomAttribute parent, uint signature ) : CustomAttributeSignature
parent TUP.AsmResolver.NET.Specialized.CustomAttribute
signature uint
return TUP.AsmResolver.NET.Specialized.CustomAttributeSignature

ReadGenericArgumentsSignature() public method

public ReadGenericArgumentsSignature ( uint signature, IGenericContext context ) : TUP.AsmResolver.NET.Specialized.TypeReference[]
signature uint
context IGenericContext
return TUP.AsmResolver.NET.Specialized.TypeReference[]

ReadMemberRefSignature() public method

public ReadMemberRefSignature ( uint sig, IGenericContext context ) : IMemberSignature
sig uint
context IGenericContext
return IMemberSignature

ReadPropertySignature() public method

public ReadPropertySignature ( uint signature, PropertyDefinition parentProperty ) : PropertySignature
signature uint
parentProperty TUP.AsmResolver.NET.Specialized.PropertyDefinition
return TUP.AsmResolver.NET.Specialized.PropertySignature

ReadTypeSignature() public method

public ReadTypeSignature ( uint signature, IGenericContext paramProvider ) : TypeReference
signature uint
paramProvider IGenericContext
return TUP.AsmResolver.NET.Specialized.TypeReference

ReadVariableSignature() public method

public ReadVariableSignature ( uint signature, MethodDefinition parentMethod ) : TUP.AsmResolver.NET.Specialized.MSIL.VariableDefinition[]
signature uint
parentMethod TUP.AsmResolver.NET.Specialized.MethodDefinition
return TUP.AsmResolver.NET.Specialized.MSIL.VariableDefinition[]

TryGetBlobReader() public method

public TryGetBlobReader ( uint index, BlobSignatureReader &reader ) : bool
index uint
reader BlobSignatureReader
return bool

TryGetBlobReader() public method

public TryGetBlobReader ( uint index, IGenericContext instance, BlobSignatureReader &reader ) : bool
index uint
instance IGenericContext
reader BlobSignatureReader
return bool