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 | Static Public Attributes | List of all members
Dumper::Block Class Reference

A region within a file that can be dumped, decompiled, and it may contain fixups. More...

#include <dumper.h>

Inheritance diagram for Dumper::Block:
Dumper::Region Dumper::Container

Public Member Functions

void AddSignal (offset_t off, offset_t len)
 Add a relocation inside the image block.
 
 Block (std::string name, offset_t offset, std::shared_ptr< Linker::Writable > image, offset_t address, unsigned display_width, unsigned offset_display_width=8, unsigned address_display_width=-1u, unsigned position_display_width=-1u)
 
void Display (Dumper &dump) override
 
- Public Member Functions inherited from Dumper::Region
 Region (std::string name, offset_t offset, offset_t length, unsigned display_width)
 
- Public Member Functions inherited from Dumper::Container
 Container (std::string name="")
 
std::shared_ptr< FieldFindField (std::string name)
 
template<typename T >
GetField (std::string name, offset_t default_value=T())
 
void AddField (std::shared_ptr< Field > field)
 
void AddField (size_t index, std::shared_ptr< Field > field)
 
template<typename D , typename ... Ts>
void AddField (std::string label, std::shared_ptr< D > display, Ts... values)
 
template<typename D , typename ... Ts>
void AddOptionalField (std::string label, std::shared_ptr< D > display, Ts... values)
 
template<typename D , typename ... Ts>
void AddHiddenField (std::string label, std::shared_ptr< D > display, Ts... values)
 
template<typename D , typename ... Ts>
void InsertField (size_t index, std::string label, std::shared_ptr< D > display, Ts... values)
 
template<typename D , typename ... Ts>
void InsertOptionalField (size_t index, std::string label, std::shared_ptr< D > display, Ts... values)
 
template<typename D , typename ... Ts>
void InsertHiddenField (size_t index, std::string label, std::shared_ptr< D > display, Ts... values)
 

Static Public Member Functions

static std::shared_ptr< BlockMake (std::string name, offset_t offset, std::shared_ptr< Linker::Writable > image, offset_t address, unsigned display_width, unsigned offset_display_width=8, unsigned address_display_width=-1u, unsigned position_display_width=-1u)
 
- Static Public Member Functions inherited from Dumper::Region
static std::shared_ptr< RegionMake (std::string name, offset_t offset, offset_t length, unsigned display_width)
 

Public Attributes

unsigned offset_display_width
 Displaying in-file offsets.
 
unsigned position_display_width
 Displaying in-segment positions.
 
unsigned address_display_width
 Displaying in-memory addresses.
 
std::shared_ptr< Linker::Writableimage
 
std::set< offset_t > signal_starts
 
std::set< offset_t > signal_ends
 
- Public Attributes inherited from Dumper::Container
std::string name
 
std::map< std::string, std::shared_ptr< Field > > field_names
 
std::vector< std::shared_ptr< Field > > fields
 

Static Public Attributes

static char32_t encoding_default [256]
 
static char32_t encoding_cp437 [256]
 
static char32_t encoding_st [256]
 

Detailed Description

A region within a file that can be dumped, decompiled, and it may contain fixups.

Member Function Documentation

◆ AddSignal()

void Dumper::Block::AddSignal ( offset_t off,
offset_t len )
inline

Add a relocation inside the image block.

When displaying a dump of a block, the relocation zones can be signalled, for example via underlining. This method is named to reflect this signalling.

◆ Display()

void Block::Display ( Dumper & dump)
overridevirtual

Reimplemented from Dumper::Container.


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