@@ -28,7 +28,7 @@ var uvarintPool = &sync.Pool{
28
28
},
29
29
}
30
30
31
- // decodeBytes decodes a varint length-prefixed byte slice, returning it along with the number
31
+ // DecodeBytes decodes a varint length-prefixed byte slice, returning it along with the number
32
32
// of input bytes read.
33
33
// Assumes bz will not be mutated.
34
34
func DecodeBytes (bz []byte ) ([]byte , int , error ) {
@@ -55,7 +55,7 @@ func DecodeBytes(bz []byte) ([]byte, int, error) {
55
55
return bz [n :end ], end , nil
56
56
}
57
57
58
- // decodeUvarint decodes a varint-encoded unsigned integer from a byte slice, returning it and the
58
+ // DecodeUvarint decodes a varint-encoded unsigned integer from a byte slice, returning it and the
59
59
// number of bytes decoded.
60
60
func DecodeUvarint (bz []byte ) (uint64 , int , error ) {
61
61
u , n := binary .Uvarint (bz )
@@ -71,7 +71,7 @@ func DecodeUvarint(bz []byte) (uint64, int, error) {
71
71
return u , n , nil
72
72
}
73
73
74
- // decodeVarint decodes a varint-encoded integer from a byte slice, returning it and the number of
74
+ // DecodeVarint decodes a varint-encoded integer from a byte slice, returning it and the number of
75
75
// bytes decoded.
76
76
func DecodeVarint (bz []byte ) (int64 , int , error ) {
77
77
i , n := binary .Varint (bz )
0 commit comments