backend

package
v0.0.0-...-efe6666 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTruncatedData = errors.New("cod: unmarshal encountered truncated data")
View Source
var ErrUnknownUnionType = errors.New("cod: unknown type in union")

Functions

func ReadBool

func ReadBool(bs []byte) (bool, int, error)

func ReadFloat32

func ReadFloat32(bs []byte) (float32, int, error)

func ReadFloat64

func ReadFloat64(bs []byte) (float64, int, error)

func ReadInt

func ReadInt(bs []byte) (int, int, error)

func ReadInt16

func ReadInt16(bs []byte) (int16, int, error)

func ReadInt32

func ReadInt32(bs []byte) (int32, int, error)

func ReadInt64

func ReadInt64(bs []byte) (int64, int, error)

func ReadInt8

func ReadInt8(bs []byte) (int8, int, error)

Signed Integers

func ReadString

func ReadString(bs []byte) (string, int, error)

func ReadUint

func ReadUint(bs []byte) (uint, int, error)

func ReadUint16

func ReadUint16(bs []byte) (uint16, int, error)

func ReadUint32

func ReadUint32(bs []byte) (uint32, int, error)

func ReadUint64

func ReadUint64(bs []byte) (uint64, int, error)

func ReadUint8

func ReadUint8(bs []byte) (uint8, int, error)

Unsigned Integers

func ReadVarInt16

func ReadVarInt16(bs []byte) (int16, int, error)

Signed Integers

func ReadVarInt32

func ReadVarInt32(bs []byte) (int32, int, error)

func ReadVarInt64

func ReadVarInt64(bs []byte) (int64, int, error)

func ReadVarUint16

func ReadVarUint16(bs []byte) (uint16, int, error)

func ReadVarUint32

func ReadVarUint32(bs []byte) (uint32, int, error)

func ReadVarUint64

func ReadVarUint64(bs []byte) (uint64, int, error)

func WriteBool

func WriteBool(bs []byte, v bool) []byte

func WriteFloat32

func WriteFloat32(bs []byte, v float32) []byte

Floats

func WriteFloat64

func WriteFloat64(bs []byte, v float64) []byte

func WriteInt

func WriteInt(bs []byte, v int) []byte

func WriteInt16

func WriteInt16(bs []byte, v int16) []byte

func WriteInt32

func WriteInt32(bs []byte, v int32) []byte

func WriteInt64

func WriteInt64(bs []byte, v int64) []byte

func WriteInt8

func WriteInt8(bs []byte, v int8) []byte

Signed Integers

func WriteString

func WriteString(bs []byte, v string) []byte

func WriteUint

func WriteUint(bs []byte, v uint) []byte

func WriteUint16

func WriteUint16(bs []byte, v uint16) []byte

func WriteUint32

func WriteUint32(bs []byte, v uint32) []byte

func WriteUint64

func WriteUint64(bs []byte, v uint64) []byte

func WriteUint8

func WriteUint8(bs []byte, v uint8) []byte

-------------------------------------------------------------------------------- Read/Append - Fixed Width -------------------------------------------------------------------------------- Unsigned Integers

func WriteVarInt16

func WriteVarInt16(bs []byte, v int16) []byte

Signed Integers

func WriteVarInt32

func WriteVarInt32(bs []byte, v int32) []byte

func WriteVarInt64

func WriteVarInt64(bs []byte, v int64) []byte

func WriteVarUint16

func WriteVarUint16(bs []byte, v uint16) []byte

-------------------------------------------------------------------------------- Read/Append - Variable Width -------------------------------------------------------------------------------- Unsigned Integers

func WriteVarUint32

func WriteVarUint32(bs []byte, v uint32) []byte

func WriteVarUint64

func WriteVarUint64(bs []byte, v uint64) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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