mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 08:32:40 +08:00
字节数组与整数转换
This commit is contained in:
8
bytesconv/byteconv_test.go
Normal file
8
bytesconv/byteconv_test.go
Normal file
@ -0,0 +1,8 @@
|
||||
package bytesconv
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestBytesToUint64(t *testing.T) {
|
||||
t.Log(BigEndian.BytesToUInt64([]byte{0x88, 0x45}))
|
||||
t.Log(LittleEndian.BytesToUInt64([]byte{0x88, 0x45}))
|
||||
}
|
Reference in New Issue
Block a user