protected fun fill(): Nothing?

Overrides AbstractInput.fill

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 The last chunk should have null next reference. Could rethrow exceptions from the underlying source.

protected fun fill(
    destination: Memory,
    offset: Int,
    length: Int
): Int

Overrides AbstractInput.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.


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