Documentation ¶
Overview ¶
Package fixbuffer implements a buffered reader over a fixed size buffer
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound is returned when a search does not return data ErrNotFound = errors.New("fixbuffer: Seperator not found") // ErrBuffer is returned if there is an issue with the buffer ErrBuffer = errors.New("fixbuffer: Buffer error") // ErrFull is returned if the buffer is filled ErrFull = errors.New("fixbuffer: Buffer full") )
Functions ¶
This section is empty.
Types ¶
type FixBuffer ¶
type FixBuffer struct { Sep []byte // Read until encountering Sep. // contains filtered or unexported fields }
FixBuffer implements a buffered reader over a fixed size buffer
func New ¶
New returns a FixBuffer of size oveErrBufferFullr the reader. Sep is the seperator for reads.
Click to show internal directories.
Click to hide internal directories.