package varint

Import Path
	github.com/multiformats/go-varint (on go.dev)

Dependency Relation
	imports 4 packages, and imported by 11 packages

Involved Source Files varint.go
Package-Level Functions (total 5)
FromUvarint reads an unsigned varint from the beginning of buf, returns the varint, and the number of bytes read.
PutUvarint is an alias for binary.PutUvarint. This is provided for convenience so users of this library can avoid built-in varint functions and easily audit code for uses of those functions. Make sure that x is smaller or equal to MaxValueUvarint63, otherwise this function will produce values that may be rejected by readers.
ReadUvarint reads a unsigned varint from the given reader.
ToUvarint converts an unsigned integer to a varint-encoded []byte
UvarintSize returns the size (in bytes) of `num` encoded as a unsigned varint. This may return a size greater than MaxUvarintLen63, which would be an illegal value, and would be rejected by readers.
Package-Level Variables (total 3)
Package-Level Constants (total 2)
MaxLenUvarint63 is the maximum number of bytes representing an uvarint in this encoding, supporting a maximum value of 2^63 (uint63), aka MaxValueUvarint63.
MaxValueUvarint63 is the maximum encodable uint63 value.