package
1.5.0
Repository: https://github.com/wind-c/comqtt.git
Documentation: pkg.go.dev

# Functions

NewBuffer returns a new instance of buffer.
NewBufferFromSlice returns a new instance of buffer using a pre-existing byte slice.
NewBytesPool returns a sync.pool of []byte.
NewReader returns a new Circular Reader.
NewReaderFromSlice returns a new Circular Reader using a pre-exising byte slice.
NewWriter returns a pointer to a new Circular Writer.
NewWriterFromSlice returns a new Circular Writer using a pre-existing byte slice.

# Variables

DefaultBlockSize is the default size per R/W block in bytes.
DefaultBufferSize is the default size of the buffer in bytes.
ErrInsufficientBytes indicates that there were not enough bytes to return.
ErrOutOfRange indicates that the index was out of range.

# Structs

Buffer is a circular buffer for reading and writing messages.
BytesPool is a pool of []byte.
Reader is a circular buffer for reading data from an io.Reader.
Writer is a circular buffer for writing data to an io.Writer.