Everything seem to work now

This commit is contained in:
2018-11-11 14:24:45 +01:00
parent 9cd1d12583
commit 69353f61bc
9 changed files with 167 additions and 50 deletions
+3 -3
View File
@@ -259,9 +259,9 @@ func DecodeFloat64(data []byte) float64 {
}
// DecodeBit decodes a bit into not less than 8 bytes.
func DecodeBit(data []byte, nbits int, length int) uint64 {
func DecodeBit(data []byte, nbits int, length int) (v uint64, n int) {
if nbits > 1 {
return DecodeVarLen64(data, length)
return DecodeVarLen64(data, length), length
}
return uint64(data[0])
return uint64(data[0]), 1
}