gob

package
v0.0.0-...-7e023e1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dec

func Dec(b []byte, v any)

func Deserialize

func Deserialize(i interface{}, r io.Reader) error

Deserialize wraps encoding/gob Decoder to fulfill type32.DeserializeTypeID32Func

func Enc

func Enc(v any) []byte

func Serialize

func Serialize(i interface{}, w io.Writer) error

Serialize wraps encoding/gob Encoder to fulfill type32.SerializeTypeID32Func

Types

type Deserializer

type Deserializer struct{}

func (Deserializer) Deserialize

func (Deserializer) Deserialize(v any, data []byte) error

type Serializer

type Serializer struct{}

func (Serializer) Serialize

func (Serializer) Serialize(v any, buf []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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