@nativescript-community/arraybuffers
TypeScript icon, indicating that this package has built-in type declarations

1.1.5 • Public • Published

@nativescript-community/arraybuffers

Downloads per month NPM Version

Utility methods to work with Array Buffers in Nativescript


Table of Contents

Installation

Run the following command from the root of your project:

ns plugin add @nativescript-community/arraybuffers

API

This is a simple Array Buffers helpers for Nativescript to use optimized arrays on Android It exposes a few methods:

type FloatArray = Float32Array | Float64Array | Uint8Array;
type TypedArray = FloatArray | Uint8Array;
function createArrayBuffer(length: number, useInts?: boolean): TypedArray;
function createNativeArray(length: number, useInts?: boolean): number[];
function pointsFromBuffer(typedArray: TypedArray, useInts?: boolean, canReturnBuffer?: boolean): number[] | TypedArray;
function arrayToNativeArray(array, useInts?: boolean, canReturnBuffer?: boolean): number[];
function nativeArrayToArray(array): number[];
function supportsDirectArrayBuffers(): boolean;

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.5
    479
    • latest

Version History

Package Sidebar

Install

npm i @nativescript-community/arraybuffers

Weekly Downloads

470

Version

1.1.5

License

Apache-2.0

Unpacked Size

31.6 kB

Total Files

14

Last publish

Collaborators

  • dgmachado
  • classicoldsong
  • mayerlench
  • jcassidyav
  • sebjean
  • cjohn001
  • edusperoni
  • asharghi
  • farfromrefuge
  • triniwiz
  • eddyverbruggen
  • rigor789
  • walkerrunpdx
  • dnr
  • keerl
  • cvietor
  • bradmartin
  • rdlabo
  • tralves