siftool

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(path string, opts AddOptions) error

Add adds a data object to a SIF file.

func Del

func Del(path string, id uint32) error

Del deletes a specified object descriptor and data from the SIF file.

func Dump

func Dump(path string, id uint32) error

Dump extracts and outputs a data object from a SIF file.

func Header(path string) error

Header displays a SIF file global header.

func Info

func Info(path string, id uint32) error

Info displays detailed info about a descriptor from a SIF file.

func List

func List(path string) error

List displays a list of all active descriptors from a SIF file.

func New

func New(path string) error

New creates a new empty SIF file.

func Setprim

func Setprim(path string, id uint32) error

Setprim sets the primary system partition of the SIF file.

Types

type AddOptions

type AddOptions struct {
	Datatype   sif.Datatype
	Parttype   sif.Parttype
	Partfs     sif.Fstype
	Partarch   string
	Signhash   sif.Hashtype
	Signentity string
	Groupid    uint32
	Link       uint32
	Alignment  int
	Filename   string
	Fp         io.Reader
}

AddOptions contains the options when adding a section to a SIF file.

Jump to

Keyboard shortcuts

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