Documentation ¶
Index ¶
- Constants
- Variables
- func Float64ToBytes(n float64, prec int, buf *[39]byte) []byte
- func Float64ToString(n float64, prec int, buf *[39]byte) string
- func FormatMD5(hash [16]byte, buf *[32]byte)
- func Int16ToBytes(n int16, buf *[6]byte) []byte
- func Int32ToBytes(n int32, buf *[11]byte) []byte
- func Int64ToBytes(n int64, buf *[20]byte) []byte
- func Int8ToBytes(n int8, buf *[4]byte) []byte
- func UInt16ToBytes(n uint16, buf *[5]byte) []byte
- func UInt32ToBytes(n uint32, buf *[10]byte) []byte
- func UInt64ToBytes(n uint64, buf *[20]byte) []byte
- func UInt8ToBytes(n uint8, buf *[3]byte) []byte
Constants ¶
const NaN = "NaN"
NaN is a string for "NaN"
Variables ¶
var NaNb = []byte{'N', 'a', 'N'}
NaNb is byte slice for 'NaN'
Functions ¶
func Float64ToBytes ¶
Float64ToBytes is an optimized implementation for converting float64 to byte array
func Float64ToString ¶
Float64ToString is an optimized implementation for converting float64 to string
func Int16ToBytes ¶
Int16ToBytes is the fastest way to convert int16 into byte slice
func Int32ToBytes ¶
Int32ToBytes is the fastest way to convert int32 into byte slice
func Int64ToBytes ¶
Int64ToBytes is the fastest way to convert int64 into byte slice
func Int8ToBytes ¶
Int8ToBytes is the fastest way to convert int8 into byte slice
func UInt16ToBytes ¶
UInt16ToBytes is the fastest way to convert uint16 into byte slice
func UInt32ToBytes ¶
UInt32ToBytes is the fastest way to convert uint32 into byte slice
func UInt64ToBytes ¶
UInt64ToBytes is the fastest way to convert uint64 into byte slice
func UInt8ToBytes ¶
UInt8ToBytes is the fastest way to convert uint8 into byte slice
Types ¶
This section is empty.