mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Add peekByte method to Stream, DecodeStream and ChunkedStream
This commit is contained in:
parent
0674a3bd02
commit
d1974eae34
3 changed files with 18 additions and 2 deletions
|
@ -478,7 +478,7 @@ var Lexer = (function LexerClosure() {
|
|||
return (this.currentChar = this.stream.getByte());
|
||||
},
|
||||
peekChar: function Lexer_peekChar() {
|
||||
return this.stream.peekBytes(1)[0];
|
||||
return this.stream.peekByte();
|
||||
},
|
||||
getNumber: function Lexer_getNumber() {
|
||||
var ch = this.currentChar;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue