rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
78 lines (36 loc) • 1.41 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [SharedTypedArrayTuple](./rc-js-util.sharedtypedarraytuple.md) > [createOne](./rc-js-util.sharedtypedarraytuple.createone.md)
## SharedTypedArrayTuple.createOne() method
**Signature:**
```typescript
static createOne<TArray extends (ATypedArrayTuple<number, TTypedArray> & ITypedArrayExtensions)>(typedArrayCtor: TExtendedTypedArrayCtor<TArray>, bindToReference: IManagedResourceNode | null, wrapper: IEmscriptenWrapper<IInteropBindings>): ISharedTypedArrayTuple<TArray>;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
typedArrayCtor
</td><td>
[TExtendedTypedArrayCtor](./rc-js-util.textendedtypedarrayctor.md)<!-- --><TArray>
</td><td>
</td></tr>
<tr><td>
bindToReference
</td><td>
[IManagedResourceNode](./rc-js-util.imanagedresourcenode.md) \| null
</td><td>
</td></tr>
<tr><td>
wrapper
</td><td>
[IEmscriptenWrapper](./rc-js-util.iemscriptenwrapper.md)<!-- --><[IInteropBindings](./rc-js-util.iinteropbindings.md)<!-- -->>
</td><td>
</td></tr>
</tbody></table>
**Returns:**
[ISharedTypedArrayTuple](./rc-js-util.isharedtypedarraytuple.md)<!-- --><TArray>