js-util

Home > rc-js-util > SharedStaticArray

SharedStaticArray class

Typed array representing static memory in wasm.

Signature:

export declare class SharedStaticArray<TCtor extends TTypedArrayCtor> implements ISharedArray<TCtor>, IOnMemoryResize, IDebugAllocateListener 

Implements: ISharedArray<TCtor>, IOnMemoryResize, IDebugAllocateListener

Constructors

Constructor Modifiers Description
(constructor)(ctor, wrapper, pointer, length)   Constructs a new instance of the SharedStaticArray class

Properties

Property Modifiers Type Description
ctor   TCtor  
debugOnAllocate?   (() => void) (Optional)
elementByteSize   number  
length   number  
onMemoryResize   () => void  
sharedObject   IReferenceCountedPtr  

Methods

Method Modifiers Description
createOneF32(wrapper, pointer, length) static  
createOneF64(wrapper, pointer, length) static  
getInstance()