Imports #
"debug/macho"
"encoding/binary"
"io"
"unsafe"
"debug/macho"
"encoding/binary"
"io"
"unsafe"
const LC_BUILD_VERSION = 0x32const LC_CODE_SIGNATURE = 0x1dconst LC_DATA_IN_CODE = 0x29const LC_DYLD_CHAINED_FIXUPS = 0x80000034const LC_DYLD_ENVIRONMENT = 0x27const LC_DYLD_EXPORTS_TRIE = 0x80000033const LC_DYLD_INFO = 0x22const LC_DYLD_INFO_ONLY = 0x80000022const LC_DYLIB_CODE_SIGN_DRS = 0x2Bconst LC_DYSYMTAB = 0xbconst LC_ENCRYPTION_INFO = 0x21const LC_ENCRYPTION_INFO_64 = 0x2Cconst LC_FUNCTION_STARTS = 0x26const LC_FVMFILE = 0x9const LC_IDENT = 0x8const LC_IDFVMLIB = 0x7const LC_ID_DYLIB = 0xdconst LC_ID_DYLINKER = 0xfconst LC_LAZY_LOAD_DYLIB = 0x20const LC_LINKER_OPTIMIZATION_HINT = 0x2Econst LC_LINKER_OPTION = 0x2Dconst LC_LOADFVMLIB = 0x6const LC_LOAD_DYLIB = 0xcconst LC_LOAD_DYLINKER = 0xeconst LC_LOAD_UPWARD_DYLIB = 0x80000023const LC_LOAD_WEAK_DYLIB = 0x80000018const LC_MAIN = 0x80000028const LC_PREBIND_CKSUM = 0x17const LC_PREBOUND_DYLIB = 0x10const LC_PREPAGE = 0xaconst LC_REEXPORT_DYLIB = 0x8000001fconst LC_ROUTINES = 0x11const LC_ROUTINES_64 = 0x1aconst LC_RPATH = 0x8000001cconst LC_SEGMENT = 0x1const LC_SEGMENT_64 = 0x19const LC_SEGMENT_SPLIT_INFO = 0x1econst LC_SOURCE_VERSION = 0x2Aconst LC_SUB_CLIENT = 0x14const LC_SUB_FRAMEWORK = 0x12const LC_SUB_LIBRARY = 0x15const LC_SUB_UMBRELLA = 0x13const LC_SYMSEG = 0x3const LC_SYMTAB = 0x2const LC_THREAD = 0x4const LC_TWOLEVEL_HINTS = 0x16const LC_UNIXTHREAD = 0x5const LC_UUID = 0x1bconst LC_VERSION_MIN_IPHONEOS = 0x25const LC_VERSION_MIN_MACOSX = 0x24const LC_VERSION_MIN_TVOS = 0x2Fconst LC_VERSION_MIN_WATCHOS = 0x30const LC_VERSION_NOTE = 0x31LoadCmd is macho.LoadCmd with its length, which is also the load command header in the Mach-O file.
type LoadCmd struct {
Cmd macho.LoadCmd
Len uint32
}type LoadCmdReader struct {
offset int64
next int64
f io.ReadSeeker
order binary.ByteOrder
}type LoadCmdUpdater struct {
LoadCmdReader
}func FileHeaderSize(f *macho.File) int64func NewLoadCmdReader(f io.ReadSeeker, order binary.ByteOrder, nextOffset int64) LoadCmdReaderfunc NewLoadCmdUpdater(f io.ReadWriteSeeker, order binary.ByteOrder, nextOffset int64) LoadCmdUpdaterfunc (r *LoadCmdReader) Next() (LoadCmd, error)func (r LoadCmdReader) Offset() int64func (r LoadCmdReader) ReadAt(offset int64, data interface{}) errorfunc (u LoadCmdUpdater) WriteAt(offset int64, data interface{}) errorGenerated with Arrow