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
Microsoft::PEFormat::MemoryPortionImage Class Reference
Inheritance diagram for Microsoft::PEFormat::MemoryPortionImage:
Linker::Image Linker::Contents

Public Member Functions

 MemoryPortionImage (const PEFormat &fmt, uint32_t rva, uint32_t size)
 
offset_t ImageSize () const override
 Retrieves size of stored data.
 
offset_t WriteFile (Linker::Writer &wr, offset_t count, offset_t offset=0) const override
 Writes data of non-zero filled sections.
 
size_t ReadData (size_t bytes, offset_t offset, void *buffer) const override
 Attempts to fill a buffer with data.
 
- Public Member Functions inherited from Linker::Image
std::shared_ptr< const ImageAsImage () const override
 Retrieves a randomly accessible image.
 
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::Contents
virtual offset_t WriteFile (Writer &wr) const
 Writes data of non-zero filled sections.
 
std::shared_ptr< ImageAsImage ()
 Retrieves a randomly accessible image.
 

Public Attributes

const PEFormatfmt
 
uint32_t rva
 
uint32_t size
 

Member Function Documentation

◆ ImageSize()

offset_t PEFormat::MemoryPortionImage::ImageSize ( ) const
overridevirtual

Retrieves size of stored data.

Implements Linker::Contents.

◆ ReadData()

size_t PEFormat::MemoryPortionImage::ReadData ( size_t bytes,
offset_t offset,
void * buffer ) const
overridevirtual

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

Implements Linker::Image.

◆ WriteFile()

offset_t PEFormat::MemoryPortionImage::WriteFile ( Linker::Writer & wr,
offset_t count,
offset_t offset = 0 ) const
overridevirtual

Writes data of non-zero filled sections.

Implements Linker::Contents.


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