},
getByte: function stream_getByte() {
if (this.pos >= this.end)
- return;
+ return null;
return this.bytes[this.pos++];
},
// returns subarray of original buffer
},
lookChar: function stream_lookChar() {
if (this.pos >= this.end)
- return;
+ return null;
return String.fromCharCode(this.bytes[this.pos]);
},
getChar: function stream_getChar() {
if (this.pos >= this.end)
- return ;
+ return null;
return String.fromCharCode(this.bytes[this.pos++]);
},
skip: function stream_skip(n) {
var pos = this.pos;
while (this.bufferLength <= pos) {
if (this.eof)
- return ;
+ return null;
this.readBlock();
}
return this.buffer[this.pos++];
var pos = this.pos;
while (this.bufferLength <= pos) {
if (this.eof)
- return ;
+ return null;
this.readBlock();
}
return String.fromCharCode(this.buffer[this.pos]);
var pos = this.pos;
while (this.bufferLength <= pos) {
if (this.eof)
- return ;
+ return null;
this.readBlock();
}
return String.fromCharCode(this.buffer[this.pos++]);
}
}
- if (bitsPerComponent !== 8)
+ if (bitsPerComponent !== 8) {
TODO("Support bpc="+ bitsPerComponent);
+ this.restore();
+ return;
+ }
var xref = this.xref;
var colorSpaces = this.colorSpaces;