FixedLengthInt: little endian
(buf []byte)
| 124 | |
| 125 | // FixedLengthInt: little endian |
| 126 | func FixedLengthInt(buf []byte) uint64 { |
| 127 | var num uint64 = 0 |
| 128 | for i, b := range buf { |
| 129 | num |= uint64(b) << (uint(i) * 8) |
| 130 | } |
| 131 | return num |
| 132 | } |
| 133 | |
| 134 | // BFixedLengthInt: big endian |
| 135 | func BFixedLengthInt(buf []byte) uint64 { |
nothing calls this directly
no outgoing calls
no test coverage detected