C# Class SharpTune.RomMod.Blob

Mostra file Open project: Merp/SharpTune Class Usage Examples

Public Methods

Method Description
AddRecord ( IEnumerable content ) : void

Add the given content to the blob.

Blob ( uint startAddress, IEnumerable content ) : System

Create a new blob using the given start address and content.

CloneWithNewStartAddress ( uint newStartAddress ) : Blob
GetDataString ( ) : string
ToString ( ) : string

Describe the blob in human terms.

TryGetByte ( byte &result, int &offset ) : bool

Try to get a byte from the blob at the given offset. If successful, increment the offset.

TryGetUInt16 ( UInt16 &result, int &offset ) : bool

Try to get a unsigned short from the blob at the given offset. If successful, incrmenet offset

TryGetUInt32 ( uint &result, int &offset ) : bool

Try to get an unsigned 32-bit integer from the blob at the given offset. If successful, increment the offset.

Method Details

AddRecord() public method

Add the given content to the blob.
public AddRecord ( IEnumerable content ) : void
content IEnumerable
return void

Blob() public method

Create a new blob using the given start address and content.
public Blob ( uint startAddress, IEnumerable content ) : System
startAddress uint
content IEnumerable
return System

CloneWithNewStartAddress() public method

public CloneWithNewStartAddress ( uint newStartAddress ) : Blob
newStartAddress uint
return Blob

GetDataString() public method

public GetDataString ( ) : string
return string

ToString() public method

Describe the blob in human terms.
public ToString ( ) : string
return string

TryGetByte() public method

Try to get a byte from the blob at the given offset. If successful, increment the offset.
public TryGetByte ( byte &result, int &offset ) : bool
result byte
offset int
return bool

TryGetUInt16() public method

Try to get a unsigned short from the blob at the given offset. If successful, incrmenet offset
public TryGetUInt16 ( UInt16 &result, int &offset ) : bool
result System.UInt16
offset int
return bool

TryGetUInt32() public method

Try to get an unsigned 32-bit integer from the blob at the given offset. If successful, increment the offset.
public TryGetUInt32 ( uint &result, int &offset ) : bool
result uint
offset int
return bool