byte-data-stream
Advanced tools
Comparing version 0.0.7-rokka0 to 0.0.8-rokka0
{ | ||
"name": "byte-data-stream", | ||
"version": "0.0.7-rokka0", | ||
"version": "0.0.8-rokka0", | ||
"description": "Readable & writable byte data stream", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -118,9 +118,7 @@ const var_int = require('signed-varint'); | ||
len = (this.i+len)-this.buf.byteLength; | ||
let buf = [...new Uint8Array(this.buf)]; | ||
this.buf = new ArrayBuffer(buf.length+len); | ||
let v = new Uint8Array(this.buf); | ||
for(let i in buf){ | ||
v[i] = buf[i]; | ||
} | ||
this.view = new DataView(this.buf); | ||
if(len <= 0) return; | ||
let buf = new ArrayBuffer(buf.length+len); | ||
new Uint8Array(buf).set(this.buf); | ||
delete this.buf; | ||
this.buf = buf; | ||
} | ||
@@ -127,0 +125,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
10283
209