Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
Buffer implements a circular buffer. It is a fixed size, and new writes overwrite older data, such that for a buffer of size N, for any amount of writes, only the last N bytes are retained.
func NewBuffer ¶
NewBuffer creates a new buffer of a given size. NewBuffer panics if the size is not greater than 0.
func (*Buffer) NewBytesWritten ¶
NewBytesWritten provides the total number of bytes written since the last reset.
func (*Buffer) ResetNewBytesWritten ¶
func (b *Buffer) ResetNewBytesWritten()
ResetNewBytesWritten resets the new bytes written counter.
Click to show internal directories.
Click to hide internal directories.