Java bytes数组与基本类型的相互转换
Int -> Bytes
int64ToByte8
int48ToByte6
int40ToByte5
int32ToByte4
int24ToByte3
int16ToByte2
int8ToByte
Bytes -> Int
bytesToInt64
bytesToInt48
bytesToInt40
bytesToInt32
bytesToInt24
bytesToInt16
Uint -> Bytes
unsignedInt64ToBytes
unsignedInt48ToBytes
unsignedInt40ToBytes
unsignedInt32ToBytes
unsignedInt24ToBytes
unsignedInt16ToBytes
unsignedInt8ToBytes
Bytes -> Uint
unsignedBytes2Int64
unsignedBytes2Int48
unsignedBytes2Int40
unsignedBytes2Int32
unsignedBytes2Int24
unsignedBytes2Int16
unsignedBytes2Int8
Float Double -- Bytes
byte4ToFloat
floatToByte4
byte8ToDouble
doubleToByte8