C# Класс SharpTune.RomMod.SRecord

Represents a single row of a Motorola S-Record file.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ActualRecordCount int
Address uint
ExpectedRecordCount int
Header string
IsEntryPoint bool
IsValid bool
LineNumber int
Payload byte[]
RawData string

Открытые методы

Метод Описание
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.

Описание методов

SRecord() публичный Метод

Constructor for record-count records.
public SRecord ( char typeCode, int actualRecordCount, int expectedRecordCount ) : System
typeCode char
actualRecordCount int
expectedRecordCount int
Результат System

SRecord() публичный Метод

Constructor for header records.
public SRecord ( char typeCode, string header ) : System
typeCode char
header string
Результат System

SRecord() публичный Метод

Constructor for unsupported records.
public SRecord ( char typeCode, string rawData, int lineNumber ) : System
typeCode char
rawData string
lineNumber int
Результат System

SRecord() публичный Метод

Constructor for entry-point records.
public SRecord ( char typeCode, uint address ) : System
typeCode char
address uint
Результат System

SRecord() публичный Метод

Constructor for data payload records.
public SRecord ( char typeCode, uint address, byte payload ) : System
typeCode char
address uint
payload byte
Результат System

ToString() публичный Метод

Renders this record as a string, for human consumption.
public ToString ( ) : string
Результат string

Описание свойств

ActualRecordCount публичное свойство

Actual number of records in the file.
public int ActualRecordCount
Результат int

Address публичное свойство

Address of the data (or entry-point).
public uint Address
Результат uint

ExpectedRecordCount публичное свойство

Expected number of records in the file.
public int ExpectedRecordCount
Результат int

Header публичное свойство

Content of a header record.
public string Header
Результат string

IsEntryPoint публичное свойство

Indicates whether the row contains an entry-point address.
public bool IsEntryPoint
Результат bool

IsValid публичное свойство

If false, the row was corrupt.
public bool IsValid
Результат bool

LineNumber публичное свойство

Only used for invalid records - will be zero otherwise.
public int LineNumber
Результат int

Payload публичное свойство

Payload of a data record.
public byte[] Payload
Результат byte[]

RawData публичное свойство

Raw SRecord text.
public string RawData
Результат string