header

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteHeader

func WriteHeader(wr io.Writer, opts *opts.OptsT) (int, error)

func WriteSkip

func WriteSkip(wr io.Writer, nibble uint8, sz uint32) (int, error)

Write a skip frame header to wr. nibble: 4-bit unsigned value shifted into low nibble on magic sz: 32-bit unsigned long size of frame.

Types

type HeaderT

type HeaderT struct {
	Sz        int64
	DictId    uint32
	ContentSz uint64
	Flags     descriptor.Flags
	BlockDesc descriptor.Block
}

func ReadHeader

func ReadHeader(rdr io.Reader, cb opts.SkipCallbackT) (nRead int, hdr HeaderT, err error)

Jump to

Keyboard shortcuts

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