values

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadBool

func ReadBool(val []byte) bool

func ReadBytes

func ReadBytes(val []byte, coll Collation) []byte

func ReadFloat32

func ReadFloat32(val []byte) float32

func ReadFloat64

func ReadFloat64(val []byte) float64

func ReadInt16

func ReadInt16(val []byte) int16

func ReadInt24

func ReadInt24(val []byte) (i int32)

func ReadInt32

func ReadInt32(val []byte) int32

func ReadInt48

func ReadInt48(val []byte) (i int64)

func ReadInt64

func ReadInt64(val []byte) int64

func ReadInt8

func ReadInt8(val []byte) int8

func ReadString

func ReadString(val []byte, coll Collation) string

func ReadUint16

func ReadUint16(val []byte) uint16

func ReadUint24

func ReadUint24(val []byte) (u uint32)

func ReadUint32

func ReadUint32(val []byte) uint32

func ReadUint48

func ReadUint48(val []byte) (u uint64)

func ReadUint64

func ReadUint64(val []byte) uint64

func ReadUint8

func ReadUint8(val []byte) uint8

func WriteBytes

func WriteBytes(buf, val []byte, coll Collation) []byte

func WriteFloat32

func WriteFloat32(buf []byte, val float32) []byte

func WriteFloat64

func WriteFloat64(buf []byte, val float64) []byte

func WriteInt16

func WriteInt16(buf []byte, val int16) []byte

func WriteInt24

func WriteInt24(buf []byte, val int32) []byte

func WriteInt32

func WriteInt32(buf []byte, val int32) []byte

func WriteInt64

func WriteInt64(buf []byte, val int64) []byte

func WriteInt8

func WriteInt8(buf []byte, val int8) []byte

func WriteString

func WriteString(buf []byte, val string, coll Collation) []byte

func WriteUint16

func WriteUint16(buf []byte, val uint16) []byte

func WriteUint24

func WriteUint24(buf []byte, val uint32) []byte

func WriteUint32

func WriteUint32(buf []byte, val uint32) []byte

func WriteUint48

func WriteUint48(buf []byte, u uint64) []byte

func WriteUint64

func WriteUint64(buf []byte, val uint64) []byte

func WriteUint8

func WriteUint8(buf []byte, val uint8) []byte

Types

type ByteSize

type ByteSize uint16
const (
	Int8Size    ByteSize = 1
	Uint8Size   ByteSize = 1
	Int16Size   ByteSize = 2
	Uint16Size  ByteSize = 2
	Int24Size   ByteSize = 3
	Uint24Size  ByteSize = 3
	Int32Size   ByteSize = 4
	Uint32Size  ByteSize = 4
	Int48Size   ByteSize = 6
	Uint48Size  ByteSize = 6
	Int64Size   ByteSize = 8
	Uint64Size  ByteSize = 8
	Float32Size ByteSize = 4
	Float64Size ByteSize = 8
)

type Collation

type Collation uint16
const (
	ByteOrderCollation Collation = 0
)

type Encoding

type Encoding uint8
const (
	NullEnc    Encoding = 0
	Int8Enc    Encoding = 1
	Uint8Enc   Encoding = 2
	Int16Enc   Encoding = 3
	Uint16Enc  Encoding = 4
	Int24Enc   Encoding = 5
	Uint24Enc  Encoding = 6
	Int32Enc   Encoding = 7
	Uint32Enc  Encoding = 8
	Int64Enc   Encoding = 9
	Uint64Enc  Encoding = 10
	Float32Enc Encoding = 11
	Float64Enc Encoding = 12
)

Constant Size Encodings

const (
	StringEnc Encoding = 128
	BytesEnc  Encoding = 129
)

Variable Size Encodings

type Type

type Type struct {
	Enc      Encoding
	Coll     Collation
	Nullable bool
}

Jump to

Keyboard shortcuts

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