},
getByte: function stream_getByte() {
if (this.pos >= this.end)
- return null;
+ return;
return this.bytes[this.pos++];
},
// returns subarray of original buffer
},
lookChar: function stream_lookChar() {
if (this.pos >= this.end)
- return null;
+ return;
return String.fromCharCode(this.bytes[this.pos]);
},
getChar: function stream_getChar() {
if (this.pos >= this.end)
- return null;
+ return ;
return String.fromCharCode(this.bytes[this.pos++]);
},
skip: function stream_skip(n) {
var pos = this.pos;
while (this.bufferLength <= pos) {
if (this.eof)
- return null;
+ return ;
this.readBlock();
}
return this.buffer[this.pos++];
var pos = this.pos;
while (this.bufferLength <= pos) {
if (this.eof)
- return null;
+ return ;
this.readBlock();
}
return String.fromCharCode(this.buffer[this.pos]);
var pos = this.pos;
while (this.bufferLength <= pos) {
if (this.eof)
- return null;
+ return ;
this.readBlock();
}
return String.fromCharCode(this.buffer[this.pos++]);
this.columns = params.get("Columns") || 1728;
this.rows = params.get("Rows") || 0;
var eoblock = params.get("EndOfBlock");
- if (typeof eoblock == "undefined")
+ if (eoblock == null)
eoblock = true;
this.eoblock = eoblock;
this.black = params.get("BlackIs1") || false;