TMachOResourceReader class
Mach-O resource reader
Declaration
TMachOResourceReader = class(TAbstractResourceReader)Inheritance
- TMachOResourceReader
- TAbstractResourceReader
Description
This class provides a reader for Mach-O object files and images containing resources.
Mach-O is the file format used by Darwin and Mac OS X for object files and image files (executables, dynamic libraries and so on). Free Pascal can store resources in Mach-O files in its own format.
After an object file has been read, MachineType property holds the machine type the object file was built for.
This reader can't read multiple-architecture Mach-O files (like universal binary). To read a particular Mach-O file in a multiple-architecture file, extract it with lipo command.
See also
- MachineType
- TAbstractResourceReader
- TMachOResourceWriter
- Format of resources in object files
Properties
MachineType | public | The machine type of the object file |
SubMachineType | public |
Methods
GetExtensions | protected | Returns the extensions the reader is registered for |
GetDescription | protected | Returns the description of the reader |
Load | protected | Loads resources from a stream |
CheckMagic | protected | Checks whether a stream is in a format the reader recognizes |
FindBestFatArchOffset | protected | |
Create | public | Creates a new reader object |
Destroy | public |
Inherited
From TAbstractResourceReader (9)
AddNoTree CallSubReaderLoad Description Extensions GetTree SetDataOffset SetDataSize SetHeaderSize SetRawData
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
