diff options
Diffstat (limited to 'src/libutil/serialise.cc')
-rw-r--r-- | src/libutil/serialise.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libutil/serialise.cc b/src/libutil/serialise.cc index 9270806a7..1f817a869 100644 --- a/src/libutil/serialise.cc +++ b/src/libutil/serialise.cc @@ -90,6 +90,12 @@ size_t BufferedSource::read(unsigned char * data, size_t len) } +bool BufferedSource::hasData() +{ + return bufPosOut < bufPosIn; +} + + size_t FdSource::readUnbuffered(unsigned char * data, size_t len) { ssize_t n; |