Documentation ¶
Overview ¶
Package syslinux provides syslinux-compatible ADV data.
Index ¶
- Constants
- type ADV
- func (a ADV) Bytes() ([]byte, error)
- func (a ADV) DeleteTag(t uint8) (ok bool)
- func (a ADV) ListTags() []uint8
- func (a ADV) ReadTag(t uint8) (val string, ok bool)
- func (a ADV) ReadTagBytes(t uint8) (val []byte, ok bool)
- func (a ADV) SetTag(t uint8, val string) bool
- func (a ADV) SetTagBytes(t uint8, val []byte) (ok bool)
Constants ¶
View Source
const ( // AdvSize is the total size. AdvSize = 512 // AdvLen is the usable data size. AdvLen = AdvSize - 3*4 // AdvMagic1 is the head signature. AdvMagic1 = uint32(0x5a2d2fa5) // AdvMagic2 is the total checksum. AdvMagic2 = uint32(0xa3041767) // AdvMagic3 is the tail signature. AdvMagic3 = uint32(0xdd28bf64) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ADV ¶
type ADV []byte
ADV represents the Syslinux Auxiliary Data Vector.
func NewADV ¶
func NewADV(r io.ReadSeeker) (adv ADV, err error)
NewADV returns the Auxiliary Data Vector.
func (ADV) ReadTagBytes ¶
ReadTagBytes reads a tag in the ADV.
Click to show internal directories.
Click to hide internal directories.