♻️ Remove this
This commit is contained in:
parent
93b3d6c75d
commit
872b87a4e0
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ export default function arrayBufferToStream(arrayBuffer: ArrayBuffer, offset: nu
|
||||||
do {
|
do {
|
||||||
//If end is reached
|
//If end is reached
|
||||||
if (position >= endPosition - 1) {
|
if (position >= endPosition - 1) {
|
||||||
this.push(null);
|
outStream.push(null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ export default function arrayBufferToStream(arrayBuffer: ArrayBuffer, offset: nu
|
||||||
//chunk.fill(arrayBuffer, position);
|
//chunk.fill(arrayBuffer, position);
|
||||||
//const chunk = Buffer.from(arrayBuffer, position, chunkSize);
|
//const chunk = Buffer.from(arrayBuffer, position, chunkSize);
|
||||||
position += chunk.length;
|
position += chunk.length;
|
||||||
needMoreData = this.push(chunk);
|
needMoreData = outStream.push(chunk);
|
||||||
} while (needMoreData);
|
} while (needMoreData);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue