typedarray-addition

0.0.3 • Public • Published

SYNOPSIS

NPM Package Build Status Coverage Status

js-standard-style

This adds TypedArrays of arbitrary length together

INSTALL

npm install typedarray-addition

USAGE

const typedAddition = require('typedarray-addition')
const result = typedAddition.add(new Uint8Array([1, 2, 4]), new Uint8Array([42, 4, 1]))
console.log(result) // [43, 6, 5]

API

add

Adds two typed arrays together. The arrays must be the same bitwidth

Parameters

Returns TypedArray the result is stored in a new typed array

addn

Adds a typed arrays and a natural number together

Parameters

Returns TypedArray the result is stored in a new typed array

LICENSE

MPL-2.0

Readme

Keywords

Package Sidebar

Install

npm i typedarray-addition

Weekly Downloads

3

Version

0.0.3

License

MPL-2.0

Unpacked Size

78 kB

Total Files

20

Last publish

Collaborators

  • null_radix