gpt

package
v0.0.0-...-759cef8 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrHeader = errors.New("gpt: invalid header")
)
View Source
var Parts = []struct {
	Name string
	Desc string
	GUID GUID

}{}/* 105 elements not displayed */

Functions

func ParseGUID

func ParseGUID(guid string) ([16]byte, error)

Types

type Entry

type Entry struct {
	Part  GUID
	Uniq  GUID
	First uint64
	Last  uint64
	Attr  uint64
	Name  [72]byte
}

type GUID

type GUID [16]byte

func MustParseGUID

func MustParseGUID(guid string) GUID

func (GUID) String

func (p GUID) String() string
type Header struct {
	Sig    [8]byte
	Rev    uint32
	Hdrsz  uint32
	Hdrcrc uint32

	Current uint64
	Backup  uint64
	First   uint64
	Last    uint64
	GUID    GUID
	Table   uint64
	Ent     uint32
	Entsz   uint32
	Tabcrc  uint32
	// contains filtered or unexported fields
}

type Option

type Option struct {
	Sectsz int
}

type Table

type Table struct {
	MBR     *mbr.Record
	Header  Header
	Sectsz  int
	Entries []Entry
}

func Open

func Open(r io.ReaderAt, o *Option) (*Table, error)

Jump to

Keyboard shortcuts

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