@nativescript-community/arraybuffers
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -6,2 +6,6 @@ # Change Log | ||
## [1.1.4](https://github.com/nativescript-community/arraybuffers/compare/v1.1.3...v1.1.4) (2023-11-17) | ||
**Note:** Version bump only for package @nativescript-community/arraybuffers | ||
## [1.1.3](https://github.com/nativescript-community/arraybuffers/compare/v1.1.2...v1.1.3) (2023-08-10) | ||
@@ -8,0 +12,0 @@ |
import { TypedArray } from '.'; | ||
export declare function supportsDirectArrayBuffers(): any; | ||
export declare function createNativeArray(length: any, useInts?: boolean): number[]; | ||
export declare function createNativeArray(length: any, useInts?: boolean, useBytes?: boolean): number[]; | ||
export declare function createArrayBufferOrNativeArray(length: number, useInts?: boolean, canReturnBuffer?: boolean): number[] | TypedArray; | ||
@@ -5,0 +5,0 @@ export declare function createArrayBuffer(length: number, useInts?: boolean, canReturnBuffer?: boolean): TypedArray; |
@@ -12,5 +12,5 @@ let _runtimeVersion; | ||
} | ||
export function createNativeArray(length, useInts = false) { | ||
export function createNativeArray(length, useInts = false, useBytes = false) { | ||
if (useInts) { | ||
return Array.create('int', length); | ||
return Array.create(useBytes ? 'byte' : 'int', length); | ||
} | ||
@@ -17,0 +17,0 @@ else { |
export type FloatArray = Float32Array | Float64Array | Uint8Array; | ||
export type TypedArray = FloatArray | Uint8Array; | ||
export function createArrayBuffer(length: number, useInts?: boolean, canReturnBuffer?: boolean): TypedArray; | ||
export function createNativeArray(length: number, useInts?: boolean): number[]; | ||
export function createNativeArray(length: number, useInts?: boolean, useBytes?: boolean): number[]; | ||
export function pointsFromBuffer(typedArray: TypedArray, useInts?: boolean, canReturnBuffer?: boolean): number[] | TypedArray; | ||
@@ -6,0 +6,0 @@ export function arrayToNativeArray(array, useInts?: boolean, canReturnBuffer?: boolean): number[]; |
{ | ||
"name": "@nativescript-community/arraybuffers", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Utility methods to work with Array Buffers in Nativescript", | ||
@@ -46,3 +46,3 @@ "main": "index", | ||
"bootstrapper": "nativescript-plugin-seed", | ||
"gitHead": "bb22bfadc200c1ae894c3791dc4ab414112c17b1" | ||
"gitHead": "48a6cbf2a9fa4fe5888df6f79449071728c2915c" | ||
} |
Sorry, the diff of this file is not supported yet
31276