BFixedLengthInt: big endian
(buf []byte)
| 133 | |
| 134 | // BFixedLengthInt: big endian |
| 135 | func BFixedLengthInt(buf []byte) uint64 { |
| 136 | var num uint64 = 0 |
| 137 | for i, b := range buf { |
| 138 | num |= uint64(b) << (uint(len(buf)-i-1) * 8) |
| 139 | } |
| 140 | return num |
| 141 | } |
| 142 | |
| 143 | func LengthEncodedInt(b []byte) (num uint64, isNull bool, n int) { |
| 144 | if len(b) == 0 { |
nothing calls this directly
no outgoing calls
no test coverage detected