Uint1Array up to Uint8Array Based on Typed Array. Useful for compression.
npm install customuintxarray---
shell
npm install customuintxarray
`$3
#### Browser
`javascript
// Use the file located in /dist/index.min.js for proper polyfill support (pre-Chrome 61.0)
var Uint1ArrayCustom = window.Uint1ArrayCustom;
`#### NodeJS
`javascript
// Use the file located in / for compatibility with code processors like Babel
import { Uint1ArrayCustom } from "customuintxarray";
`
---
Available:
$3
$3
$3
$3
$3
$3
---
$3
#### Constructor
`javascript
new Uint7ArrayCustom(s)
`s: Size of the array or an instance of Uint8Array or Uint8ClampedArray.
#### Propertiesa: Returns the underlying Uint8Array.
#### Methodsread(index): Read a 7-bit integer at the given index.
write(index, value): Write a 7-bit integer at the given index.
---$3
---
$3
#### Properties
length: Returns the length of the array.
bits`: Returns the number of bits each integer in the array occupies.As for the context, this library provides a structured, performant way to work with varying bit-length integers. It gives more control over the bit-level representation of numbers, which can be crucial for tasks that require high-performance or low-level data manipulation.