gbyte

package
v0.0.0-...-f3abbe6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone2

func Clone2(src, dst interface{}) error

深拷贝任意对象,完整复制数据

func DecodeBool

func DecodeBool(p []byte, c *bool) []byte

decode 8 bits bool

func DecodeUint16

func DecodeUint16(p []byte, w *uint16) []byte

decode 16 bits unsigned int (lsb)

func DecodeUint32

func DecodeUint32(p []byte, l *uint32) []byte

decode 32 bits unsigned int (lsb)

func DecodeUint64

func DecodeUint64(p []byte, l *uint64) []byte

decode 64 bits unsigned int (lsb)

func DecodeUint8

func DecodeUint8(p []byte, c *byte) []byte

decode 8 bits unsigned int

func DeepCopy

func DeepCopy(dst, src interface{}) error

func DeepCopyEx

func DeepCopyEx(src interface{}) (interface{}, error)

func EncodeBool

func EncodeBool(p []byte, c bool) []byte

encode 8 bits bool

func EncodeUint16

func EncodeUint16(p []byte, w uint16) []byte

encode 16 bits unsigned int (lsb)

func EncodeUint32

func EncodeUint32(p []byte, l uint32) []byte

encode 32 bits unsigned int (lsb)

func EncodeUint64

func EncodeUint64(p []byte, l uint64) []byte

encode 64 bits unsigned int (lsb)

func EncodeUint8

func EncodeUint8(p []byte, c uint8) []byte

encode 8 bits unsigned int

func Index

func Index(p []byte, toSearch byte) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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