bytes

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToFloat32

func BytesToFloat32(b []byte) float32

BytesToFloat32 converts a byte array to a float32 value.

func BytesToFloat64

func BytesToFloat64(b []byte) float64

BytesToFloat64 converts a byte array to a float64 value.

func BytesToInt16

func BytesToInt16(b []byte) int16

BytesToInt16 converts the specified byte array to an integer.

func BytesToInt32

func BytesToInt32(b []byte) int32

BytesToInt32 converts the specified byte array to an integer.

func BytesToInt64

func BytesToInt64(b []byte) int64

BytesToInt64 converts the specified byte array to an integer.

func BytesToInt8

func BytesToInt8(b []byte) int8

BytesToInt8 converts the specified byte array to an integer.

func BytesToUint16

func BytesToUint16(b []byte) uint16

BytesToUint16 converts the specified byte array to an integer.

func BytesToUint32

func BytesToUint32(b []byte) uint32

BytesToUint32 converts the specified byte array to an integer.

func BytesToUint64

func BytesToUint64(b []byte) uint64

BytesToUint64 converts the specified byte array to an integer.

func BytesToUint8

func BytesToUint8(b []byte) uint8

BytesToUint8 converts the specified byte array to an integer.

func Float32ToBytes

func Float32ToBytes(v float32) []byte

Float32ToBytes converts a float32 value to a byte array.

func Float64ToBytes

func Float64ToBytes(v float64) []byte

Float64ToBytes converts a float64 value to a byte array.

func Int16ToBytes

func Int16ToBytes(v int16) []byte

Int16ToBytes converts the specified integer to a byte array.

func Int32ToBytes

func Int32ToBytes(v int32) []byte

Int32ToBytes converts the specified integer to a byte array.

func Int64ToBytes

func Int64ToBytes(v int64) []byte

Int64ToBytes converts the specified integer to a byte array.

func Int8ToBytes

func Int8ToBytes(v int8) []byte

Int8ToBytes converts the specified integer to a byte array.

func Uint16ToBytes

func Uint16ToBytes(v uint16) []byte

Uint16ToBytes converts the specified integer to a byte array.

func Uint32ToBytes

func Uint32ToBytes(v uint32) []byte

Uint32ToBytes converts the specified integer to a byte array.

func Uint64ToBytes

func Uint64ToBytes(v uint64) []byte

Uint64ToBytes converts the specified integer to a byte array.

func Uint8ToBytes

func Uint8ToBytes(v uint8) []byte

Uint8ToBytes converts the specified integer to a byte array.

Types

This section is empty.

Jump to

Keyboard shortcuts

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