Documentation ¶
Index ¶
- func LeDecode(b []byte, values ...any) error
- func LeDecodeToBool(b []byte) bool
- func LeDecodeToFloat32(b []byte) float32
- func LeDecodeToFloat64(b []byte) float64
- func LeDecodeToInt(b []byte) int
- func LeDecodeToInt16(b []byte) int16
- func LeDecodeToInt32(b []byte) int32
- func LeDecodeToInt64(b []byte) int64
- func LeDecodeToInt8(b []byte) int8
- func LeDecodeToString(b []byte) string
- func LeDecodeToUint(b []byte) uint
- func LeDecodeToUint16(b []byte) uint16
- func LeDecodeToUint32(b []byte) uint32
- func LeDecodeToUint64(b []byte) uint64
- func LeDecodeToUint8(b []byte) uint8
- func LeEncode(values ...any) []byte
- func LeEncodeBool(b bool) []byte
- func LeEncodeByLength(length int, values ...any) []byte
- func LeEncodeFloat32(f float32) []byte
- func LeEncodeFloat64(f float64) []byte
- func LeEncodeInt(i int) []byte
- func LeEncodeInt16(i int16) []byte
- func LeEncodeInt32(i int32) []byte
- func LeEncodeInt64(i int64) []byte
- func LeEncodeInt8(i int8) []byte
- func LeEncodeString(s string) []byte
- func LeEncodeUint(i uint) []byte
- func LeEncodeUint16(i uint16) []byte
- func LeEncodeUint32(i uint32) []byte
- func LeEncodeUint64(i uint64) []byte
- func LeEncodeUint8(i uint8) []byte
- func LeFillUpSize(b []byte, l int) []byte
- func ToBool(original any) bool
- func ToBytes(original any) []byte
- func ToFloat32(original any) float32
- func ToFloat64(original any) float64
- func ToInt(original any) int
- func ToInt16(original any) int16
- func ToInt32(original any) int32
- func ToInt64(original any) int64
- func ToInt8(original any) int8
- func ToString(original any) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LeDecodeToBool ¶
func LeDecodeToFloat32 ¶
func LeDecodeToFloat64 ¶
func LeDecodeToInt ¶
func LeDecodeToInt16 ¶
func LeDecodeToInt32 ¶
func LeDecodeToInt64 ¶
func LeDecodeToInt8 ¶
func LeDecodeToString ¶
func LeDecodeToUint ¶
func LeDecodeToUint16 ¶
func LeDecodeToUint32 ¶
func LeDecodeToUint64 ¶
func LeDecodeToUint8 ¶
func LeEncodeBool ¶
func LeEncodeByLength ¶
func LeEncodeFloat32 ¶
func LeEncodeFloat64 ¶
func LeEncodeInt ¶
func LeEncodeInt16 ¶
func LeEncodeInt32 ¶
func LeEncodeInt64 ¶
func LeEncodeInt8 ¶
func LeEncodeString ¶
func LeEncodeUint ¶
func LeEncodeUint16 ¶
func LeEncodeUint32 ¶
func LeEncodeUint64 ¶
func LeEncodeUint8 ¶
func LeFillUpSize ¶
LeFillUpSize fills up the bytes `b` to given length `l` using LittleEndian.
Note that it creates a new bytes slice by copying the original one to avoid changing the original parameter bytes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.