object

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: BSD-3-Clause, BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package object reads and writes object files.

Index

Constants

View Source
const (
	// BinVersion defines the binary object version
	BinVersion = 1

	// ObjVersion define the linker object version
	ObjVersion = 1
)

Variables

View Source
var (
	// BinMagic defines the binary object magic. R/O.
	BinMagic = []byte{0xfa, 0x67, 0x7b, 0x2d, 0xae, 0x0a, 0x88, 0x06}

	// ObjMagic defines the linker object magic. R/O.
	ObjMagic = []byte{0xc6, 0x1f, 0xd0, 0xb5, 0xc4, 0x39, 0xad, 0x56}
)

Functions

func Decode

func Decode(out io.Writer, goos, goarch string, version uint64, magic []byte, in io.Reader) (err error)

Decode reads data in object format from in and writes the result to out while requiring goos, goarch, version and magic to match exactly those passed to Encode.

func Encode

func Encode(out io.Writer, goos, goarch string, version uint64, magic []byte, in io.Reader) (err error)

Encode reads data from in and writes them in object format to out, tagged with goos, goarch, version and magic. The character '|' may not appear in goos or goarch.

Types

This section is empty.

Jump to

Keyboard shortcuts

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