Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsUniversalMachoBinary ¶
IsUniversalMachoBinary returns true if this is a valid multi-architecture (universal) binary.
Types ¶
type ExtractedFile ¶
type ExtractedFile struct {
Path string
UniversalArchInfo
}
type ExtractedReader ¶
type ExtractedReader struct {
Reader interface {
io.Reader
io.ReaderAt
}
UniversalArchHeader
}
func ExtractReaders ¶
func ExtractReaders(r io.ReaderAt) ([]ExtractedReader, error)
type UniversalArchHeader ¶
type UniversalArchHeader struct {
UniversalArchInfo
Offset uint32
Size uint32
Align uint32
}
A UniversalArchHeader represents a fat header for a specific image architecture.
type UniversalArchInfo ¶
type UniversalFile ¶
type UniversalFile struct {
UniversalFileHeader
Payloads [][]byte
}
A UniversalFile is a Mach-O universal binary that contains at least one architecture.
func NewUniversalFile ¶
func NewUniversalFile() UniversalFile
NewUniversalFile creates a new universal file object
func (*UniversalFile) Add ¶
func (u *UniversalFile) Add(binaries ...string) error
Add takes one or more paths to Mach-O formatted binaries to be added to the universal binary.
type UniversalFileHeader ¶
type UniversalFileHeader struct {
Magic uint32
Count uint32
Arches []UniversalArchHeader
}
Click to show internal directories.
Click to hide internal directories.