RingVectorOptions
RingVectorOptions =
object
Defined in: packages/data/src/storage/ring-vector.ts:6
Properties
Section titled “Properties”capacity?
Section titled “capacity?”
optionalcapacity?:number
Defined in: packages/data/src/storage/ring-vector.ts:16
Pre-allocate exactly this many slots and never grow.
This is what makes a fixed-size collection: hand the vector to any
Bounded*/Blocking* collection without repeating the number, and it
takes its capacity from here. Omit it and the vector grows geometrically
instead, in which case it must not be used as a bounded collection’s
storage — there is nothing for that collection to bound itself by.