RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Linker::ActualImage Class Referenceabstract
Inheritance diagram for Linker::ActualImage:
Linker::Image Linker::Buffer Linker::Segment Linker::Section

Public Member Functions

std::shared_ptr< const ActualImageAsImage () const override
 Retrieves a randomly accessible image.
 
virtual size_t ReadData (size_t bytes, offset_t offset, void *buffer) const =0
 Attempts to fill a buffer with data.
 
uint64_t ReadUnsigned (size_t bytes, offset_t offset, EndianType endiantype) const
 Reads an unsigned number at a specific offset.
 
uint64_t ReadUnsigned (size_t bytes, offset_t offset) const
 Reads an unsigned number at a specific offset with the default endianness.
 
int64_t ReadSigned (size_t bytes, offset_t offset, EndianType endiantype) const
 Reads a signed number at a specific offset.
 
int64_t ReadSigned (size_t bytes, offset_t offset) const
 Reads a signed number at a specific offset with the default endianness.
 
int GetByte (offset_t offset) const
 Retrieve byte at a certain offset (optional, might not be defined)
 
- Public Member Functions inherited from Linker::Image
virtual offset_t ImageSize () const =0
 Retrieves size of stored data.
 
virtual offset_t WriteFile (Writer &wr, offset_t count, offset_t offset=0) const =0
 Writes data of non-zero filled sections.
 
virtual offset_t WriteFile (Writer &wr) const
 Writes data of non-zero filled sections.
 
std::shared_ptr< ActualImageAsImage ()
 Retrieves a randomly accessible image.
 

Member Function Documentation

◆ AsImage()

std::shared_ptr< const ActualImage > ActualImage::AsImage ( ) const
overridevirtual

Retrieves a randomly accessible image.

Reimplemented from Linker::Image.

◆ ReadData()

virtual size_t Linker::ActualImage::ReadData ( size_t bytes,
offset_t offset,
void * buffer ) const
pure virtual

Attempts to fill a buffer with data.

Parameters
bytesThe (maximum) number of bytes to place in buffer
offsetThe offset in the image to start reading the data
bufferA byte buffer
Returns
Actual number of bytes copied into buffer

Implemented in Linker::Buffer, Linker::Section, and Linker::Segment.


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