aboutsummaryrefslogtreecommitdiffstats
path: root/common/rdr/TLSInStream.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2022-08-23 17:09:40 +0200
committerPierre Ossman <ossman@cendio.se>2022-08-25 11:06:33 +0200
commit0ae1557ed9a7f8b46b6d7e2feaf2fad4cc2c3b3d (patch)
treebc0fdcf38944b9aba09198f5e7d0967ab056ef8e /common/rdr/TLSInStream.cxx
parent62965aa1cd7cd126c7ed505f07430a7194cb3e0f (diff)
downloadtigervnc-0ae1557ed9a7f8b46b6d7e2feaf2fad4cc2c3b3d.tar.gz
tigervnc-0ae1557ed9a7f8b46b6d7e2feaf2fad4cc2c3b3d.zip
Make BufferedInStream allocation more available
Allow subclasses to call it, instead of it being strictly internal. This is useful when a subclass can only provide data in minimum sized chunks.
Diffstat (limited to 'common/rdr/TLSInStream.cxx')
-rw-r--r--common/rdr/TLSInStream.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rdr/TLSInStream.cxx b/common/rdr/TLSInStream.cxx
index 014789e3..aa552e86 100644
--- a/common/rdr/TLSInStream.cxx
+++ b/common/rdr/TLSInStream.cxx
@@ -88,9 +88,9 @@ TLSInStream::~TLSInStream()
delete saved_exception;
}
-bool TLSInStream::fillBuffer(size_t maxSize)
+bool TLSInStream::fillBuffer()
{
- size_t n = readTLS((U8*) end, maxSize);
+ size_t n = readTLS((U8*) end, availSpace());
if (n == 0)
return false;
end += n;