lipo

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arch added in v0.9.0

type Arch interface {
	lmacho.Object
	io.Closer
	Name() string
	UpdateAlign(uint32)
}

func OpenArches added in v0.9.0

func OpenArches(inputs []*ArchInput) ([]Arch, error)

func OpenArchiveArches added in v0.9.0

func OpenArchiveArches(p string) ([]Arch, error)

type ArchInput

type ArchInput struct {
	Arch string
	Bin  string
}

type FatFile

type FatFile struct {
	lmacho.FatHeader
	Arches []Arch
	// contains filtered or unexported fields
}

func OpenFatFile added in v0.9.0

func OpenFatFile(p string) (*FatFile, error)

func (*FatFile) Close

func (ff *FatFile) Close() error

type Lipo

type Lipo struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) *Lipo

func (*Lipo) Archs

func (l *Lipo) Archs() ([]string, error)

func (*Lipo) Create

func (l *Lipo) Create() error

func (*Lipo) DetailedInfo added in v0.2.0

func (l *Lipo) DetailedInfo(w io.Writer) error

func (*Lipo) Extract

func (l *Lipo) Extract(arches ...string) error

func (*Lipo) ExtractFamily

func (l *Lipo) ExtractFamily(arches ...string) error

func (*Lipo) Info added in v0.1.1

func (l *Lipo) Info() ([]string, error)

func (*Lipo) Remove

func (l *Lipo) Remove(arches ...string) (err error)

func (*Lipo) Replace

func (l *Lipo) Replace(inputs []*ReplaceInput) error

func (*Lipo) Thin

func (l *Lipo) Thin(arch string) error

func (*Lipo) VerifyArch

func (l *Lipo) VerifyArch(arches ...string) (bool, error)

type Option

type Option func(l *Lipo)

func WithArch

func WithArch(arches ...*ArchInput) Option

func WithFat64 added in v0.2.0

func WithFat64() Option

func WithHideArm64 added in v0.2.0

func WithHideArm64() Option

func WithInputs

func WithInputs(in ...string) Option

func WithOutput

func WithOutput(out string) Option

func WithSegAlign

func WithSegAlign(aligns ...*SegAlignInput) Option

type ReplaceInput

type ReplaceInput = ArchInput

type SegAlignInput

type SegAlignInput struct {
	Arch     string
	AlignHex string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL