Versions in this module Expand all Collapse all v1 v1.1.193 Mar 14, 2024 Changes in this version + const ABIName + const BitcodeWrapperMagic + const CTypedef + const RawBitcodeMagic + const RelatedEntityName + const SymbolNamespace + var ErrMachODyldInfoNotFound = errors.New("LC_DYLD_INFO(_ONLY) not found") + var ErrMachOSectionNotFound = errors.New("MachO missing required section") + var ErrNotFat = &FormatError + var ErrObjcSectionNEmpty = errors.New("required ObjC section is empty") + var ErrObjcSectionNotFound = errors.New("missing required ObjC section") + var ErrSwiftSectionError = fmt.Errorf("missing swift section") + func Align(addr uint64, align uint64) uint64 + type AtomInfo struct + type BitstreamWrapperHeader struct + CPUType uint32 + Magic uint32 + Offset uint32 + Size uint32 + Version uint32 + type BuildVersion struct + Tools []types.BuildVersionTool + func (b *BuildVersion) LoadSize() uint32 + func (b *BuildVersion) MarshalJSON() ([]byte, error) + func (b *BuildVersion) String() string + func (b *BuildVersion) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type CodeSignature struct + func (l *CodeSignature) LoadSize() uint32 + func (l *CodeSignature) MarshalJSON() ([]byte, error) + func (l *CodeSignature) String() string + func (l *CodeSignature) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type DataInCode struct + Entries []types.DataInCodeEntry + func (d *DataInCode) String() string + func (l *DataInCode) LoadSize() uint32 + func (l *DataInCode) MarshalJSON() ([]byte, error) + func (l *DataInCode) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type DyldChainedFixups struct + type DyldEnvironment struct + type DyldExportsTrie struct + type DyldInfo struct + func (d *DyldInfo) LoadSize() uint32 + func (d *DyldInfo) Put(b []byte, o binary.ByteOrder) int + func (d *DyldInfo) String() string + func (l *DyldInfo) MarshalJSON() ([]byte, error) + func (l *DyldInfo) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type DyldInfoOnly struct + type Dylib struct + Name string + func (d *Dylib) LoadSize() uint32 + func (d *Dylib) MarshalJSON() ([]byte, error) + func (d *Dylib) Put(b []byte, o binary.ByteOrder) int + func (d *Dylib) String() string + func (d *Dylib) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type DylibCodeSignDrs struct + type Dylinker struct + Name string + func (d *Dylinker) LoadSize() uint32 + func (d *Dylinker) MarshalJSON() ([]byte, error) + func (d *Dylinker) Put(b []byte, o binary.ByteOrder) int + func (d *Dylinker) String() string + func (d *Dylinker) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type DylinkerID struct + type Dysymtab struct + IndirectSyms []uint32 + func (d *Dysymtab) LoadSize() uint32 + func (d *Dysymtab) MarshalJSON() ([]byte, error) + func (d *Dysymtab) String() string + func (d *Dysymtab) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type EncryptionInfo struct + func (e *EncryptionInfo) LoadSize() uint32 + func (e *EncryptionInfo) Put(b []byte, o binary.ByteOrder) int + func (e *EncryptionInfo) String() string + func (l *EncryptionInfo) MarshalJSON() ([]byte, error) + func (l *EncryptionInfo) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type EncryptionInfo64 struct + func (e *EncryptionInfo64) LoadSize() uint32 + func (e *EncryptionInfo64) MarshalJSON() ([]byte, error) + func (e *EncryptionInfo64) Put(b []byte, o binary.ByteOrder) int + func (e *EncryptionInfo64) String() string + func (e *EncryptionInfo64) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type EntryPoint struct + func (e *EntryPoint) LoadSize() uint32 + func (e *EntryPoint) MarshalJSON() ([]byte, error) + func (e *EntryPoint) Put(b []byte, o binary.ByteOrder) int + func (e *EntryPoint) String() string + func (e *EntryPoint) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type FatArch struct + type FatArchHeader struct + Align uint32 + CPU types.CPU + Offset uint32 + Size uint32 + SubCPU types.CPUSubtype + type FatFile struct + func CreateFat(name string, files ...string) (*FatFile, error) + func NewFatFile(r io.ReaderAt) (*FatFile, error) + func OpenFat(name string) (*FatFile, error) + func (ff *FatFile) Close() error + type FatHeader struct + Arches []FatArch + Count uint32 + Magic types.Magic + type File struct + Dysymtab *Dysymtab + Symtab *Symtab + func NewFile(r io.ReaderAt, config ...FileConfig) (*File, error) + func Open(name string) (*File, error) + func (f *File) BuildVersion() *BuildVersion + func (f *File) Close() error + func (f *File) CodeSign(config *codesign.Config) error + func (f *File) CodeSignature() *CodeSignature + func (f *File) DWARF() (*dwarf.Data, error) + func (f *File) DataInCode() *DataInCode + func (f *File) DyldChainedFixups() (*fixupchains.DyldChainedFixups, error) + func (f *File) DyldExports() ([]trie.TrieExport, error) + func (f *File) DyldExportsTrie() *DyldExportsTrie + func (f *File) DyldInfo() *DyldInfo + func (f *File) DyldInfoOnly() *DyldInfoOnly + func (f *File) DylibID() *IDDylib + func (f *File) Export(path string, dcf *fixupchains.DyldChainedFixups, baseAddress uint64, ...) (err error) + func (f *File) FileSets() []*FilesetEntry + func (f *File) FindAddressSymbols(addr uint64) ([]Symbol, error) + func (f *File) FindSectionForVMAddr(vmAddr uint64) *types.Section + func (f *File) FindSegmentForVMAddr(vmAddr uint64) *Segment + func (f *File) FindSymbolAddress(symbol string) (uint64, error) + func (f *File) ForEachV2SplitSegReference(...) error + func (f *File) FunctionStarts() *FunctionStarts + func (f *File) GetBaseAddress() uint64 + func (f *File) GetBindInfo() (types.Binds, error) + func (f *File) GetBindName(pointer uint64) (string, error) + func (f *File) GetCFStrings() ([]objc.CFString, error) + func (f *File) GetCString(addr uint64) (string, error) + func (f *File) GetCStringAtOffset(strOffset int64) (string, error) + func (f *File) GetDyldExport(symbol string) (*trie.TrieExport, error) + func (f *File) GetEmbeddedInfoPlist() ([]byte, error) + func (f *File) GetEmbeddedLLVMBitcode() (*xar.Reader, error) + func (f *File) GetExports() ([]trie.TrieExport, error) + func (f *File) GetFileSetFileByName(name string) (*File, error) + func (f *File) GetFunctionData(fn types.Function) ([]byte, error) + func (f *File) GetFunctionForVMAddr(addr uint64) (types.Function, error) + func (f *File) GetFunctions(data ...byte) []types.Function + func (f *File) GetFunctionsForRange(start, end uint64) ([]types.Function, error) + func (f *File) GetLoadsByName(name string) []Load + func (f *File) GetObjC(addr uint64) (any, bool) + func (f *File) GetObjCCategories() ([]objc.Category, error) + func (f *File) GetObjCClass(vmaddr uint64) (*objc.Class, error) + func (f *File) GetObjCClass2(vmaddr uint64) (*objc.Class, error) + func (f *File) GetObjCClassInfo(vmaddr uint64) (*objc.ClassRO64, error) + func (f *File) GetObjCClassNames() (map[uint64]string, error) + func (f *File) GetObjCClassReferences() (map[uint64]*objc.Class, error) + func (f *File) GetObjCClasses() ([]objc.Class, error) + func (f *File) GetObjCImageInfo() (*objc.ImageInfo, error) + func (f *File) GetObjCIntegerObjects() (map[uint64]*objc.IntObj, error) + func (f *File) GetObjCIvars(vmaddr uint64) ([]objc.Ivar, error) + func (f *File) GetObjCMethodLists() ([]objc.Method, error) + func (f *File) GetObjCMethodNames() (map[uint64]string, error) + func (f *File) GetObjCMethods(vmaddr uint64) ([]objc.Method, error) + func (f *File) GetObjCNonLazyCategories() ([]objc.Category, error) + func (f *File) GetObjCNonLazyClasses() ([]objc.Class, error) + func (f *File) GetObjCProperties(vmaddr uint64) ([]objc.Property, error) + func (f *File) GetObjCProtoReferences() (map[uint64]*objc.Protocol, error) + func (f *File) GetObjCProtocols() ([]objc.Protocol, error) + func (f *File) GetObjCSelectorReferences() (map[uint64]*objc.Selector, error) + func (f *File) GetObjCStubs(parse func(uint64, []byte) (map[uint64]*objc.Stub, error)) (map[uint64]*objc.Stub, error) + func (f *File) GetObjCSuperReferences() (map[uint64]*objc.Class, error) + func (f *File) GetObjCToc() objc.Toc + func (f *File) GetOffset(address uint64) (uint64, error) + func (f *File) GetPointer(offset uint64) (uint64, error) + func (f *File) GetPointerAtAddress(address uint64) (uint64, error) + func (f *File) GetRebaseInfo() ([]types.Rebase, error) + func (f *File) GetSectionsForSegment(name string) []*types.Section + func (f *File) GetSwiftAccessibleFunctions() (funcs []swift.TargetAccessibleFunctionRecord, err error) + func (f *File) GetSwiftAssociatedTypes() (asstypes []swift.AssociatedType, err error) + func (f *File) GetSwiftBuiltinTypes() (builtins []swift.BuiltinType, err error) + func (f *File) GetSwiftClosures() (closures []swift.Capture, err error) + func (f *File) GetSwiftColocateMetadata() ([]swift.ConformanceDescriptor, error) + func (f *File) GetSwiftColocateTypeDescriptors() ([]swift.Type, error) + func (f *File) GetSwiftDynamicReplacementInfo() (*swift.AutomaticDynamicReplacements, error) + func (f *File) GetSwiftDynamicReplacementInfoForOpaqueTypes() (*swift.AutomaticDynamicReplacementsSome, error) + func (f *File) GetSwiftEntry() (uint64, error) + func (f *File) GetSwiftFields() (fields []swift.Field, err error) + func (f *File) GetSwiftMultiPayloadEnums() (mpenums []swift.MultiPayloadEnum, err error) + func (f *File) GetSwiftProtocolConformances() (protoConfDescs []swift.ConformanceDescriptor, err error) + func (f *File) GetSwiftProtocols() (protos []swift.Protocol, err error) + func (f *File) GetSwiftReflectionStrings() (map[uint64]string, error) + func (f *File) GetSwiftTOC() swift.TOC + func (f *File) GetSwiftTypes() (typs []swift.Type, err error) + func (f *File) GetVMAddress(offset uint64) (uint64, error) + func (f *File) HasDyldChainedFixups() bool + func (f *File) HasDyldInfoOnly() bool + func (f *File) HasFixups() bool + func (f *File) HasObjC() bool + func (f *File) HasObjCMessageReferences() bool + func (f *File) HasPlusLoadMethod() bool + func (f *File) HasSwift() bool + func (f *File) ImportedLibraries() []string + func (f *File) ImportedSymbolNames() ([]string, error) + func (f *File) ImportedSymbols() ([]Symbol, error) + func (f *File) IsCString(addr uint64) (string, bool) + func (f *File) LibraryOrdinalName(libraryOrdinal int) string + func (f *File) PreCache() error + func (f *File) PutObjC(addr uint64, obj any) + func (f *File) ReadAt(p []byte, off int64) (n int, err error) + func (f *File) Save(outpath string) error + func (f *File) Section(segment, section string) *types.Section + func (f *File) Segment(name string) *Segment + func (f *File) Segments() Segments + func (f *File) SlidePointer(ptr uint64) uint64 + func (f *File) SourceVersion() *SourceVersion + func (f *File) UUID() *UUID + type FileConfig struct + CacheReader types.MachoReader + LoadExcluding []types.LoadCmd + LoadIncluding []types.LoadCmd + Offset int64 + RelativeSelectorBase uint64 + SectionReader types.MachoReader + VMAddrConverter types.VMAddrConverter + type FileTOC struct + ByteOrder binary.ByteOrder + Loads loads + Sections []*types.Section + func (t *FileTOC) AddLoad(l Load) uint32 + func (t *FileTOC) AddSection(s *types.Section) + func (t *FileTOC) AddSegment(s *Segment) + func (t *FileTOC) DerivedCopy(Type types.HeaderFileType, Flags types.HeaderFlag) *FileTOC + func (t *FileTOC) FileSize() uint64 + func (t *FileTOC) HdrSize() uint32 + func (t *FileTOC) LoadAlign() uint64 + func (t *FileTOC) LoadSize() uint32 + func (t *FileTOC) MarshalJSON() ([]byte, error) + func (t *FileTOC) ModifySizeCommands(prev, curr int32) int32 + func (t *FileTOC) Print(printer func(t *FileTOC) string) string + func (t *FileTOC) RemoveLoad(l Load) error + func (t *FileTOC) String() string + func (t *FileTOC) TOCSize() uint32 + type FilesetEntry struct + EntryID string + func (f *FilesetEntry) String() string + func (l *FilesetEntry) LoadSize() uint32 + func (l *FilesetEntry) MarshalJSON() ([]byte, error) + func (l *FilesetEntry) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type FormatError struct + func (e *FormatError) Error() string + type FunctionStarts struct + type FvmFile struct + Name string + func (l *FvmFile) LoadSize() uint32 + func (l *FvmFile) MarshalJSON() ([]byte, error) + func (l *FvmFile) String() string + func (l *FvmFile) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type IDDylib struct + type IDFvmlib struct + type Ident struct + StrTable []string + func (i *Ident) LoadSize() uint32 + func (i *Ident) MarshalJSON() ([]byte, error) + func (i *Ident) String() string + func (i *Ident) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type LazyLoadDylib struct + type LinkEditData struct + func (l *LinkEditData) LoadSize() uint32 + func (l *LinkEditData) MarshalJSON() ([]byte, error) + func (l *LinkEditData) String() string + func (l *LinkEditData) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type LinkerOptimizationHint struct + type LinkerOption struct + Options []string + func (l *LinkerOption) LoadSize() uint32 + func (l *LinkerOption) MarshalJSON() ([]byte, error) + func (l *LinkerOption) String() string + func (l *LinkerOption) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type Load interface + Command func() types.LoadCmd + LoadSize func() uint32 + MarshalJSON func() ([]byte, error) + Raw func() []byte + String func() string + Write func(buf *bytes.Buffer, o binary.ByteOrder) error + type LoadBytes []byte + func (b LoadBytes) Copy() LoadBytes + func (b LoadBytes) LoadSize() uint32 + func (b LoadBytes) MarshalJSON() ([]byte, error) + func (b LoadBytes) Raw() []byte + func (b LoadBytes) String() string + func (b LoadBytes) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type LoadCmdBytes struct + func (s LoadCmdBytes) Copy() LoadCmdBytes + func (s LoadCmdBytes) String() string + type LoadDylib struct + type LoadDylinker struct + type LoadFvmlib struct + Name string + func (l *LoadFvmlib) LoadSize() uint32 + func (l *LoadFvmlib) MarshalJSON() ([]byte, error) + func (l *LoadFvmlib) String() string + func (l *LoadFvmlib) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type Note struct + func (n *Note) LoadSize() uint32 + func (n *Note) MarshalJSON() ([]byte, error) + func (n *Note) String() string + func (n *Note) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type PrebindCheckSum struct + func (l *PrebindCheckSum) LoadSize() uint32 + func (l *PrebindCheckSum) MarshalJSON() ([]byte, error) + func (l *PrebindCheckSum) String() string + func (l *PrebindCheckSum) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type PreboundDylib struct + LinkedModulesBitVector string + Name string + func (d *PreboundDylib) LoadSize() uint32 + func (d *PreboundDylib) MarshalJSON() ([]byte, error) + func (d *PreboundDylib) Put(b []byte, o binary.ByteOrder) int + func (d *PreboundDylib) String() string + func (d *PreboundDylib) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type Prepage struct + func (c *Prepage) LoadSize() uint32 + func (c *Prepage) MarshalJSON() ([]byte, error) + func (c *Prepage) String() string + func (c *Prepage) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type ReExportDylib struct + type Regs386 struct + AX uint32 + BP uint32 + BX uint32 + CS uint32 + CX uint32 + DI uint32 + DS uint32 + DX uint32 + ES uint32 + FLAGS uint32 + FS uint32 + GS uint32 + IP uint32 + SI uint32 + SP uint32 + SS uint32 + type RegsAMD64 struct + AX uint64 + BP uint64 + BX uint64 + CS uint64 + CX uint64 + DI uint64 + DX uint64 + FLAGS uint64 + FS uint64 + GS uint64 + IP uint64 + R10 uint64 + R11 uint64 + R12 uint64 + R13 uint64 + R14 uint64 + R15 uint64 + R8 uint64 + R9 uint64 + SI uint64 + SP uint64 + type RegsARM struct + CPSR uint32 + LR uint32 + PC uint32 + R0 uint32 + R1 uint32 + R10 uint32 + R11 uint32 + R12 uint32 + R2 uint32 + R3 uint32 + R4 uint32 + R5 uint32 + R6 uint32 + R7 uint32 + R8 uint32 + R9 uint32 + SP uint32 + type RegsARM64 struct + CPSR uint32 + FP uint64 + LR uint64 + PAD uint32 + PC uint64 + SP uint64 + X0 uint64 + X1 uint64 + X10 uint64 + X11 uint64 + X12 uint64 + X13 uint64 + X14 uint64 + X15 uint64 + X16 uint64 + X17 uint64 + X18 uint64 + X19 uint64 + X2 uint64 + X20 uint64 + X21 uint64 + X22 uint64 + X23 uint64 + X24 uint64 + X25 uint64 + X26 uint64 + X27 uint64 + X28 uint64 + X3 uint64 + X4 uint64 + X5 uint64 + X6 uint64 + X7 uint64 + X8 uint64 + X9 uint64 + type Routines struct + func (l *Routines) LoadSize() uint32 + func (l *Routines) MarshalJSON() ([]byte, error) + func (l *Routines) String() string + func (l *Routines) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type Routines64 struct + func (l *Routines64) LoadSize() uint32 + func (l *Routines64) MarshalJSON() ([]byte, error) + func (l *Routines64) String() string + func (l *Routines64) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type Rpath struct + Path string + func (r *Rpath) LoadSize() uint32 + func (r *Rpath) MarshalJSON() ([]byte, error) + func (r *Rpath) String() string + func (r *Rpath) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type Segment struct + func (s *Segment) Copy() *Segment + func (s *Segment) CopyZeroed() *Segment + func (s *Segment) Data() ([]byte, error) + func (s *Segment) LessThan(o *Segment) bool + func (s *Segment) LoadSize() uint32 + func (s *Segment) MarshalJSON() ([]byte, error) + func (s *Segment) Open() io.ReadSeeker + func (s *Segment) Put32(b []byte, o binary.ByteOrder) int + func (s *Segment) Put64(b []byte, o binary.ByteOrder) int + func (s *Segment) String() string + func (s *Segment) UncompressedSize(t *FileTOC, align uint64) uint64 + func (s *Segment) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type SegmentHeader struct + Addr uint64 + Filesz uint64 + Firstsect uint32 + Flag types.SegFlag + Len uint32 + Maxprot types.VmProtection + Memsz uint64 + Name string + Nsect uint32 + Offset uint64 + Prot types.VmProtection + func (s *SegmentHeader) String() string + type Segments []*Segment + func (v Segments) Len() int + func (v Segments) Less(i, j int) bool + func (v Segments) Swap(i, j int) + type SourceVersion struct + func (s *SourceVersion) LoadSize() uint32 + func (s *SourceVersion) MarshalJSON() ([]byte, error) + func (s *SourceVersion) String() string + func (s *SourceVersion) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type SplitInfo struct + Version uint8 + func (l *SplitInfo) LoadSize() uint32 + func (l *SplitInfo) MarshalJSON() ([]byte, error) + func (l *SplitInfo) Write(buf *bytes.Buffer, o binary.ByteOrder) error + func (s *SplitInfo) String() string + type SubClient struct + Name string + func (l *SubClient) LoadSize() uint32 + func (l *SubClient) MarshalJSON() ([]byte, error) + func (l *SubClient) String() string + func (l *SubClient) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type SubFramework struct + Framework string + func (l *SubFramework) LoadSize() uint32 + func (l *SubFramework) MarshalJSON() ([]byte, error) + func (l *SubFramework) String() string + func (l *SubFramework) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type SubLibrary struct + Library string + func (l *SubLibrary) LoadSize() uint32 + func (l *SubLibrary) MarshalJSON() ([]byte, error) + func (l *SubLibrary) String() string + func (l *SubLibrary) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type SubUmbrella struct + Umbrella string + func (l *SubUmbrella) LoadSize() uint32 + func (l *SubUmbrella) MarshalJSON() ([]byte, error) + func (l *SubUmbrella) String() string + func (l *SubUmbrella) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type SymSeg struct + func (s *SymSeg) LoadSize() uint32 + func (s *SymSeg) MarshalJSON() ([]byte, error) + func (s *SymSeg) String() string + func (s *SymSeg) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type Symbol struct + Desc types.NDescType + Name string + Sect uint8 + Type types.NType + Value uint64 + func (s *Symbol) MarshalJSON() ([]byte, error) + func (s Symbol) GetLib(m *File) string + func (s Symbol) GetType(m *File) string + func (s Symbol) String(m *File) string + type Symtab struct + Syms []Symbol + func (s *Symtab) LoadSize() uint32 + func (s *Symtab) MarshalJSON() ([]byte, error) + func (s *Symtab) Put(b []byte, o binary.ByteOrder) int + func (s *Symtab) Search(name string) (*Symbol, error) + func (s *Symtab) String() string + func (s *Symtab) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type Thread struct + Threads []types.ThreadState + func (t *Thread) LoadSize() uint32 + func (t *Thread) MarshalJSON() ([]byte, error) + func (t *Thread) String() string + func (t *Thread) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type TwolevelHints struct + Hints []types.TwolevelHint + func (l *TwolevelHints) LoadSize() uint32 + func (l *TwolevelHints) MarshalJSON() ([]byte, error) + func (l *TwolevelHints) String() string + func (l *TwolevelHints) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type UUID struct + func (l *UUID) LoadSize() uint32 + func (l *UUID) MarshalJSON() ([]byte, error) + func (l *UUID) String() string + func (l *UUID) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type UnixThread struct + type UpwardDylib struct + type VersionMin struct + func (v *VersionMin) LoadSize() uint32 + func (v *VersionMin) MarshalJSON() ([]byte, error) + func (v *VersionMin) String() string + func (v *VersionMin) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type VersionMinMacOSX struct + type VersionMinTvOS struct + type VersionMinWatchOS struct + type VersionMiniPhoneOS struct + type WeakDylib struct