Function
Static Public Summary | ||
public |
Method that allocates an Array. |
|
public |
malloc(n: number): ArrayBuffer Method that allocates an ArrayBuffer. |
Static Private Summary | ||
private |
Method that creates an allocator from an array constructor. |
Static Public
public alloc(n: number): Array source
import alloc from '@array-like/alloc/src/alloc.js'
Method that allocates an Array.
Params:
Name | Type | Attribute | Description |
n | number |
public malloc(n: number): ArrayBuffer source
import malloc from '@array-like/alloc/src/malloc.js'
Method that allocates an ArrayBuffer.
Params:
Name | Type | Attribute | Description |
n | number |
Static Private
private _calloc(ArrayConstructor: any): Function source
import _calloc from '@array-like/alloc/src/_calloc.js'
Method that creates an allocator from an array constructor.
Params:
Name | Type | Attribute | Description |
ArrayConstructor | any |