writeBytes

suspend fun ByteWriteChannel.writeBytes(s: String): Unit

See java.io.DataOutput.writeBytes