|
RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
|
Stores a 'cfrg'0 resource, used to store PowerPC and CFM-68K code fragments. More...
#include <macos.h>
Classes | |
| class | Member |
Public Member Functions | |
| void | CalculateValues () override |
| offset_t | ImageSize () const override |
| Retrieves the offset of the byte after the last one belonging to this format from the first one. | |
| void | ReadFile (const std::shared_ptr< Linker::Reader > &rd) override |
| Loads file into memory. | |
| void | ReadFile (const std::shared_ptr< Linker::Reader > &rd, offset_t length) override |
| offset_t | WriteFile (const std::shared_ptr< Linker::Writer > &wr) const override |
| Stores data in memory to file. | |
| int | GetDisplayOptions () const override |
| void | Dump (Dumper::Dumper &dump, offset_t file_offset) const override |
| void | AddFields (Dumper::Dumper &dump, Dumper::Region ®ion, offset_t file_offset) const override |
| void | EffectFormat (MacintoshResourceFileFormat &format, const std::shared_ptr< Linker::Reader > &rd) override |
| Apply some changes to the format after parsing. | |
Public Member Functions inherited from Apple::MacintoshResourceFileFormat::Resource | |
| void | Dump (Dumper::Dumper &dump) const override |
| Display file contents in a nice manner. | |
| virtual std::unique_ptr< Dumper::Region > | CreateRegion (std::string name, offset_t offset, offset_t length, unsigned display_width) 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. | |
| virtual void | SetFileOffset (offset_t new_offset) |
| Attempts to alter the offset to the first byte of the format from the beginning of the file. | |
Public Member Functions inherited from Linker::Contents | |
| virtual std::shared_ptr< const Image > | AsImage () const |
| Retrieves a randomly accessible image. | |
| std::shared_ptr< Image > | AsImage () |
| Retrieves a randomly accessible image. | |
Public Attributes | |
| uint16_t | version = 1 |
| std::vector< std::shared_ptr< Member > > | members |
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 |
| The offset of the first byte used by this format in the file it is stored in. | |
Static Public Attributes | |
| static constexpr uint32_t | OSType = OSTypeToUInt32('c', 'f', 'r', 'g') |
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::optional< std::string > name, uint8_t attributes=0) | |
Stores a 'cfrg'0 resource, used to store PowerPC and CFM-68K code fragments.
|
overridevirtual |
Reimplemented from Apple::MacintoshResourceFileFormat::Resource.
|
overridevirtual |
Implements Apple::MacintoshResourceFileFormat::Resource.
|
overridevirtual |
Reimplemented from Apple::MacintoshResourceFileFormat::Resource.
|
overridevirtual |
Apply some changes to the format after parsing.
Reimplemented from Apple::MacintoshResourceFileFormat::Resource.
|
overridevirtual |
Reimplemented from Apple::MacintoshResourceFileFormat::Resource.
|
overridevirtual |
Retrieves the offset of the byte after the last one belonging to this format from the first one.
Implements Apple::MacintoshResourceFileFormat::Resource.
|
overridevirtual |
Loads file into memory.
Implements Linker::Format.
|
overridevirtual |
Implements Apple::MacintoshResourceFileFormat::Resource.
|
overridevirtual |
Stores data in memory to file.
Implements Linker::Format.