encoding

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DateSize int
View Source
var DatetimeSize int
View Source
var Decimal128Size int
View Source
var Decimal64Size int
View Source
var TimestampSize int
View Source
var TypeSize int

Functions

func Decode

func Decode(data []byte, v interface{}) error

func DecodeBool added in v0.5.0

func DecodeBool(v []byte) bool

func DecodeBoolSlice added in v0.5.0

func DecodeBoolSlice(v []byte) []bool

func DecodeDate

func DecodeDate(v []byte) types.Date

func DecodeDateSlice

func DecodeDateSlice(v []byte) []types.Date

func DecodeDatetime

func DecodeDatetime(v []byte) types.Datetime

func DecodeDatetimeSlice

func DecodeDatetimeSlice(v []byte) (ret []types.Datetime)

func DecodeDecimal128

func DecodeDecimal128(v []byte) types.Decimal128

func DecodeDecimal128Slice

func DecodeDecimal128Slice(v []byte) (ret []types.Decimal128)

func DecodeDecimal64

func DecodeDecimal64(v []byte) types.Decimal64

func DecodeDecimal64Slice

func DecodeDecimal64Slice(v []byte) (ret []types.Decimal64)

func DecodeFixed

func DecodeFixed[T any](v []byte) T

func DecodeFixedSlice

func DecodeFixedSlice[T any](v []byte, sz int) (ret []T)

func DecodeFloat32

func DecodeFloat32(v []byte) float32

func DecodeFloat32Slice

func DecodeFloat32Slice(v []byte) []float32

func DecodeFloat64

func DecodeFloat64(v []byte) float64

func DecodeFloat64Slice

func DecodeFloat64Slice(v []byte) []float64

func DecodeFloat64SliceForBenchmark

func DecodeFloat64SliceForBenchmark(v []byte) (ret []float64)

func DecodeInt16

func DecodeInt16(v []byte) int16

func DecodeInt16Slice

func DecodeInt16Slice(v []byte) []int16

func DecodeInt32

func DecodeInt32(v []byte) int32

func DecodeInt32Slice

func DecodeInt32Slice(v []byte) []int32

func DecodeInt64

func DecodeInt64(v []byte) int64

func DecodeInt64Slice

func DecodeInt64Slice(v []byte) []int64

func DecodeInt8

func DecodeInt8(v []byte) int8

func DecodeInt8Slice

func DecodeInt8Slice(v []byte) []int8

func DecodeSlice added in v0.5.0

func DecodeSlice[T any](v []byte, sz int) (ret []T)

func DecodeStringSlice

func DecodeStringSlice(data []byte) []string

func DecodeTimestamp added in v0.5.0

func DecodeTimestamp(v []byte) types.Timestamp

func DecodeTimestampSlice added in v0.5.0

func DecodeTimestampSlice(v []byte) (ret []types.Timestamp)

func DecodeType

func DecodeType(v []byte) types.Type

func DecodeUint16

func DecodeUint16(v []byte) uint16

func DecodeUint16Slice

func DecodeUint16Slice(v []byte) []uint16

func DecodeUint32

func DecodeUint32(v []byte) uint32

func DecodeUint32Slice

func DecodeUint32Slice(v []byte) []uint32

func DecodeUint64

func DecodeUint64(v []byte) uint64

func DecodeUint64Slice

func DecodeUint64Slice(v []byte) []uint64

func DecodeUint8

func DecodeUint8(v []byte) uint8

func DecodeUint8Slice

func DecodeUint8Slice(v []byte) []uint8

func Encode

func Encode(v interface{}) ([]byte, error)

func EncodeBool added in v0.5.0

func EncodeBool(v bool) []byte

func EncodeBoolSlice added in v0.5.0

func EncodeBoolSlice(v []bool) []byte

func EncodeDate

func EncodeDate(v types.Date) []byte

func EncodeDateSlice

func EncodeDateSlice(v []types.Date) []byte

func EncodeDatetime

func EncodeDatetime(v types.Datetime) []byte

func EncodeDatetimeSlice

func EncodeDatetimeSlice(v []types.Datetime) []byte

func EncodeDecimal128

func EncodeDecimal128(v types.Decimal128) []byte

func EncodeDecimal128Slice

func EncodeDecimal128Slice(v []types.Decimal128) []byte

func EncodeDecimal64

func EncodeDecimal64(v types.Decimal64) []byte

func EncodeDecimal64Slice

func EncodeDecimal64Slice(v []types.Decimal64) []byte

func EncodeFixed

func EncodeFixed[T any](v T) []byte

func EncodeFixedSlice

func EncodeFixedSlice[T any](v []T, sz int) (ret []byte)

func EncodeFloat32

func EncodeFloat32(v float32) []byte

func EncodeFloat32Slice

func EncodeFloat32Slice(v []float32) []byte

func EncodeFloat64

func EncodeFloat64(v float64) []byte

func EncodeFloat64Slice

func EncodeFloat64Slice(v []float64) []byte

func EncodeFloat64SliceForBenchmark

func EncodeFloat64SliceForBenchmark(v []float64) (ret []byte)

func EncodeInt16

func EncodeInt16(v int16) []byte

func EncodeInt16Slice

func EncodeInt16Slice(v []int16) []byte

func EncodeInt32

func EncodeInt32(v int32) []byte

func EncodeInt32Slice

func EncodeInt32Slice(v []int32) []byte

func EncodeInt64

func EncodeInt64(v int64) []byte

func EncodeInt64Slice

func EncodeInt64Slice(v []int64) []byte

func EncodeInt8

func EncodeInt8(v int8) []byte

func EncodeInt8Slice

func EncodeInt8Slice(v []int8) []byte

func EncodeSlice added in v0.5.0

func EncodeSlice[T any](v []T, sz int) (ret []byte)

func EncodeStringSlice

func EncodeStringSlice(vs []string) []byte

func EncodeTimestamp added in v0.5.0

func EncodeTimestamp(v types.Timestamp) []byte

func EncodeTimestampSlice added in v0.5.0

func EncodeTimestampSlice(v []types.Timestamp) []byte

func EncodeType

func EncodeType(v types.Type) []byte

func EncodeUint16

func EncodeUint16(v uint16) []byte

func EncodeUint16Slice

func EncodeUint16Slice(v []uint16) []byte

func EncodeUint32

func EncodeUint32(v uint32) []byte

func EncodeUint32Slice

func EncodeUint32Slice(v []uint32) []byte

func EncodeUint64

func EncodeUint64(v uint64) []byte

func EncodeUint64Slice

func EncodeUint64Slice(v []uint64) []byte

func EncodeUint8

func EncodeUint8(v uint8) []byte

func EncodeUint8Slice

func EncodeUint8Slice(v []uint8) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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