builder

package
v0.0.0-...-9e10903 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2025 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataWriterTo

func DataWriterTo(cmd CommandBuilder) io.WriterTo

func HeaderWriterTo

func HeaderWriterTo(cmd CommandBuilder, ctx *context.CommandContext) io.WriterTo

Types

type CommandBuilder

type CommandBuilder interface {
	HeaderLen() uint64
	DataLen() uint64
	HeaderWriteTo(writer io.Writer, ctx *context.CommandContext) (int64, error)
	DataWriteTo(writer io.Writer) (int64, error)
}

type MachoBuilder

type MachoBuilder struct {
	Header   header.MachoHeaderBuilder
	Commands []CommandBuilder
}

func (MachoBuilder) WriteTo

func (macho MachoBuilder) WriteTo(writer io.Writer) (n int64, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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