descriptor

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: BSD-2-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlockIdx64KB  BlockIdxT = 4
	BlockIdx256KB BlockIdxT = 5
	BlockIdx1MB   BlockIdxT = 6
	BlockIdx4MB   BlockIdxT = 7

	BlockIdx64KBSz  = 64 << 10
	BlockIdx256KBSz = 256 << 10
	BlockIdx1MBSz   = 1 << 20
	BlockIdx4MBSz   = 4 << 20
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block uint8

func (Block) Idx

func (m Block) Idx() BlockIdxT

Convert to BlockIdx, see spec.

func (*Block) SetIdx

func (m *Block) SetIdx(idx BlockIdxT)

func (Block) Size

func (m Block) Size() int

func (Block) Valid

func (m Block) Valid() (v bool)

type BlockIdxT

type BlockIdxT uint8

func (BlockIdxT) Size

func (idx BlockIdxT) Size() (v int)

func (BlockIdxT) Str

func (idx BlockIdxT) Str() (s string)

func (BlockIdxT) Valid

func (idx BlockIdxT) Valid() bool

type DataBlockSize

type DataBlockSize uint32

func (DataBlockSize) EOF

func (s DataBlockSize) EOF() bool

func (*DataBlockSize) SetSize

func (s *DataBlockSize) SetSize(v int)

func (*DataBlockSize) SetUncompressed

func (s *DataBlockSize) SetUncompressed()

func (DataBlockSize) Size

func (s DataBlockSize) Size() int

func (DataBlockSize) Uncompressed

func (s DataBlockSize) Uncompressed() bool

type Flags

type Flags uint8

func (Flags) BlockChecksum

func (m Flags) BlockChecksum() bool

func (Flags) BlockIndependence

func (m Flags) BlockIndependence() bool

func (*Flags) ClrContentChecksum

func (m *Flags) ClrContentChecksum()

func (Flags) ContentChecksum

func (m Flags) ContentChecksum() bool

func (Flags) ContentSize

func (m Flags) ContentSize() bool

func (Flags) DictId

func (m Flags) DictId() bool

func (Flags) Reserved

func (m Flags) Reserved() bool

func (*Flags) SetBlockChecksum

func (m *Flags) SetBlockChecksum()

func (*Flags) SetBlockIndependence

func (m *Flags) SetBlockIndependence()

func (*Flags) SetContentChecksum

func (m *Flags) SetContentChecksum()

func (*Flags) SetContentSize

func (m *Flags) SetContentSize()

func (*Flags) SetDictId

func (m *Flags) SetDictId()

func (*Flags) SetReserved

func (m *Flags) SetReserved()

func (*Flags) SetVersion

func (m *Flags) SetVersion(v uint8)

func (Flags) Version

func (m Flags) Version() uint8

Jump to

Keyboard shortcuts

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