Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ring ¶
type Ring[T any] struct { // contains filtered or unexported fields }
Ring is a very simple ring buffer implementation that uses a slice. The internal slice will only grow, never shrink. When it grows, it grows in chunks of "chunkSize" (given as argument in the New function). Pointer and reference types can be safely used because memory is cleared.
Click to show internal directories.
Click to hide internal directories.