linearcodec

package
v1.10.19-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: BSD-3-Clause Imports: 8 Imported by: 100

Documentation

Index

Constants

View Source
const (
	// default max length of a slice being marshalled by Marshal(). Should be <= math.MaxUint32.
	DefaultMaxSliceLength = 256 * 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec interface {
	codec.Registry
	codec.Codec
	SkipRegistrations(int)
}

Codec marshals and unmarshals

func New

func New(durangoTime time.Time, tagNames []string, maxSliceLen uint32) Codec

New returns a new, concurrency-safe codec; it allow to specify both tagNames and maxSlicelenght

func NewCustomMaxLength added in v1.7.10

func NewCustomMaxLength(durangoTime time.Time, maxSliceLen uint32) Codec

NewCustomMaxLength is a convenience constructor; it returns a new codec with custom max length and default tags

func NewDefault

func NewDefault(durangoTime time.Time) Codec

NewDefault is a convenience constructor; it returns a new codec with reasonable default values

Jump to

Keyboard shortcuts

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