byte-data-stream
Advanced tools
Comparing version 1.0.0-rokka0 to 1.1.0
{ | ||
"name": "byte-data-stream", | ||
"version": "1.0.0-rokka0", | ||
"version": "1.1.0", | ||
"description": "Readable & writable byte data stream", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -43,2 +43,4 @@ # byte-data-stream | ||
stream.buffer; // ArrayBuffer | ||
stream.length; // length of stream.buffer | ||
stream.isDataAvailable; // stream.i < stream.length | ||
@@ -45,0 +47,0 @@ // methods for reading data |
@@ -19,2 +19,10 @@ const varint = require('signed-varint'); | ||
get length(){ | ||
return a.buffer.byteLength; | ||
} | ||
get isDataAvailable(){ | ||
return a.i < a.buffer.byteLength; | ||
} | ||
readInt8(){ | ||
@@ -21,0 +29,0 @@ return this.view.getInt8(this.i++); |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
13202
323
1
75