Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
AlreadyClosed = errors.New("Buffer already closed")
)
View Source
var (
FullError = errors.New("Buffer is full")
)
Functions ¶
func BothClosed ¶
Types ¶
type Circular ¶
type Circular struct {
// contains filtered or unexported fields
}
A circular buffer on top of a byte-array NOTE: It does not implement the Write() method, it implements ReadFrom() to avoid copies
func NewCircular ¶
Returns a new circular buffer of the given size
type Outbound ¶
func NewOutbound ¶
Click to show internal directories.
Click to hide internal directories.