brando
Advanced tools
Comparing version 0.0.53 to 0.0.55
@@ -6,3 +6,2 @@ var log = console.log | ||
, Sequence = require( '../lib/filters/emitters/sequence' ) | ||
, sample_data = fs.readFileSync( './example/sample' ) | ||
// items | ||
@@ -18,3 +17,2 @@ , i = 1024 | ||
, onFart = function ( result, used_ratio ) { | ||
etime = Date.now(); | ||
log( ' :fart %d bytes, consumed: %d%, buffer:', result.length, ( used_ratio * 100 ).toFixed( 2 ), result ); | ||
@@ -21,0 +19,0 @@ log(); |
var log = console.log | ||
, Brando = require( '../' ) | ||
, fs = require( 'fs' ) | ||
@@ -23,4 +22,2 @@ , input = fs.createReadStream( './example/sample' ) | ||
, onEnd = function () { | ||
var me = this | ||
; | ||
log( 'end' ); | ||
@@ -27,0 +24,0 @@ } |
var log = console.log | ||
, Brando = require( '../' ) | ||
, fs = require( 'fs' ) | ||
@@ -14,4 +13,2 @@ , input = fs.createReadStream( './example/sample' ) | ||
, onEnd = function () { | ||
var me = this | ||
; | ||
log( 'end' ); | ||
@@ -18,0 +15,0 @@ } |
@@ -18,4 +18,2 @@ var log = console.log | ||
, onEnd = function () { | ||
var me = this | ||
; | ||
log( 'end' ); | ||
@@ -22,0 +20,0 @@ } |
@@ -13,3 +13,2 @@ /* | ||
, max = Math.max | ||
, pow = Math.pow | ||
, ceil = Math.ceil | ||
@@ -16,0 +15,0 @@ , dlog = Math.log |
@@ -52,3 +52,2 @@ /* | ||
, ibytes = me.ibytes | ||
, range = me.range | ||
, tbytes = me.tbytes | ||
@@ -91,5 +90,3 @@ , result = me.result | ||
, ruint = me.ruint | ||
, wuint = me.wuint | ||
, result = me.result | ||
, range = me.range | ||
, tbytes = me.tbytes | ||
@@ -96,0 +93,0 @@ , ibytes = me.ibytes |
@@ -10,3 +10,2 @@ /* | ||
var log = console.log | ||
, abs = Math.abs | ||
, floor = Math.floor | ||
@@ -130,2 +129,3 @@ , min = Math.min | ||
, ratio = -1 | ||
, r = -1 | ||
; | ||
@@ -132,0 +132,0 @@ for ( ; me.wpos < tbytes; o += ibytes ) { |
@@ -13,3 +13,3 @@ /* | ||
, min = Math.min | ||
, max = Math.max | ||
, max = Math.max | ||
, ceil = Math.ceil | ||
@@ -47,3 +47,3 @@ , dlog = Math.log | ||
// align seq.left value (n-1 iterations) | ||
seq.left -= 1 | ||
seq.left -= 1; | ||
} | ||
@@ -61,6 +61,5 @@ , fptsproto = null | ||
, ruint = seq.ruint | ||
, range = seq.range | ||
, bmap = seq.bitmap | ||
, ibytes = seq.ibytes | ||
, result = seq.result | ||
, result = seq.resul | ||
, items = seq.items | ||
, cmask = seq.cmask | ||
@@ -83,3 +82,3 @@ , dlen = data.length | ||
// limit max packet size to seq.items, default is full range size | ||
if ( seq.items && ! ( seq.wpos % seq.items ) ) { | ||
if ( items && ! ( seq.wpos % items ) ) { | ||
// seq.items were already shuffled, they are all in their final places | ||
@@ -86,0 +85,0 @@ me.push( seq.result.slice( seq.wpos ) ); |
@@ -15,4 +15,2 @@ /* | ||
, is = me instanceof PPTransStream | ||
, seq = null | ||
, bcompare = null | ||
; | ||
@@ -19,0 +17,0 @@ if ( ! is ) return new PPTransStream( i, r, opt ); |
{ | ||
"name": "brando" | ||
, "version": "0.0.53" | ||
, "version": "0.0.55" | ||
, "description": "Brando." | ||
@@ -5,0 +5,0 @@ , "homepage": "https://github.com/rootslab/brando" |
76912
1180