Skip to content

float64ArrayDeque(options?): Deque<number>

Defined in: packages/deque/src/float64-array-deque.ts:31

Create a Deque of numbers over a Float64Array ring buffer: eight bytes per slot and no per-element allocation. NaN and -0 are stored as given.

DequeOptions<number> = {}

Deque<number>

With code INVALID_CAPACITY when options.capacity is not Infinity or a positive safe integer no larger than DEQUE_MAX_CAPACITY (Infinity is accepted), INVALID_VALUE when options.items holds anything but numbers, or MAX_CAPACITY_EXCEEDED when options.items holds more elements than the runtime will allocate storage for.