1
0
Fork 0
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:
Yury Delendik 2014-03-13 10:58:31 -05:00
commit 1c0e1cc591
5 changed files with 85 additions and 60 deletions

View file

@ -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(