A PartitionedBuffer is an ArrayBuffer with named storage partitions.
readonly
maxEntitiesPerPartition: number
The length of each row in the buffer
addPartition<T extends SchemaSpec<T> | null = null>(partition: Partition<T>): PartitionStorage<T>
Add a partition to the buffer
clear(): this
Clear the buffer and release references
The amount of free space in bytes in the underlying ArrayBuffer
getPartition<T extends SchemaSpec<T> | null = null>(key: Partition<T> | string): PartitionStorage<T> | undefined
Get a partition by name or spec
hasPartition<T extends SchemaSpec<T> | null = null>(key: PartitionSpec<T> | string): boolean
Check if a partition exists
readonly
MAX_PARTITION_SIZE: 1073741824
Maximum safe partition size to prevent allocation errors
readonly
MIN_ALIGNMENT: 8
Minimum alignment in bytes for TypedArrays