bincode

package
v0.0.0-...-5949c10 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(a reflect.Value, b reflect.Value) int

func Deserialize

func Deserialize(s any, data []byte) error

Deserialize `data` according to the schema of `s`, and store the value into it. `s` must be a pointer type variable that points to the original schema of `data`.

func Serialize

func Serialize(s any) ([]byte, error)

Serialize `s` into bytes according to Bincode's specification

https://docs.rs/crate/bincode/2.0.1/source/docs/spec.md

The type mapping is similar to that borsh-go, which can be found at https://github.com/near/borsh-go.

Types

type Enum

type Enum uint32

Jump to

Keyboard shortcuts

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