getChunk

suspend fun getChunk(): Pair<ByteArray, Boolean>

returns a pair containing a chunk and whether it is the last