Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@nativescript-community/arraybuffers

nativescript-community6.8kApache-2.01.1.5TypeScript support: included

Utility methods to work with Array Buffers in Nativescript

NativeScript, JavaScript, iOS, Android

readme

@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;

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.1.5 (2023-11-17)

Note: Version bump only for package @nativescript-community/arraybuffers

1.1.4 (2023-11-17)

Note: Version bump only for package @nativescript-community/arraybuffers

1.1.3 (2023-08-10)

Note: Version bump only for package @nativescript-community/arraybuffers

1.1.2 (2023-08-10)

Note: Version bump only for package @nativescript-community/arraybuffers

1.1.1 (2022-10-28)

Bug Fixes

  • android: native api usage fix (67075d4)

1.1.0 (2022-10-17)

Features

  • android: native api usage (59456bf)

1.0.3 (2022-10-17)

Note: Version bump only for package @nativescript-community/arraybuffers

1.0.2 (2022-10-15)

Note: Version bump only for package @nativescript-community/arraybuffers

1.0.1 (2022-07-17)

Note: Version bump only for package @nativescript-community/arraybuffers

1.0.0 (2022-05-13)

Note: Version bump only for package @nativescript-community/arraybuffers