RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Microsoft::ResourceFile Class Reference
Inheritance diagram for Microsoft::ResourceFile:
Linker::Format Linker::Contents

Classes

class  IdDisplay
 
class  Resource
 

Public Types

enum  system_type {
  System_Unspecified , System_Windows , System_Windows_1x , System_Windows_3x ,
  System_OS2
}
 
typedef std::variant< uint16_t, std::string > Identifier
 

Public Member Functions

 ResourceFile (system_type system=System_Unspecified)
 
void ReadFile (Linker::Reader &rd) override
 Loads file into memory.
 
void ReadFile (Linker::Reader &rd, offset_t size)
 
offset_t WriteFile (Linker::Writer &wr) const override
 Stores data in memory to file.
 
void Dump (Dumper::Dumper &dump) const override
 Display file contents in a nice manner.
 
- 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 ImageSize () const override
 Retrieves size of stored data.
 
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.
 

Static Public Member Functions

static void ReadIdentifier (Linker::Reader &rd, Identifier &id)
 
static void WriteIdentifier (Linker::Writer &wr, const Identifier &id)
 
static offset_t GetIdentifierSize (const Identifier &id)
 

Public Attributes

system_type system
 
offset_t file_offset
 
std::vector< Resourceresources
 
- Public Attributes inherited from Linker::Format
offset_t file_offset
 

Member Function Documentation

◆ Dump()

void ResourceFile::Dump ( Dumper::Dumper & dump) const
overridevirtual

Display file contents in a nice manner.

Reimplemented from Linker::Format.

◆ ReadFile()

void ResourceFile::ReadFile ( Linker::Reader & rd)
overridevirtual

Loads file into memory.

Implements Linker::Format.

◆ WriteFile()

offset_t ResourceFile::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: