Comparing version 0.0.17 to 0.0.18
@@ -58,2 +58,4 @@ /* | ||
me.brange[ me.wuint ]( me.range, 0 ); | ||
// currying compare function with current range | ||
me.bcompare = compare.bind( me, me.brange, 0 ); | ||
// create result Buffer without filling it with data | ||
@@ -122,3 +124,3 @@ me.result = new Buffer( me.tbytes ); | ||
var me = this | ||
, dlen = data.length | ||
, bcomp = me.bcompare | ||
, brange = me.brange | ||
@@ -130,5 +132,4 @@ , result = me.result | ||
, ibits = me.ibits | ||
// mask to apply to cut bits out of current range | ||
, cmask = masks[ ibits - bits ] | ||
// current data read offset and limit | ||
, dlen = data.length | ||
, l = dlen - ibytes | ||
@@ -149,3 +150,3 @@ , o = 0 | ||
data[ o ] &= cmask; | ||
if ( compare( brange, 0, data, o ) <= 0 ) continue; | ||
if ( bcomp( data, o ) <= 0 ) continue; | ||
data.copy( result, me.wpos, o, o + ibytes ); | ||
@@ -152,0 +153,0 @@ me.wpos += ibytes; |
{ | ||
"name": "brando" | ||
, "version": "0.0.17" | ||
, "version": "0.0.18" | ||
, "description": "Brando." | ||
@@ -5,0 +5,0 @@ , "homepage": "https://github.com/rootslab/brando" |
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
24267
365