package
2.2.1
Repository: https://github.com/hedzr/go-ringbuf.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

New returns the RingBuffer object.
NewOverlappedRingBuffer make a new instance of the overlapped ring buffer, which overwrites its head element if it's full.
WithDebugMode enables the internal debug mode for more logging output, and collect the metrics for debugging.
WithItemInitializer provides your custom initializer for each data item.

# Constants

CacheLinePadSize represents the CPU Cache Line Padding Size, compliant with the current running CPU Architect.
MaxUint32 represents the maximal uint32 value.
MaxUint32_64 represents the maximal uint32 value.
MaxUint64 represents the maximal uint64 value.

# Variables

ErrQueueEmpty queue empty when dequeueing.
ErrQueueFull queue full when enqueueing.
ErrQueueNotReady queue not ready for enqueue or dequeue.
ErrRaced the exception raised if data racing.

# Interfaces

Dbg exposes some internal fields for debugging.
Initializeable data item supports lighter-weight clone operations.
Queue interface provides a set of standard queue operations.
RingBuffer interface provides a set of standard ring buffer operations.

# Type aliases

Creator _.
Opt interface the functional options.