Documentation ¶
Index ¶
Constants ¶
View Source
const MaxVarintLen = 10
MaxVarintLen is the maximum number of bytes required to encode a varint number.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
Decode reads the first varint encoded number from the given buffer.
On success, the function returns the varint as an int64, and the number of bytes read (0 if there was an error).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.