binary

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppendUint32 = binary.BigEndian.AppendUint32
	AppendUint64 = binary.BigEndian.AppendUint64
)
View Source
var (
	// ErrCorruptState indicates stream failed encoding invariants
	ErrCorruptState = errors.New("corrupt encoded state")
)

Functions

func AppendBool

func AppendBool(buf []byte, v bool) []byte

func AppendByte

func AppendByte(buf []byte, v byte) []byte

func AppendBytes

func AppendBytes(buf []byte, data []byte) []byte

func AppendInt64

func AppendInt64(buf []byte, v int64) []byte

func AppendOptString

func AppendOptString(buf []byte, s *string) []byte

func AppendString

func AppendString(buf []byte, s string) []byte

func ReadBool

func ReadBool(data []byte) (bool, []byte, error)

func ReadByte

func ReadByte(data []byte) (byte, []byte, error)

func ReadBytes

func ReadBytes(data []byte) ([]byte, []byte, error)

func ReadInt64

func ReadInt64(data []byte) (int64, []byte, error)

func ReadOptString

func ReadOptString(data []byte) (*string, []byte, error)

func ReadString

func ReadString(data []byte) (string, []byte, error)

func ReadUint32

func ReadUint32(data []byte) (uint32, []byte, error)

func ReadUint64

func ReadUint64(data []byte) (uint64, []byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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