readPacketExact

fun ReadableByteChannel.readPacketExact(n: Long): ByteReadPacket

Read a packet of exactly n bytes. This function is useless with non-blocking channels