C# Class SharpTune.RomMod.SRecord

Represents a single row of a Motorola S-Record file.
ファイルを表示 Open project: Merp/SharpTune Class Usage Examples

Public Properties

Property Type Description
ActualRecordCount int
Address uint
ExpectedRecordCount int
Header string
IsEntryPoint bool
IsValid bool
LineNumber int
Payload byte[]
RawData string

Public Methods

Method Description
SRecord ( char typeCode, int actualRecordCount, int expectedRecordCount ) : System

Constructor for record-count records.

SRecord ( char typeCode, string header ) : System

Constructor for header records.

SRecord ( char typeCode, string rawData, int lineNumber ) : System

Constructor for unsupported records.

SRecord ( char typeCode, uint address ) : System

Constructor for entry-point records.

SRecord ( char typeCode, uint address, byte payload ) : System

Constructor for data payload records.

ToString ( ) : string

Renders this record as a string, for human consumption.

Method Details

SRecord() public method

Constructor for record-count records.
public SRecord ( char typeCode, int actualRecordCount, int expectedRecordCount ) : System
typeCode char
actualRecordCount int
expectedRecordCount int
return System

SRecord() public method

Constructor for header records.
public SRecord ( char typeCode, string header ) : System
typeCode char
header string
return System

SRecord() public method

Constructor for unsupported records.
public SRecord ( char typeCode, string rawData, int lineNumber ) : System
typeCode char
rawData string
lineNumber int
return System

SRecord() public method

Constructor for entry-point records.
public SRecord ( char typeCode, uint address ) : System
typeCode char
address uint
return System

SRecord() public method

Constructor for data payload records.
public SRecord ( char typeCode, uint address, byte payload ) : System
typeCode char
address uint
payload byte
return System

ToString() public method

Renders this record as a string, for human consumption.
public ToString ( ) : string
return string

Property Details

ActualRecordCount public_oe property

Actual number of records in the file.
public int ActualRecordCount
return int

Address public_oe property

Address of the data (or entry-point).
public uint Address
return uint

ExpectedRecordCount public_oe property

Expected number of records in the file.
public int ExpectedRecordCount
return int

Header public_oe property

Content of a header record.
public string Header
return string

IsEntryPoint public_oe property

Indicates whether the row contains an entry-point address.
public bool IsEntryPoint
return bool

IsValid public_oe property

If false, the row was corrupt.
public bool IsValid
return bool

LineNumber public_oe property

Only used for invalid records - will be zero otherwise.
public int LineNumber
return int

Payload public_oe property

Payload of a data record.
public byte[] Payload
return byte[]

RawData public_oe property

Raw SRecord text.
public string RawData
return string