value

package
v0.15.13 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Felt          = feltBytesSerializer[*felt.Felt]{}
	ClassHash     = feltBytesSerializer[*felt.ClassHash]{}
	CasmClassHash = feltBytesSerializer[*felt.CasmClassHash]{}
)
View Source
var Uint64 = uint64Serializer{}

Functions

func Binary

func Binary[V any, P binaryMarshaler[V]]() binarySerializer[V, P]

func Cbor

func Cbor[V any]() cborSerializer[V]

Types

type BytesSerializer

type BytesSerializer struct{}

func (BytesSerializer) Marshal

func (BytesSerializer) Marshal(value *[]byte) ([]byte, error)

func (BytesSerializer) Unmarshal

func (BytesSerializer) Unmarshal(data []byte, value *[]byte) error

type Serializer

type Serializer[V any] interface {
	~struct{}
	Marshal(*V) ([]byte, error)
	Unmarshal([]byte, *V) error
}

Jump to

Keyboard shortcuts

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