RingBuffer.extend

Add more data to the window of currently valid data. To avoid expensive reallocation, use avail to tune this call.

struct RingBuffer(T, size_t floorSize = 8192)
@system
size_t
extend
(
size_t request
)
if (
isPowerOf2(T.sizeof)
)

Return Value

Type: size_t

The number of elements that were actually added to the valid window. Note that this may be less than the request if more elements could not be attained from the OS.

Meta