fun InputStream.readAllOrException(b: ByteArray): Int
Read bytes from the input stream into the array. If there are not enough bytes to fill the array, an exception is thrown. |
|
fun InputStream.readTwoBytesAsInt(): Int
Read the next two bytes from the InputStream, interpret them as a big-endian number (first byte most significant). This number is then returned. |
|
fun InputStream.skipAllOrException(n: UInt): UInt
Skip over |