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::LEFormat::SegmentPage Class Reference

An image instance for a single page within a complete object image. More...

#include <leexe.h>

Inheritance diagram for Microsoft::LEFormat::SegmentPage:
Linker::Contents

Public Member Functions

 SegmentPage (std::shared_ptr< Linker::Contents > image, offset_t offset, offset_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.
 
std::shared_ptr< const Linker::ImageAsImage () const override
 Retrieves a randomly accessible image.
 
- 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

std::shared_ptr< Linker::Contentsimage
 
offset_t offset = 0
 
offset_t size = 0
 

Detailed Description

An image instance for a single page within a complete object image.

When writing an LE/LX binary image, the object data needs to be split up into sections called pages (typically 4 KiB in size). This class implements the Image interface but instead gives a restricted window into the full data image, to be stored as a single page image.

Member Function Documentation

◆ AsImage()

std::shared_ptr< const Linker::Image > LEFormat::SegmentPage::AsImage ( ) const
overridevirtual

Retrieves a randomly accessible image.

Reimplemented from Linker::Contents.

◆ ImageSize()

offset_t LEFormat::SegmentPage::ImageSize ( ) const
overridevirtual

Retrieves size of stored data.

Implements Linker::Contents.

◆ WriteFile()

offset_t LEFormat::SegmentPage::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: