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::LibraryHeaderRecord< RecordTypeByte, FormatType, ModuleType > Class Template Reference

Library header record, used for LIBHED. More...

#include <omf.h>

Inheritance diagram for OMF::OMFFormat::LibraryHeaderRecord< RecordTypeByte, FormatType, ModuleType >:
OMF::OMFFormat::Record< RecordTypeByte, FormatType, ModuleType >

Public Member Functions

 LibraryHeaderRecord (RecordTypeByte record_type=RecordTypeByte(0))
 
void ReadRecordContents (FormatType *omf, ModuleType *mod, Linker::Reader &rd) override
 Reads the record contents, except for the type, length and checksum.
 
uint16_t GetRecordSize (FormatType *omf, ModuleType *mod) const override
 Calculates the required bytes to write the record, might be less than record_length.
 
void WriteRecordContents (FormatType *omf, ModuleType *mod, ChecksumWriter &wr) const override
 Writes the record contents, except for the type, length and checksum.
 
- Public Member Functions inherited from OMF::OMFFormat::Record< RecordTypeByte, FormatType, ModuleType >
 Record (RecordTypeByte record_type=RecordTypeByte(0))
 
offset_t RecordEnd () const
 
virtual void WriteRecord (FormatType *omf, ModuleType *mod, Linker::Writer &wr) const
 Writes the full record.
 
virtual void CalculateValues (FormatType *omf, ModuleType *mod)
 Updates all fields that will be used for writing an OMF module, should be called before output.
 
virtual void ResolveReferences (FormatType *omf, ModuleType *mod)
 Resolves any fields read from an OMF module, should be called after inpnut.
 
virtual void DumpAddFields (Dumper::Dumper &dump, Dumper::Region &region, const FormatType *omf, const ModuleType *mod, size_t record_index) const
 
virtual void Dump (Dumper::Dumper &dump, const FormatType *omf, const ModuleType *mod, size_t record_index) const
 
bool Is32Bit (FormatType *omf) const
 Records are 32-bit if the least significant bit of their record type is set (only meaningful for OMF86Format)
 
size_t GetOffsetSize (FormatType *omf) const
 The number of bytes in an offset appearing inside the record, 2 for 16-bit records, 4 for 32-bit records (only meaningful for OMF86Format)
 

Public Attributes

uint16_t module_count
 Number of modules contained.
 
uint16_t block_number
 Offset to the first byte of the library module, as a block:byte pair.
 
uint16_t byte_number
 Offset to the first byte of the library module, as a block:byte pair.
 
- Public Attributes inherited from OMF::OMFFormat::Record< RecordTypeByte, FormatType, ModuleType >
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.
 
RecordTypeByte record_type
 A byte value identifying the type of record.
 

Detailed Description

template<typename RecordTypeByte, typename FormatType, typename ModuleType>
class OMF::OMFFormat::LibraryHeaderRecord< RecordTypeByte, FormatType, ModuleType >

Library header record, used for LIBHED.

Member Function Documentation

◆ GetRecordSize()

template<typename RecordTypeByte , typename FormatType , typename ModuleType >
uint16_t OMFFormat::LibraryHeaderRecord::GetRecordSize ( FormatType * omf,
ModuleType * mod ) const
overridevirtual

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

Implements OMF::OMFFormat::Record< RecordTypeByte, FormatType, ModuleType >.

◆ ReadRecordContents()

template<typename RecordTypeByte , typename FormatType , typename ModuleType >
void OMFFormat::LibraryHeaderRecord::ReadRecordContents ( FormatType * omf,
ModuleType * mod,
Linker::Reader & rd )
overridevirtual

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

Implements OMF::OMFFormat::Record< RecordTypeByte, FormatType, ModuleType >.

◆ WriteRecordContents()

template<typename RecordTypeByte , typename FormatType , typename ModuleType >
void OMFFormat::LibraryHeaderRecord::WriteRecordContents ( FormatType * omf,
ModuleType * mod,
ChecksumWriter & wr ) const
overridevirtual

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

Implements OMF::OMFFormat::Record< RecordTypeByte, FormatType, ModuleType >.


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