coderx

package
v2.26.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package coderx contains coders for primitive types that aren't included in the beam model.

Index

Constants

This section is empty.

Variables

Fixed-sized custom coders for integers.

Functions

func NewFloat

func NewFloat(t reflect.Type) (*coder.CustomCoder, error)

NewFloat returns a coder for the given float type. It uses the same encoding scheme as the gob package.

func NewString

func NewString() (*coder.CustomCoder, error)

NewString returns a coder for the string type. It uses the native []byte to string conversion.

Only for custom coder test use.

func NewVarIntZ

func NewVarIntZ(t reflect.Type) (*coder.CustomCoder, error)

NewVarIntZ returns a varint coder for the given integer type. It uses a zig-zag scheme, which is _different_ from the Beam standard coding scheme.

func NewVarUintZ

func NewVarUintZ(t reflect.Type) (*coder.CustomCoder, error)

NewVarUintZ returns a uvarint coder for the given integer type. It uses a zig-zag scheme, which is _different_ from the Beam standard coding scheme.

Types

This section is empty.

Jump to

Keyboard shortcuts

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