ByteReader

interface ByteReader

Byte Reader

Defines a low-level stream reader that fills a given buffer with bytes read from the stream.

Author

Elizabeth Paige Harper - https://github.com/foxcapades

Since

1.0.0

Functions

Link copied to clipboard
abstract fun read(buffer: ByteArray, offset: Int = 0, max: Int = buffer.size - offset): Int

Reads bytes from the stream into the given buffer starting at the given offset position for a maximum of max bytes.