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
Apple::MacintoshResourceFileFormat::GenericResource Class Reference
Inheritance diagram for Apple::MacintoshResourceFileFormat::GenericResource:
Apple::MacintoshResourceFileFormat::Resource Linker::Format Linker::Contents

Public Member Functions

 GenericResource (const char type[4], uint16_t id)
 
void CalculateValues () override
 
offset_t ImageSize () const override
 Retrieves size of stored data.
 
void ReadFile (Linker::Reader &rd) override
 Loads file into memory.
 
void ReadFile (Linker::Reader &rd, offset_t length) override
 
offset_t WriteFile (Linker::Writer &wr) const override
 Stores data in memory to file.
 
std::unique_ptr< Dumper::RegionCreateRegion (std::string name, offset_t offset, offset_t length, unsigned display_width) const override
 
void Dump (Dumper::Dumper &dump) const override
 Display file contents in a nice manner.
 
virtual void Dump (Dumper::Dumper &dump, offset_t file_offset) const
 
- Public Member Functions inherited from Apple::MacintoshResourceFileFormat::Resource
void Dump (Dumper::Dumper &dump) const override
 Display file contents in a nice manner.
 
virtual int GetDisplayOptions () const
 
virtual void AddFields (Dumper::Dumper &dump, Dumper::Region &region, offset_t file_offset) const
 
- Public Member Functions inherited from Linker::Format
 Format (offset_t file_offset=0)
 
virtual void Clear ()
 Resets all fields to their default values, deallocate memory.
 
offset_t WriteFile (Writer &wr, offset_t count, offset_t offset=0) const override
 Writes data of non-zero filled sections.
 
- Public Member Functions inherited from Linker::Contents
virtual std::shared_ptr< const ImageAsImage () const
 Retrieves a randomly accessible image.
 
std::shared_ptr< ImageAsImage ()
 Retrieves a randomly accessible image.
 

Public Attributes

std::shared_ptr< Linker::Contentsimage
 
- Public Attributes inherited from Apple::MacintoshResourceFileFormat::Resource
char type [4]
 
uint16_t id
 
std::optional< std::string > name
 
uint8_t attributes
 
- Public Attributes inherited from Linker::Format
offset_t file_offset
 

Additional Inherited Members

- Protected Member Functions inherited from Apple::MacintoshResourceFileFormat::Resource
 Resource (const char type[4], uint16_t id, uint8_t attributes=0)
 
 Resource (const char type[4], uint16_t id, std::string name, uint8_t attributes=0)
 

Member Function Documentation

◆ CalculateValues()

void MacintoshResourceFileFormat::GenericResource::CalculateValues ( )
overridevirtual

◆ CreateRegion()

std::unique_ptr< Dumper::Region > MacintoshResourceFileFormat::GenericResource::CreateRegion ( std::string  name,
offset_t  offset,
offset_t  length,
unsigned  display_width 
) const
overridevirtual

◆ Dump() [1/2]

void MacintoshResourceFileFormat::Resource::Dump ( Dumper::Dumper dump) const
overridevirtual

Display file contents in a nice manner.

Reimplemented from Linker::Format.

◆ Dump() [2/2]

void MacintoshResourceFileFormat::Resource::Dump ( Dumper::Dumper dump,
offset_t  file_offset 
) const
virtual

◆ ImageSize()

offset_t MacintoshResourceFileFormat::GenericResource::ImageSize ( ) const
overridevirtual

Retrieves size of stored data.

Implements Apple::MacintoshResourceFileFormat::Resource.

◆ ReadFile() [1/2]

void MacintoshResourceFileFormat::GenericResource::ReadFile ( Linker::Reader rd)
overridevirtual

Loads file into memory.

Implements Linker::Format.

◆ ReadFile() [2/2]

void MacintoshResourceFileFormat::GenericResource::ReadFile ( Linker::Reader rd,
offset_t  length 
)
overridevirtual

◆ WriteFile()

offset_t MacintoshResourceFileFormat::GenericResource::WriteFile ( Linker::Writer wr) const
overridevirtual

Stores data in memory to file.

Implements Linker::Format.


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