Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type T ¶
type T[E any] struct { // contains filtered or unexported fields }
func (*T[E]) AddAndRef ¶
func (r *T[E]) AddAndRef(e E) *E
Add an element and return a pointer to it, that is valid till the next operation on this ringbuffer.
Click to show internal directories.
Click to hide internal directories.