🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@types/typedarray-pool

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/typedarray-pool

TypeScript definitions for typedarray-pool

ts4.5
ts4.6
ts4.7
ts4.8
ts4.9
ts5.0
ts5.1
ts5.2
ts5.3
ts5.4
ts5.5
ts5.6
ts5.7
ts5.8
ts5.9
ts6.0
latest
Source
npmnpm
Version
1.1.5
Version published
Weekly downloads
206
2.49%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/typedarray-pool

Summary

This package contains type definitions for typedarray-pool (https://github.com/mikolalysenko/typedarray-pool).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/typedarray-pool.

index.d.ts

type DataType =
    | "uint8"
    | "uint16"
    | "uint32"
    | "int8"
    | "int16"
    | "int32"
    | "float"
    | "float32"
    | "double"
    | "float64"
    | "arraybuffer"
    | "data"
    | "dataview"
    | "uint8_clamped"
    | "buffer";

export function malloc(n: number, dtype?: DataType): any;

export function mallocUint8(n: number): Uint8Array;
export function mallocUint16(n: number): Uint16Array;
export function mallocUint32(n: number): Uint32Array;
export function mallocUint8Clamped(n: number): Uint8ClampedArray;
export function mallocInt8(n: number): Int8Array;
export function mallocInt16(n: number): Int16Array;
export function mallocInt32(n: number): Int32Array;
export function mallocFloat(n: number): Float32Array;
export function mallocDouble(n: number): Float64Array;
export function mallocArrayBuffer(n: number): ArrayBuffer;
export function mallocDataView(n: number): DataView;
export function mallocBuffer(n: number): any;

export function free(array: any): void;

export function freeUint8(array: Uint8Array): void;
export function freeUint16(array: Uint16Array): void;
export function freeUint32(array: Uint32Array): void;
export function freeUint8Clamped(array: Uint8ClampedArray): void;
export function freeInt8(array: Int8Array): void;
export function freeInt16(array: Int16Array): void;
export function freeInt32(array: Int32Array): void;
export function freeFloat(array: Float32Array): void;
export function freeDouble(array: Float64Array): void;
export function freeArrayBuffer(buffer: ArrayBuffer): void;
export function freeDataView(view: DataView): void;
export function freeBuffer(buffer: any): void;

export function clearCache(): void;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Giff Song.

FAQs

Package last updated on 07 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts