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
ELF::ELFFormat::IBMResourceCollection Class Reference
Inheritance diagram for ELF::ELFFormat::IBMResourceCollection:
ELF::ELFFormat::SectionContents Linker::Contents

Public Member Functions

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
 Writes data of non-zero filled sections.
 
void Dump (Dumper::Dumper &dump, const ELFFormat &fmt, unsigned index) const override
 
void AddDumperFields (std::unique_ptr< Dumper::Region > &region, Dumper::Dumper &dump, const ELFFormat &fmt, unsigned index) const override
 
- 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

offset_t offset = 0
 
uint16_t version = 0
 
uint16_t flags = 0
 
uint32_t name_offset = 0
 
std::string name
 
uint32_t item_array_offset = 0
 
uint32_t item_array_entry_size = 0
 
uint32_t header_size = 0
 
uint32_t string_table_offset = 0
 
uint32_t locale_offset = 0
 
char16_t country [2] = { }
 
char16_t language [2] = { }
 
std::vector< IBMResource > resources
 

Member Function Documentation

◆ AddDumperFields()

void ELFFormat::IBMResourceCollection::AddDumperFields ( std::unique_ptr< Dumper::Region > &  region,
Dumper::Dumper &  dump,
const ELFFormat &  fmt,
unsigned  index 
) const
overridevirtual

Reimplemented from ELF::ELFFormat::SectionContents.

◆ Dump()

void ELFFormat::IBMResourceCollection::Dump ( Dumper::Dumper &  dump,
const ELFFormat &  fmt,
unsigned  index 
) const
overridevirtual

Reimplemented from ELF::ELFFormat::SectionContents.

◆ ImageSize()

offset_t ELFFormat::IBMResourceCollection::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

Implements Linker::Contents.

◆ WriteFile()

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

Writes data of non-zero filled sections.

Implements Linker::Contents.


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