encoding

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PointerS = '*'
	ArrayS   = '['
	BoolS    = 'A'
	Uint8S   = 'B'
	Uint16S  = 'I'
	Uint32S  = 'L'
	Uint64S  = 'Q'
	Int8S    = 'b'
	Int16S   = 'i'
	Int32S   = 'l'
	Int64S   = 'q'
	Float32S = 'F'
	Float64S = 'D'
	StringS  = 'S'
)

Variables

This section is empty.

Functions

func DecodeFloat32

func DecodeFloat32(buf []byte) float32

func DecodeFloat64

func DecodeFloat64(buf []byte) float64

func DecodeUint16

func DecodeUint16(buf []byte) uint16

func DecodeUint32

func DecodeUint32(buf []byte) uint32

func DecodeUint64

func DecodeUint64(buf []byte) uint64

func EncodeFloat32

func EncodeFloat32(buf []byte, v float32) []byte

func EncodeFloat64

func EncodeFloat64(buf []byte, v float64) []byte

func EncodeFuncSign

func EncodeFuncSign(fuc any) (in string, out string)

func EncodeTypeSign

func EncodeTypeSign(typ reflect.Type) (s string)

func EncodeUint16

func EncodeUint16(buf []byte, v uint16) []byte

func EncodeUint16s

func EncodeUint16s(buf []byte, v []uint16)

func EncodeUint32

func EncodeUint32(buf []byte, v uint32) []byte

func EncodeUint32s

func EncodeUint32s(buf []byte, v []uint32)

func EncodeUint64

func EncodeUint64(buf []byte, v uint64) []byte

func EncodeUint64s

func EncodeUint64s(buf []byte, v []uint64)

func ReadBool

func ReadBool(r io.Reader) (v bool, n int64, err error)

func ReadBytes

func ReadBytes(r io.Reader) (v []byte, n int64, err error)

func ReadFloat32

func ReadFloat32(r io.Reader) (v float32, n int64, err error)

func ReadFloat64

func ReadFloat64(r io.Reader) (v float64, n int64, err error)

func ReadString

func ReadString(r io.Reader) (v string, n int64, err error)

func ReadType

func ReadType(r io.Reader) (typ reflect.Type, n int64, err error)

func ReadUint16

func ReadUint16(r io.Reader) (v uint16, n int64, err error)

func ReadUint32

func ReadUint32(r io.Reader) (v uint32, n int64, err error)

func ReadUint64

func ReadUint64(r io.Reader) (v uint64, n int64, err error)

func ReadUint8

func ReadUint8(r io.Reader) (v uint8, n int64, err error)

func ReadValue

func ReadValue(r io.Reader, typ reflect.Type) (val reflect.Value, n int64, err error)

func SplitSign

func SplitSign(sign string) (signs []string)

func WriteBool

func WriteBool(w io.Writer, v bool) (n int64, err error)

func WriteBytes

func WriteBytes(w io.Writer, v []byte) (n int64, err error)

func WriteFloat32

func WriteFloat32(w io.Writer, v float32) (n int64, err error)

func WriteFloat64

func WriteFloat64(w io.Writer, v float64) (n int64, err error)

func WriteString

func WriteString(w io.Writer, v string) (n int64, err error)

func WriteType

func WriteType(w io.Writer, v reflect.Type) (n int64, err error)

func WriteUint16

func WriteUint16(w io.Writer, v uint16) (n int64, err error)

func WriteUint16s

func WriteUint16s(w io.Writer, v []uint16) (n int64, err error)

func WriteUint32

func WriteUint32(w io.Writer, v uint32) (n int64, err error)

func WriteUint32s

func WriteUint32s(w io.Writer, v []uint32) (n int64, err error)

func WriteUint64

func WriteUint64(w io.Writer, v uint64) (n int64, err error)

func WriteUint64s

func WriteUint64s(w io.Writer, v []uint64) (n int64, err error)

func WriteUint8

func WriteUint8(w io.Writer, v uint8) (n int64, err error)

func WriteValue

func WriteValue(w io.Writer, v reflect.Value) (n int64, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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