Shaku

Shaku JS

Back To Table of Content

Dynamic Array

Classes

DynamicArray

A float 32 array that grows automatically.

Functions

transferPolyfill()

A polyfill version of 'ArrayBuffer.transfer'. If native ArrayBuffer.transfer exists, will use it internally. From: https://reference.codeproject.com/javascript/reference/global_objects/arraybuffer/transfer#Browser_compatibility

DynamicArray

A float 32 array that grows automatically.

Kind: global class

new DynamicArray(startSize, type)

Create the array.

Param Type Description
startSize Number Starting size.
type \* Array type (defaults to Float32Array).

dynamicArray.reset()

Reset the array back to original size.

Kind: instance method of DynamicArray

dynamicArray.push(value)

Push a value into the array and grow it if necessary.

Kind: instance method of DynamicArray

Param Type Description
value Number Value to push.

transferPolyfill()

A polyfill version of ‘ArrayBuffer.transfer’. If native ArrayBuffer.transfer exists, will use it internally. From: https://reference.codeproject.com/javascript/reference/global_objects/arraybuffer/transfer#Browser_compatibility

Kind: global function