Skip to main content

Module fixed_array

Module fixed_array 

Source
Expand description

Holds the definition of ConstFixedArray, InlineFixedArray and FixedArray.

Unlike dynamic arrays, fixed arrays’ capacity does not change once initialized. Its size still does change though.

Structs§

ConstBuffer
This struct allows for iterating over a fixed-length blocks of arrays, given a big chunk of arbitrary length array.
ConstBufferer
A helper struct for buffering the data in ConstBuffer.
ConstFixedArray
A fixed-capacity array. This type is a const (as in: compile time) analogue of InlineFixedArray.
FixedArray
A fixed-capacity array. This type is similar to DynamicArray, except its capacity is fixed at runtime, instead of compile time. Internally it keeps a pointer to heap allocated data. That heap allocated data is never resized during the array’s lifetime.
InlineFixedArray
A fixed-capacity array. This type is similar to DynamicArray, except its capacity is fixed at compile time, and doesn’t change at runtime. The “Inline” prefix indicates that the data is stored inside the struct itself, meaning its size depends on TSIZE.