moved array allocation to consturctor
This commit is contained in:
parent
f79f77174c
commit
e3ecfb00b6
3
pdf.js
3
pdf.js
@ -770,6 +770,7 @@ var Ascii85Stream = (function() {
|
|||||||
function constructor(str) {
|
function constructor(str) {
|
||||||
this.str = str;
|
this.str = str;
|
||||||
this.dict = str.dict;
|
this.dict = str.dict;
|
||||||
|
this.input = new Uint8Array(5);
|
||||||
|
|
||||||
DecodeStream.call(this);
|
DecodeStream.call(this);
|
||||||
}
|
}
|
||||||
@ -799,7 +800,7 @@ var Ascii85Stream = (function() {
|
|||||||
buffer[bufferLength + i] = 0;
|
buffer[bufferLength + i] = 0;
|
||||||
this.bufferLength += 4;
|
this.bufferLength += 4;
|
||||||
} else {
|
} else {
|
||||||
var input = new Uint8Array(5);
|
var input = this.input;
|
||||||
input[0] = c;
|
input[0] = c;
|
||||||
for (var i = 1; i < 5; ++i){
|
for (var i = 1; i < 5; ++i){
|
||||||
c = str.getByte();
|
c = str.getByte();
|
||||||
|
Loading…
Reference in New Issue
Block a user