encoding

package
v0.78.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 4 Imported by: 1 module, 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

This section is empty.

Functions

func Float64ArrayFromBytes

func Float64ArrayFromBytes(b []byte) []float64

func Float64ArrayToBytes

func Float64ArrayToBytes(val []float64) []byte

Float64ArrayToBytes encodes a float64 slice as an 8-byte little-endian length prefix followed by the little-endian raw bytes of each element. An empty or nil slice is encoded as a zero length (8 zero bytes).

func Float64FromBytes

func Float64FromBytes(b []byte) float64

func Float64ToBytes

func Float64ToBytes(val float64) []byte

func Int32FromBytes

func Int32FromBytes(b []byte) int32

func Int32ToBytes

func Int32ToBytes(val int32) []byte

func Int64FromBytes

func Int64FromBytes(b []byte) int64

func Int64ToBytes

func Int64ToBytes(val int64) []byte

func SeqIDFromBytes

func SeqIDFromBytes(b []byte) seq.ID

func SeqIDToBytes

func SeqIDToBytes(id seq.ID) []byte

func StringArrayFromBytes

func StringArrayFromBytes(b []byte) []string

func StringArrayToBytes

func StringArrayToBytes(val []string) []byte

StringArrayToBytes encodes a string slice as an 8-byte little-endian length prefix (number of strings) followed by each string prefixed with its own 8-byte little-endian length. An empty or nil slice is encoded as a zero length (8 zero bytes).

func StringFromBytes

func StringFromBytes(val []byte) string

func StringToBytes

func StringToBytes(val string) []byte

func Uint32FromBytes

func Uint32FromBytes(b []byte) uint32

func Uint32ToBytes

func Uint32ToBytes(val uint32) []byte

func Uint64FromBytes

func Uint64FromBytes(b []byte) uint64

func Uint64ToBytes

func Uint64ToBytes(val uint64) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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