RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Apple::MacintoshResourceFileFormat::Location Struct Reference

Convenience structure to handle locations occuring in Macintosh 68K binaries. More...

#include <macos.h>

Public Types

enum  location_type { segmented , sectioned , absolute }
 

Public Member Functions

bool IsSegmented () const
 
bool IsSectioned () const
 
bool IsAbsolute () const
 
bool operator== (const Location &other) const
 
bool operator< (const Location &other) const
 

Static Public Member Functions

static Location Segmented (uint16_t segment, uint32_t offset)
 Create a location inside a CODE segment resource, containing a segment number (resource ID) and an offset.
 
static Location Sectioned (uint32_t section, uint32_t offset)
 Create a location inside a PEF section, containing a section number and an offset.
 

Public Attributes

location_type type = segmented
 
uint16_t segment = 0
 
uint32_t section = 0
 
uint32_t offset = 0
 

Detailed Description

Convenience structure to handle locations occuring in Macintosh 68K binaries.

Member Enumeration Documentation

◆ location_type

Enumerator
segmented 

Contains a segment and offset, the section field should be ignored.

sectioned 

Contains a section and offset, the segment field should be ignored.

absolute 

Both the segment and section fields should be ignored (not used, only included for completeness's sake)


The documentation for this struct was generated from the following file: