AllocatedBuffer.extend

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

struct AllocatedBuffer(T, Allocator = GCNoPointerAllocator, size_t floorSize = 8192)
size_t
extend
(
size_t request
)

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 allocator.

Meta