Module buffer

Source
Expand description

Functionality related to calculating default buffer sizes

Constants§

BUFFER_SIZE_BYTES
The upper limit for buffers to allocate, size in bytes. default_capacity converts this to size in elements.

Functions§

default_capacity
The maximum buffer capacity in elements. Returns a number between BUFFER_SIZE_BYTES and 1, inclusively.