readChunk

ctx - The context which provides a ByteBufAllocator if buffer allocation is necessary.

Returns:

the fetched chunk.
null if there is no data left in the stream.
Please note that null does not necessarily mean that the
stream has reached at its end. In a slow stream, the next chunk
might be unavailable just momentarily.

the fetched chunk.
null if there is no data left in the stream.
Please note that null does not necessarily mean that the
stream has reached at its end. In a slow stream, the next chunk
might be unavailable just momentarily.