mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Add isEmpty method to Stream, DecodeStream and ChunkedStream
This commit is contained in:
parent
c0419d7dea
commit
ea0453f106
2 changed files with 14 additions and 1 deletions
|
@ -133,6 +133,10 @@ var ChunkedStream = (function ChunkedStreamClosure() {
|
|||
return this.end - this.start;
|
||||
},
|
||||
|
||||
get isEmpty() {
|
||||
return this.length === 0;
|
||||
},
|
||||
|
||||
getByte: function ChunkedStream_getByte() {
|
||||
var pos = this.pos;
|
||||
if (pos >= this.end) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue