read

open override fun read(): Int(source)

Read a single byte as an unsigned value 0..255, or -1 at end of input.


open override fun read(dest: ByteArray): Int(source)

Read bytes into dest. Implementations must read repeatedly if necessary to fill dest, returning a count smaller than dest.size only at end of input — the \binN reader treats a short count as a truncated document.