The type of buffers managed by the pool
PrivatebuffersThe buffers in the pool
PrivatebuffersThe set of buffer IDs in use
PrivatelastLargest buffer ID in the pool
Private ReadonlymaxThe maximum number of buffers that can be stored in the pool
PrivatepointerThe current pointer for acquiring buffers
Acquires a buffer of at least the specified minimum size from the pool.
The minimum size of the buffer to acquire
Whether to allow buffers larger than minSize
Clears the pool, removing all buffers. This resets the pointer and empties the buffer list.
RingPool is a circular buffer implementation that manages a pool of buffers.
It allows for efficient acquisition and release of buffers, ensuring that buffers are reused without unnecessary allocations.