diff options
author | Kenneth Heafield <github@kheafield.com> | 2014-07-19 02:54:01 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2014-07-19 02:54:01 +0400 |
commit | c83c5a3ee6f3ef7480e7a782d2023af9e99c1711 (patch) | |
tree | fb662565ba0d21c35958d00bc6f672966eacaf99 /util/read_compressed.hh | |
parent | 07d325876cbac72e538c0f03b5933c705c8efc09 (diff) |
D'ph forgot to copy util
Diffstat (limited to 'util/read_compressed.hh')
-rw-r--r-- | util/read_compressed.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/util/read_compressed.hh b/util/read_compressed.hh index 763e6bbd3..767ee94b2 100644 --- a/util/read_compressed.hh +++ b/util/read_compressed.hh @@ -62,6 +62,10 @@ class ReadCompressed { std::size_t Read(void *to, std::size_t amount); + // Repeatedly call read to fill a buffer unless EOF is hit. + // Return number of bytes read. + std::size_t ReadOrEOF(void *const to, std::size_t amount); + uint64_t RawAmount() const { return raw_amount_; } private: |