base: add new ChunkGenerator method to identify last chunk
This commit is contained in:
parent
93c4527128
commit
6ad29ba6df
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue