mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-08-03 04:47:21 +02:00
Merge pull request #21070 from Snuffleupagus/ChunkedStream-getBytes-non-length-update-pos
Update the position when calling `ChunkedStream.prototype.getBytes` without a length
This commit is contained in:
commit
b5f52c49d0
@ -190,6 +190,7 @@ class ChunkedStream extends Stream {
|
|||||||
if (strEnd > this.progressiveDataLength) {
|
if (strEnd > this.progressiveDataLength) {
|
||||||
this.ensureRange(pos, strEnd);
|
this.ensureRange(pos, strEnd);
|
||||||
}
|
}
|
||||||
|
this.pos = strEnd;
|
||||||
return bytes.subarray(pos, strEnd);
|
return bytes.subarray(pos, strEnd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user