Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nativescript-community/arraybuffers

Package Overview
Dependencies
Maintainers
19
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nativescript-community/arraybuffers

Utility methods to work with Array Buffers in Nativescript

  • 1.1.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
334
decreased by-1.76%
Maintainers
19
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 17 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc