machotest

package
v0.0.0-...-0bbbf19 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFatFile

func NewFatFile(t testing.TB, r io.ReaderAt) *macho.FatFile

NewFatFile creates a new [FatFile] for accessing all the Mach-O images in a universal binary. The Mach-O binary is expected to start at position 0 in the ReaderAt.

func NewFile

func NewFile(t testing.TB, r io.ReaderAt) *macho.File

NewFile creates a new [File] for accessing a Mach-O binary in an underlying reader. The Mach-O binary is expected to start at position 0 in the ReaderAt.

func Open

func Open(t testing.TB, name string) *macho.File

Open opens the named file using os.Open and prepares it for use as a Mach-O binary.

func OpenFat

func OpenFat(t testing.TB, name string) *macho.FatFile

OpenFat opens the named file using os.Open and prepares it for use as a Mach-O universal binary.

Types

This section is empty.

Jump to

Keyboard shortcuts

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