getAsByte

abstract fun getAsByte(): Int

The contract is similar to read, return the byte as an unsigned int, -1 if there are no more bytes.

Return

the supplied byte or -1 if there are no more bytes

Throws

if supplying fails