Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
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 (*Buffer) Bytes ¶
Bytes provides a slice of the bytes written. This slice should not be written to.
func (*Buffer) TotalWritten ¶
TotalWritten provides the total number of bytes written
Click to show internal directories.
Click to hide internal directories.