mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Merge pull request #4444 from nnethercote/min-length
Estimate the size of decoded streams in advance.
This commit is contained in:
commit
1c0e1cc591
5 changed files with 85 additions and 60 deletions
|
@ -30,7 +30,7 @@ describe('stream', function() {
|
|||
|
||||
var input = new Stream(new Uint8Array([2, 100, 3, 2, 1, 255, 2, 1, 255]),
|
||||
0, 9, dict);
|
||||
var predictor = new PredictorStream(input, dict);
|
||||
var predictor = new PredictorStream(input, /* length = */ 9, dict);
|
||||
var result = predictor.getBytes(6);
|
||||
|
||||
expect(result).toMatchTypedArray(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue