Skip to content
This repository has been archived by the owner on Jan 27, 2018. It is now read-only.
/ BitField Public archive
forked from fb55/bitfield

a very simple bitfield implementation using buffers

Notifications You must be signed in to change notification settings

PeerCDN/BitField

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

#BitField

PeerCDN Note: Our additions:

  • Google Closure annotations
  • Style changes

a very simple bitfield

npm install bitfield

####Methods BitField(data): Data can be either a buffer, WebGL Int8Array or numeric array, or a number representing the maximum number of supported bytes.

BitField#get(index): Returns a boolean indicating whether the bit is set.

BitField#set(index[, value]): Values defaults to true. Sets the bit to the boolean value of the value (true = 1, false = 0).

####Properties BitField#buffer: The contents of the BitField.

About

a very simple bitfield implementation using buffers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%