codec

package
v1.0.49 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BadUtf8BytesError = errors.New("bad utf8 bytes")

Functions

func CountUtf8Bytes

func CountUtf8Bytes(raw []byte) (int, error)

func EnsureUtf8BytesCount

func EnsureUtf8BytesCount(raw []byte, expected int) (int, error)

func ParseUint64FromUtf8Bytes

func ParseUint64FromUtf8Bytes(raw []byte) (uint64, error)

func Uint64ToUtf8Bytes

func Uint64ToUtf8Bytes(u uint64) []byte

func UnsignedToUtf8Bytes

func UnsignedToUtf8Bytes[Unsigned constraints.Unsigned](u Unsigned) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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