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

Base class for a family of Intel Relocatable Object formats. More...

#include <omf.h>

Inheritance diagram for OMF::OMFFormat:
Linker::Format Linker::Image OMF::OMF86Format

Classes

class  Record
 Base class representing OMF record types. More...
 
class  UnknownRecord
 An unparsed record type, if the format is not recognized. More...
 

Static Public Member Functions

static std::string ReadString (Linker::Reader &rd, size_t max_bytes=size_t(-1))
 Reads a string prefixed with a length byte.
 
static void WriteString (ChecksumWriter &wr, std::string text)
 Writes a string prefixed with a length byte.
 

Public Attributes

std::vector< std::shared_ptr< Record > > records
 The ordered collection of records contained in the file.
 
- Public Attributes inherited from Linker::Format
offset_t file_offset
 

Additional Inherited Members

- Public Member Functions inherited from Linker::Format
 Format (offset_t file_offset=0)
 
virtual void Clear ()
 Resets all fields to their default values, deallocate memory.
 
virtual void ReadFile (Reader &rd)=0
 Loads file into memory.
 
offset_t WriteFile (Writer &wr) const override=0
 Stores data in memory to file.
 
virtual void Dump (Dumper::Dumper &dump) const
 Display file contents in a nice manner.
 
offset_t ImageSize () const override
 Retrieves size of stored data.
 
offset_t WriteFile (Writer &wr, offset_t count, offset_t offset=0) const override
 Writes data of non-zero filled sections.
 
- Public Member Functions inherited from Linker::Image
virtual std::shared_ptr< const ActualImageAsImage () const
 Retrieves a randomly accessible image.
 
std::shared_ptr< ActualImageAsImage ()
 Retrieves a randomly accessible image.
 

Detailed Description

Base class for a family of Intel Relocatable Object formats.


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