diff options
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/chunk_generator.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/base/chunk_generator.hh b/src/base/chunk_generator.hh index cf303f693..a11bd73e6 100644 --- a/src/base/chunk_generator.hh +++ b/src/base/chunk_generator.hh @@ -123,6 +123,12 @@ class ChunkGenerator bool done() const { return (curSize == 0); } /** + * Is this the last chunk? + * @return True if yes, false if more to go. + */ + bool last() const { return (sizeLeft == 0); } + + /** * Advance generator to next chunk. * @return True if successful, false if unsuccessful * (because we were at the last chunk). |