C# 클래스 SharpTune.RomMod.SRecord

Represents a single row of a Motorola S-Record file.
파일 보기 프로젝트 열기: Merp/SharpTune 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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