C# Class TUP.AsmResolver.NET.StringsHeap

A heap that holds all string values of all members in the tables heap.
Inheritance: TUP.AsmResolver.NET.Heap
ファイルを表示 Open project: Rex-Hays/GNIDA Class Usage Examples

Public Methods

Method Description
ClearCache ( ) : void
Dispose ( ) : void

Frees all the streams used in this heap.

GetStringByOffset ( uint offset ) : string

Gets the string by its offset.

GetStringOffset ( string value ) : uint

Gets an offset of a string value. If it is not present in the strings heap, it will add it.

TryGetStringByOffset ( uint offset, string &value ) : bool

Private Methods

Method Description
Initialize ( ) : void
ReadAllStrings ( ) : void
StringsHeap ( NETHeader netheader, int headeroffset, Structures rawHeader, string name ) : System

Method Details

ClearCache() public method

public ClearCache ( ) : void
return void

Dispose() public method

Frees all the streams used in this heap.
public Dispose ( ) : void
return void

GetStringByOffset() public method

Gets the string by its offset.
public GetStringByOffset ( uint offset ) : string
offset uint The offset of the string.
return string

GetStringOffset() public method

Gets an offset of a string value. If it is not present in the strings heap, it will add it.
public GetStringOffset ( string value ) : uint
value string The string value to get the offset from.
return uint

TryGetStringByOffset() public method

public TryGetStringByOffset ( uint offset, string &value ) : bool
offset uint
value string
return bool