Home > rc-js-util > SharedStaticArray
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
Constructor | Modifiers | Description |
---|---|---|
(constructor)(ctor, wrapper, pointer, length) | Constructs a new instance of the SharedStaticArray class |
Property | Modifiers | Type | Description |
---|---|---|---|
ctor | TCtor | ||
debugOnAllocate? | (() => void) | (Optional) | |
elementByteSize | number | ||
length | number | ||
onMemoryResize | () => void | ||
sharedObject | IReferenceCountedPtr |
Method | Modifiers | Description |
---|---|---|
createOneF32(wrapper, pointer, length) | static |
|
createOneF64(wrapper, pointer, length) | static |
|
getInstance() |