RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | List of all members
MPW::ObjectFormat Class Reference
Inheritance diagram for MPW::ObjectFormat:
Linker::Format Linker::Contents

Classes

class  BlockBeginRecord
 
class  BlockEndRecord
 
class  CommentRecord
 
class  ContentsRecord
 
class  DictionaryRecord
 
class  EntryPointRecord
 
class  FilenameRecord
 
class  FirstRecord
 
class  LocalIdentifierRecord
 
class  LocalLabelRecord
 
class  LocalTypeRecord
 
class  ModuleBeginRecord
 
class  ModuleEndRecord
 
class  ModuleRecord
 
class  Record
 
class  ReferenceRecord
 
class  SizeRecord
 
class  SourceStatementRecord
 

Public Member Functions

void ReadFile (const std::shared_ptr< Linker::Reader > &rd) override
 Loads file into memory.
 
offset_t ImageSize () const override
 Retrieves the offset of the byte after the last one belonging to this format from the first one.
 
offset_t WriteFile (const std::shared_ptr< Linker::Writer > &wr) const override
 Stores data in memory to file.
 
void Dump (Dumper::Dumper &dump) const override
 Display file contents in a nice manner.
 
- 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 SetFileOffset (offset_t new_offset)
 Attempts to alter the offset to the first byte of the format from the beginning of the file.
 
- Public Member Functions inherited from Linker::Contents
virtual std::shared_ptr< const Image > AsImage () const
 Retrieves a randomly accessible image.
 
std::shared_ptr< Image > AsImage ()
 Retrieves a randomly accessible image.
 

Public Attributes

std::vector< std::shared_ptr< Record > > records
 
- Public Attributes inherited from Linker::Format
offset_t file_offset
 The offset of the first byte used by this format in the file it is stored in.
 

Member Function Documentation

◆ Dump()

void ObjectFormat::Dump ( Dumper::Dumper &  dump) const
overridevirtual

Display file contents in a nice manner.

Reimplemented from Linker::Format.

◆ ImageSize()

offset_t ObjectFormat::ImageSize ( ) const
overridevirtual

Retrieves the offset of the byte after the last one belonging to this format from the first one.

Returns
The size of the image, or offset_t(-1) if it cannot be determined before writing to the file

Reimplemented from Linker::Format.

◆ ReadFile()

void ObjectFormat::ReadFile ( const std::shared_ptr< Linker::Reader > &  rd)
overridevirtual

Loads file into memory.

Implements Linker::Format.

◆ WriteFile()

offset_t ObjectFormat::WriteFile ( const std::shared_ptr< Linker::Writer > &  wr) const
overridevirtual

Stores data in memory to file.

Implements Linker::Format.


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