varbin

package
v0.8.0-beta.13 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: GPL-2.0 Imports: 9 Imported by: 37

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read deprecated

func Read(r io.Reader, order binary.ByteOrder, rawData any) error

Deprecated: not well-designed. Use manual serialization or JSON/gRPC instead.

func ReadValue deprecated

func ReadValue[T any](r io.Reader, order binary.ByteOrder) (T, error)

Deprecated: not well-designed. Use manual serialization or JSON/gRPC instead.

func UvarintLen

func UvarintLen(x uint64) int

func Write

func Write(w io.Writer, order binary.ByteOrder, rawData any) error

func WriteUvarint

func WriteUvarint(writer io.ByteWriter, value uint64) (int, error)

Types

type Reader

type Reader interface {
	io.Reader
	io.ByteReader
}

func StubReader

func StubReader(reader io.Reader) Reader

type Writer

type Writer interface {
	io.Writer
	io.ByteWriter
}

Jump to

Keyboard shortcuts

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