bump reva

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2025-09-12 12:18:47 +02:00
parent 9f096d4107
commit f8440edc9a
66 changed files with 3771 additions and 1136 deletions
+5 -5
View File
@@ -9,15 +9,15 @@ import (
func (e *encoder) calcUint(v uint64) int {
if v <= math.MaxInt8 {
// format code only
return 0
} else if v <= math.MaxUint8 {
return def.Byte1
} else if v <= math.MaxUint8 {
return def.Byte1 + def.Byte1
} else if v <= math.MaxUint16 {
return def.Byte2
return def.Byte1 + def.Byte2
} else if v <= math.MaxUint32 {
return def.Byte4
return def.Byte1 + def.Byte4
}
return def.Byte8
return def.Byte1 + def.Byte8
}
func (e *encoder) writeUint(v uint64, offset int) int {