writePacket

suspend fun ByteWriteChannel.writePacket(copy: Buffer)(source)


suspend fun ByteWriteChannel.writePacket(source: Source)(source)

Writes the entire source contents to the ByteChannel. Prevents memory exhaustion by waiting for buffer to flush.