readNBytes

fun Input.readNBytes(n: Int): ByteArray?

Read bytes from the input. Return null if the input is too small.