readChunk

abstract fun readChunk(): ByteBuffer?

Read chunk buffer from attachment. The next call will return next chunk. This is independent of other read api.

Return

the next chunk, or null if reader closed or no more next chunk.