Documentation
¶
Overview ¶
Package streamio defines interfaces shared by other packages for streaming binary data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadUvarint ¶
func ReadUvarint(r io.ByteReader) (uint64, error)
ReadUvarint is a convenience wrapper around binary.ReadUvarint.
func ReadVarint ¶
func ReadVarint(r io.ByteReader) (int64, error)
ReadVarint is a convenience wrapper around binary.ReadVarint.
func UvarintSize ¶
UvarintSize returns the number of bytes needed to encode x.
func VarintSize ¶
VarintSize returns the number of bytes needed to encode x.
func WriteUvarint ¶
func WriteUvarint(w io.ByteWriter, x uint64) error
WriteUvarint writes an encoded unsigned integer to w.
func WriteVarint ¶
func WriteVarint(w io.ByteWriter, x int64) error
WriteVarint writes an encoded signed integer to w.
Types ¶
type Reader ¶
type Reader interface { io.Reader io.ByteReader }
Reader is an interface that combines an io.Reader and an io.ByteReader.
type Writer ¶
type Writer interface { io.Writer io.ByteWriter }
Writer is an interface that combines an io.Writer and an io.ByteWriter.
Click to show internal directories.
Click to hide internal directories.