aboutsummaryrefslogtreecommitdiffstats
path: root/common/rdr/MemInStream.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2020-05-19 21:07:05 +0200
committerPierre Ossman <ossman@cendio.se>2020-05-21 11:34:22 +0200
commit186819080baea53410ae8d8100179a3874ac1e32 (patch)
treeddc4371f612a76114562f4a890a4c3ac3b3bfea6 /common/rdr/MemInStream.h
parente9425ac04d70481f7cb168a19bcbc47728f838c7 (diff)
downloadtigervnc-186819080baea53410ae8d8100179a3874ac1e32.tar.gz
tigervnc-186819080baea53410ae8d8100179a3874ac1e32.zip
Simplify stream availability handling
Just have a simply number of bytes argument to avoid a lot of complexity.
Diffstat (limited to 'common/rdr/MemInStream.h')
-rw-r--r--common/rdr/MemInStream.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rdr/MemInStream.h b/common/rdr/MemInStream.h
index 3e9e77bc..83740dd9 100644
--- a/common/rdr/MemInStream.h
+++ b/common/rdr/MemInStream.h
@@ -53,7 +53,7 @@ namespace rdr {
private:
- size_t overrun(size_t itemSize, size_t nItems, bool wait) { throw EndOfStream(); }
+ bool overrun(size_t needed, bool wait) { throw EndOfStream(); }
const U8* start;
bool deleteWhenDone;
};