Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NativePool

Stub/polyfill implementation of IMemPoolArray, merely delegating to JS typed array ctors with no further management of returned arrays.

Hierarchy

  • NativePool

Implements

Index

Constructors

constructor

Methods

callocAs

  • callocAs<T>(type: T, num: number, fill?: number): undefined | TypedArrayTypeMap[T]
  • Type parameters

    • T: Type

    Parameters

    • type: T
    • num: number
    • fill: number = 0

    Returns undefined | TypedArrayTypeMap[T]

free

  • free(_: number | TypedArray): boolean

freeAll

  • freeAll(): void

mallocAs

  • mallocAs<T>(type: T, num: number): undefined | TypedArrayTypeMap[T]
  • Type parameters

    • T: Type

    Parameters

    • type: T
    • num: number

    Returns undefined | TypedArrayTypeMap[T]

reallocArray

  • reallocArray<T>(src: T, num: number): undefined | T

release

  • release(): boolean

Generated using TypeDoc