Class CollisionBoxArray
Hierarchy (View Summary)
- StructArrayLayout6i1ul2ui20
- CollisionBoxArray
Index
Constructors
Properties
Methods
Constructors
constructor
Returns CollisionBoxArray
Properties
arrayBuffer
bytesPerElement
capacity
int16
isTransferred
length
members
uint16
uint32
uint8
Methods
clear
Resets the length of the array to 0 without de-allocating capacity.
Returns void
emplace
emplaceBack
freeBufferAfterUpload
Replace the buffer with an empty one so typed views release the original ArrayBuffer for GC.
Returns void
get
Return the CollisionBoxStruct at the given location in the array.
Parameters
- index: number
The index of the element.
Returns CollisionBoxStruct
- index: number
reserve
Indicate a planned increase in size, so that any necessary allocation may be done once, ahead of time.
Parameters
- n: number
The expected size of the array.
Returns void
- n: number
resize
Resize the array. If
nis greater than the current length then additional elements with undefined values are added. Ifnis less than the current length then the array will be reduced to the firstnelements.Parameters
- n: number
The new size of the array.
Returns void
- n: number
Staticdeserialize
Parameters
- input: SerializedStructArray
Returns any
Staticserialize
Serialize a StructArray instance. Serializes both the raw data and the metadata needed to reconstruct the StructArray base class during deserialization.
Parameters
- array: StructArray
Optionaltransferables: Transferable[]
Returns SerializedStructArray
Internal