Documentation ¶
Index ¶
- func BytesToFloat32(b []byte) float32
- func BytesToFloat64(b []byte) float64
- func BytesToInt16(b []byte) int16
- func BytesToInt32(b []byte) int32
- func BytesToInt64(b []byte) int64
- func BytesToInt8(b []byte) int8
- func BytesToUint16(b []byte) uint16
- func BytesToUint32(b []byte) uint32
- func BytesToUint64(b []byte) uint64
- func BytesToUint8(b []byte) uint8
- func Float32ToBytes(v float32) []byte
- func Float64ToBytes(v float64) []byte
- func Int16ToBytes(v int16) []byte
- func Int32ToBytes(v int32) []byte
- func Int64ToBytes(v int64) []byte
- func Int8ToBytes(v int8) []byte
- func Uint16ToBytes(v uint16) []byte
- func Uint32ToBytes(v uint32) []byte
- func Uint64ToBytes(v uint64) []byte
- func Uint8ToBytes(v uint8) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToFloat32 ¶
BytesToFloat32 converts a byte array to a float32 value.
func BytesToFloat64 ¶
BytesToFloat64 converts a byte array to a float64 value.
func BytesToInt16 ¶
BytesToInt16 converts the specified byte array to an integer.
func BytesToInt32 ¶
BytesToInt32 converts the specified byte array to an integer.
func BytesToInt64 ¶
BytesToInt64 converts the specified byte array to an integer.
func BytesToInt8 ¶
BytesToInt8 converts the specified byte array to an integer.
func BytesToUint16 ¶
BytesToUint16 converts the specified byte array to an integer.
func BytesToUint32 ¶
BytesToUint32 converts the specified byte array to an integer.
func BytesToUint64 ¶
BytesToUint64 converts the specified byte array to an integer.
func BytesToUint8 ¶
BytesToUint8 converts the specified byte array to an integer.
func Float32ToBytes ¶
Float32ToBytes converts a float32 value to a byte array.
func Float64ToBytes ¶
Float64ToBytes converts a float64 value to a byte array.
func Int16ToBytes ¶
Int16ToBytes converts the specified integer to a byte array.
func Int32ToBytes ¶
Int32ToBytes converts the specified integer to a byte array.
func Int64ToBytes ¶
Int64ToBytes converts the specified integer to a byte array.
func Int8ToBytes ¶
Int8ToBytes converts the specified integer to a byte array.
func Uint16ToBytes ¶
Uint16ToBytes converts the specified integer to a byte array.
func Uint32ToBytes ¶
Uint32ToBytes converts the specified integer to a byte array.
func Uint64ToBytes ¶
Uint64ToBytes converts the specified integer to a byte array.
func Uint8ToBytes ¶
Uint8ToBytes converts the specified integer to a byte array.
Types ¶
This section is empty.