Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RingBuffer ¶ added in v0.0.3
type RingBuffer[T any] struct { // contains filtered or unexported fields }
func NewRingBuffer ¶ added in v0.0.3
func NewRingBuffer[T any](size int) *RingBuffer[T]
func (*RingBuffer[T]) Free ¶ added in v0.0.3
func (r *RingBuffer[T]) Free() int
func (*RingBuffer[T]) Len ¶ added in v0.0.3
func (r *RingBuffer[T]) Len() int
func (*RingBuffer[T]) Read ¶ added in v0.0.3
func (r *RingBuffer[T]) Read(p []T) int
func (*RingBuffer[T]) Reset ¶ added in v0.0.3
func (r *RingBuffer[T]) Reset()
func (*RingBuffer[T]) Write ¶ added in v0.0.3
func (r *RingBuffer[T]) Write(p []T) (int, error)
Click to show internal directories.
Click to hide internal directories.