binary

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 2 Imported by: 0

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