We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 733705d commit bba8729Copy full SHA for bba8729
src/core/Node.ts
@@ -193,7 +193,7 @@ export class Node {
193
if (actualLen + pos > this.buf.length) {
194
actualLen = this.buf.length - pos;
195
}
196
- const buf2 = buf instanceof Buffer ? buf : Buffer.from(buf.buffer);
+ const buf2 = buf instanceof Buffer ? buf : Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
197
this.buf.copy(buf2, off, pos, pos + actualLen);
198
return actualLen;
199
0 commit comments