Home Manual Reference Source

Function

Static Public Summary
public

Method that allocates an Array.

public

Method that allocates an ArrayBuffer.

Static Private Summary
private

_calloc(ArrayConstructor: any): Function

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:

NameTypeAttributeDescription
n number

Return:

Array

public malloc(n: number): ArrayBuffer source

import malloc from '@array-like/alloc/src/malloc.js'

Method that allocates an ArrayBuffer.

Params:

NameTypeAttributeDescription
n number

Return:

ArrayBuffer

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:

NameTypeAttributeDescription
ArrayConstructor any

Return:

Function