fill
Read the next bytes into the destination starting at offset at most length bytes. May block until at least one byte is available. Usually bypass all exceptions from the underlying source.
Parameters
offset
- in bytes where result should be written
length
- should be at least one byte
Return
number of bytes were copied or 0
if EOF encountered
protected open fun fill(): ChunkBuffer?
Reads the next chunk suitable for reading or null
if no more chunks available. It is also allowed
to return a chain of chunks linked through ChunkBuffer.next. The last chunk should have null
next reference.
Could rethrow exceptions from the underlying source.