typedarray-to-buffer
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -16,3 +16,3 @@ /** | ||
var buf = new Buffer(arr.buffer) | ||
if (arr.byteOffset !== 0 || arr.byteLength !== arr.buffer.byteLength) { | ||
if (arr.byteLength !== arr.buffer.byteLength) { | ||
// Respect the "view", i.e. byteOffset and byteLength, without doing a copy | ||
@@ -19,0 +19,0 @@ buf = buf.slice(arr.byteOffset, arr.byteOffset + arr.byteLength) |
{ | ||
"name": "typedarray-to-buffer", | ||
"description": "Convert a typed array to a Buffer without a copy", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Feross Aboukhadijeh", |
8589