RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
OMF::OMFFormat::UnknownRecord Class Reference

An unparsed record type, if the format is not recognized. More...

#include <omf.h>

Inheritance diagram for OMF::OMFFormat::UnknownRecord:
OMF::OMFFormat::Record

Public Member Functions

 UnknownRecord (uint8_t record_type=0)
 
void ReadRecordContents (OMFFormat *omf, Linker::Reader &rd) override
 Reads the record contents, except for the type, length and checksum.
 
uint16_t GetRecordSize (OMFFormat *omf) const override
 Calculates the required bytes to write the record, might be less than record_length.
 
void WriteRecordContents (OMFFormat *omf, ChecksumWriter &wr) const override
 Writes the record contents, except for the type, length and checksum.
 
- Public Member Functions inherited from OMF::OMFFormat::Record
 Record (uint8_t record_type=0)
 
virtual void WriteRecord (OMFFormat *omf, Linker::Writer &wr) const
 Writes the full record.
 

Public Attributes

std::vector< uint8_t > data
 Contents of the record, without the type, length and checksum.
 
- Public Attributes inherited from OMF::OMFFormat::Record
offset_t record_offset
 Offset of record within the file.
 
uint16_t record_length
 Length of record body file, excluding the type byte and 2-byte length field.
 
uint8_t record_type
 A byte value identifying the type of record.
 

Detailed Description

An unparsed record type, if the format is not recognized.

Member Function Documentation

◆ GetRecordSize()

uint16_t OMFFormat::UnknownRecord::GetRecordSize ( OMFFormat * omf) const
overridevirtual

Calculates the required bytes to write the record, might be less than record_length.

Implements OMF::OMFFormat::Record.

◆ ReadRecordContents()

void OMFFormat::UnknownRecord::ReadRecordContents ( OMFFormat * omf,
Linker::Reader & rd )
overridevirtual

Reads the record contents, except for the type, length and checksum.

Implements OMF::OMFFormat::Record.

◆ WriteRecordContents()

void OMFFormat::UnknownRecord::WriteRecordContents ( OMFFormat * omf,
ChecksumWriter & wr ) const
overridevirtual

Writes the record contents, except for the type, length and checksum.

Implements OMF::OMFFormat::Record.


The documentation for this class was generated from the following files: