🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

bitarray-native

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitarray-native

libbitarray bindings for JavaScript

Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
0
-100%
Maintainers
2
Weekly downloads
 
Created
Source

bitarray-native

https://github.com/holepunchto/libbitarray bindings for JavaScript.

npm i bitarray-native

Usage

const Bitarray = require('bitarray-native')

const b = new Bitarray()

b.set(1234, true)
b.get(1234)
// true

API

const bitarray = new Bitarray()

const page = bitarray.page(i)

for (const page of bitarray.pages())

bitarray.insert(bitfield[, start])

bitarray.clear(bitfield[, start])

bitarray.get(bit)

bitarray.set(bit[, value])

bitarray.unset(bit)

bitarray.fill(value[, start[, end]])

bitarray.findFirst(value[, position])

bitarray.firstSet([position])

bitarray.firstUnsetSet([position])

bitarray.findLast(value[, position])

bitarray.lastSet([position])

bitarray.lastUnset([position])

bitarray.count(value[, start[, end]])

bitarray.countSet([start[, end]])

bitarray.countUnset([start[, end]])

License

Apache-2.0

FAQs

Package last updated on 04 Jun 2024

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