1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 08:32:40 +08:00

字节数组与整数转换

This commit is contained in:
2022-03-27 10:19:12 +08:00
parent 59ea343843
commit 176cd0575d
2 changed files with 62 additions and 0 deletions

View 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}))
}