base: add new ChunkGenerator method to identify last chunk

This commit is contained in:
Brandon Potter 2015-04-22 07:51:27 -07:00
parent 93c4527128
commit 6ad29ba6df

View file

@ -122,6 +122,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