serializableorderedmap

package
v0.0.0-...-31dbb72 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0, BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SerializableOrderedMap

type SerializableOrderedMap[K comparable, V any] struct {
	*orderedmap.OrderedMap[K, V]
}

SerializableOrderedMap provides a concurrent-safe ordered map that is serializable.

func New

func New[K comparable, V any]() *SerializableOrderedMap[K, V]

New returns a new *SerializableOrderedMap.

func (*SerializableOrderedMap[K, V]) Decode

func (o *SerializableOrderedMap[K, V]) Decode(api *serix.API, b []byte) (bytesRead int, err error)

Decode deserializes bytes into a valid object.

func (*SerializableOrderedMap[K, V]) Encode

func (o *SerializableOrderedMap[K, V]) Encode(api *serix.API) ([]byte, error)

Encode returns a serialized byte slice of the object.

Jump to

Keyboard shortcuts

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