Chops a buffer up in to smaller pieces.
Definition BufferChopper.h:13
char * getChunkData()
Gets the pointer to the next chop of data. Each call moves the internal pointer up until no more data...
bool isDone() const
Get the status on the chopping being done or not.
bool moveNext()
Moves to the next chuck when available.
void assign(char *data, size_t sz)
Assigns the buffer to be chopped.
size_t getChunkSize() const
Gets the size of the chop pointed at by getChunkData().
BufferChopper(size_t chopSize=1024)
Constructor passing the chop size.
Definition Application.h:10