js-util

Home > rc-js-util > ISharedArray

ISharedArray interface

Typed array representing a contiguous block of memory in wasm.

Signature:

export interface ISharedArray<TCtor extends TTypedArrayCtor> extends ISharedObject 

Extends: ISharedObject

Remarks

NB the pointer does not necessarily point to the start of the block (e.g. it may be related to life cycle instead), this is implementation defined.

Properties

Property Modifiers Type Description
ctor   TCtor  
elementByteSize   number Size of element in the array, length * elementByteSize is not necessarily the size of the object.
length   number  

Methods

Method Description
getInstance()