pex.exe.macho
¶
Module Contents¶
- class pex.exe.macho.Macho¶
Bases:
object
Subclass of pex.exe module.
This subclass of pex.exe module is intended for providing an implementation of macOS macho generator.
- check_macho(data: bytes) bool ¶
Check if data is a macOS macho.
- Parameters:
data (bytes) – data to check
- Return bool:
True if data is a macOS macho
- pack_macho(arch: pex.arch.types.Arch | str, data: bytes) bytes ¶
Pack data to a macOS macho.
- Parameters:
arch (Union[Arch, str]) – architecture to pack for
data (bytes) – data to pack
- Return bytes:
packed macOS macho
- Raises:
RuntimeError – with trailing error message