Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Min is the minimum value allowed for a QUIC varint. Min = 0 // Max is the maximum allowed value for a QUIC varint (2^62-1). Max = maxVarInt8 )
taken from the QUIC draft
Variables ¶
This section is empty.
Functions ¶
func Len ¶
Len determines the number of bytes that will be needed to write the number i.
func Read ¶
func Read(r io.ByteReader) (uint64, error)
Read reads a number in the QUIC varint format from r.
Types ¶
type Reader ¶
type Reader interface { io.ByteReader io.Reader }
Reader implements both the io.ByteReader and io.Reader interfaces.
type Writer ¶
type Writer interface { io.ByteWriter io.Writer }
Writer implements both the io.ByteWriter and io.Writer interfaces.
Click to show internal directories.
Click to hide internal directories.