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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.30latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.30
0.0.20
0.0.10
0.0.00

Package Sidebar

Install

npm i typedarray-addition

Weekly Downloads

0

Version

0.0.3

License

MPL-2.0

Unpacked Size

78 kB

Total Files

20

Last publish

Collaborators

  • null_radix