Comparing version 5.1.0 to 5.1.1
@@ -1,2 +0,2 @@ | ||
export declare interface ReadOnlyBitSet | ||
export declare interface ReadOnlyBitSet | ||
{ | ||
@@ -199,2 +199,7 @@ /** | ||
slice(fromIndex?: number, toIndex?: number): BitSet; | ||
/** | ||
* Iterates over the set bits | ||
*/ | ||
[Symbol.iterator](): Iterator<number>; | ||
} | ||
@@ -489,2 +494,9 @@ export declare var ReadOnlyBitSet: ReadOnlyBitSet; | ||
public flip(fromIndex?: number, toIndex?: number): BitSet; | ||
/** | ||
* Iterates over the set bits | ||
*/ | ||
[Symbol.iterator](): Iterator<number>; | ||
} | ||
export default BitSet; |
/** | ||
* @license BitSet.js v5.1.0 2/1/2020 | ||
* @license BitSet.js v5.1.1 2/1/2020 | ||
* http://www.xarg.org/2014/03/javascript-bit-array/ | ||
@@ -4,0 +4,0 @@ * |
/* | ||
BitSet.js v5.1.0 2/1/2020 | ||
BitSet.js v5.1.1 2/1/2020 | ||
http://www.xarg.org/2014/03/javascript-bit-array/ | ||
@@ -21,2 +21,2 @@ | ||
function(){var a=this.data,b=0;if(0===this._){for(var c=0,d=a.length-1;0<=d;d--)if(0!==a[d]){c=d;break}return{next:function(){var e=b>>>5;return{done:e>c||e===c&&0===a[e]>>>b,value:e>c?0:a[e]>>>b++&1}}}}return{next:function(){var e=b>>>5;return{done:!1,value:e<a.length?a[e]>>>b++&1:1}}}},g);l.fromBinaryString=function(a){return new l("0b"+a)};l.fromHexString=function(a){return new l("0x"+a)};l.Random=function(a){if(void 0===a||0>a)a=32;var b=a%32,c=[];a=Math.ceil(a/32);for(var d=Object.create(l.prototype), | ||
e=0;e<a;e++)c.push(4294967296*Math.random()|0);0<b&&(c[a-1]&=(1<<b)-1);d.data=c;d._=0;return d};"function"===typeof define&&define.amd?define([],function(){return l}):"object"===typeof exports?(Object.defineProperty(exports,"__esModule",{value:!0}),l["default"]=l,l.BitSet=l,module.exports=l):h.BitSet=l})(this); | ||
e=0;e<a;e++)c.push(4294967296*Math.random()|0);0<b&&(c[a-1]&=(1<<b)-1);d.data=c;d._=0;return d};"function"===typeof define&&define.amd?define([],function(){return l}):"object"===typeof exports?(Object.defineProperty(exports,"__esModule",{value:!0}),l["default"]=l,l.BitSet=l,module.exports=l):h.BitSet=l})(this); |
{ | ||
"name": "bitset.js", | ||
"main": "bitset.js", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"homepage": "http://www.xarg.org/2014/03/javascript-bit-array/", | ||
@@ -6,0 +6,0 @@ "description": "A performance optimized infinite bit vector library", |
/** | ||
* @license BitSet.js v5.0.5 14/08/2015 | ||
* @license BitSet.js v5.1.1 14/08/2015 | ||
* http://www.xarg.org/2014/03/javascript-bit-array/ | ||
@@ -9,7 +9,2 @@ * | ||
/** | ||
* @fileoverview BUild process for BitSet.js | ||
* @author zhoumotongxue008@gmail.com (Michael Zhou) | ||
*/ | ||
'use strict'; | ||
@@ -16,0 +11,0 @@ |
/** | ||
* @license BitSet.js v3.1.0 14/08/2015 | ||
* @license BitSet.js v5.1.1 14/08/2015 | ||
* http://www.xarg.org/2014/03/javascript-bit-array/ | ||
@@ -4,0 +4,0 @@ * |
{ | ||
"name": "bitset", | ||
"title": "BitSet", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"homepage": "http://www.xarg.org/2014/03/javascript-bit-array/", | ||
@@ -6,0 +6,0 @@ "description": "A performance optimized infinite bit vector library", |
@@ -93,24 +93,20 @@ # BitSet.js | ||
Parser | ||
Constructor | ||
=== | ||
The parser accepts the following types of values in either function | ||
The default `BitSet` constructor accepts a single value of one the following types : | ||
Strings | ||
- Binary strings "010101" | ||
- Binary strings with prefix "0b100101" | ||
- Hexadecimal strings with prefix "0xaffe" | ||
- String | ||
- Binary strings : `new BitSet("010101")` | ||
- Binary strings with prefix : `new BitSet("0b010101")` | ||
- Hexadecimal strings with prefix `new BitSet("0xaffe")` | ||
- Array | ||
- The values of the array are the indices to be set to 1 : `new BitSet([1,12,9])` | ||
- [Uint8Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) | ||
- A binary representation in 8 bit form | ||
- Number | ||
- A binary value | ||
- BitSet | ||
- A BitSet object, which get copied over | ||
**Arrays** | ||
- The values of the array are the indizes to be set to 1 | ||
**Uint8Array** | ||
- A binary representation in 8 bit form | ||
**Number** | ||
- A binary value | ||
**BitSet** | ||
- A BitSet object, which get copied over | ||
Functions | ||
@@ -117,0 +113,0 @@ === |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71537
1943
259