readByteString

@JvmName(name = "read")
fun InputStream.readByteString(byteCount: Int): ByteString

Reads count bytes from this InputStream and returns the result.

Throws

if in has fewer than count bytes to read.