diff --git a/lib/encoding/int.go b/lib/encoding/int.go index 8ea038ce6..b5ef82a9b 100644 --- a/lib/encoding/int.go +++ b/lib/encoding/int.go @@ -168,6 +168,8 @@ func marshalVarInt64sSlow(dst []byte, vs []int64) []byte { } // UnmarshalVarInt64 returns unmarshaled int64 from src and its size in bytes. +// +// It returns 0 or negative value if it cannot unmarshal int64 from src. func UnmarshalVarInt64(src []byte) (int64, int) { // TODO substitute binary.Uvarint with binary.Varint when benchmark results will show it is faster. // It is slower on amd64/linux Go1.22.