1
2
3
4
5 package byteorder
6
7 import "internal/byteorder"
8
9 func LEUint16(b []byte) uint16 {
10 return byteorder.LEUint16(b)
11 }
12
13 func BEUint32(b []byte) uint32 {
14 return byteorder.BEUint32(b)
15 }
16
17 func BEUint64(b []byte) uint64 {
18 return byteorder.BEUint64(b)
19 }
20
21 func LEUint64(b []byte) uint64 {
22 return byteorder.LEUint64(b)
23 }
24
25 func BEPutUint16(b []byte, v uint16) {
26 byteorder.BEPutUint16(b, v)
27 }
28
29 func BEPutUint32(b []byte, v uint32) {
30 byteorder.BEPutUint32(b, v)
31 }
32
33 func BEPutUint64(b []byte, v uint64) {
34 byteorder.BEPutUint64(b, v)
35 }
36
37 func LEPutUint16(b []byte, v uint16) {
38 byteorder.LEPutUint16(b, v)
39 }
40
41 func LEPutUint64(b []byte, v uint64) {
42 byteorder.LEPutUint64(b, v)
43 }
44
45 func BEAppendUint16(b []byte, v uint16) []byte {
46 return byteorder.BEAppendUint16(b, v)
47 }
48
49 func BEAppendUint32(b []byte, v uint32) []byte {
50 return byteorder.BEAppendUint32(b, v)
51 }
52
53 func BEAppendUint64(b []byte, v uint64) []byte {
54 return byteorder.BEAppendUint64(b, v)
55 }
56
View as plain text