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

Encodes the contents of a FlexOS 386 COFF .lib section. More...

#include <coff.h>

Inheritance diagram for COFF::COFFFormat::FlexOSLibrarySection:
Linker::Contents

Public Member Functions

std::shared_ptr< const Linker::Image > AsImage () const override
 Retrieves a randomly accessible image.
 
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
 
- Public Member Functions inherited from Linker::Contents
std::shared_ptr< Image > AsImage ()
 Retrieves a randomly accessible image.
 

Static Public Member Functions

static std::shared_ptr< FlexOSLibrarySection > ReadFile (const std::shared_ptr< Linker::Reader > &rd, offset_t size)
 

Public Attributes

std::optional< FlexOSLibrary > library_definition
 In a shared library, the first entry provides the attributes of the library.
 
std::vector< FlexOSLibrary > library_imports
 Sequence of imported libraries.
 
std::shared_ptr< Linker::Contents > actual_contents
 Used internally to represent actual data.
 

Detailed Description

Encodes the contents of a FlexOS 386 COFF .lib section.

Member Function Documentation

◆ AsImage()

std::shared_ptr< const Linker::Image > COFFFormat::FlexOSLibrarySection::AsImage ( ) const
overridevirtual

Retrieves a randomly accessible image.

Reimplemented from Linker::Contents.

◆ ImageSize()

offset_t COFFFormat::FlexOSLibrarySection::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 COFFFormat::FlexOSLibrarySection::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: