kmpWrite

fun kmpWrite(sink: KmpSink?, buffer: Buffer?, b: ByteArray, off: Int, len: Int)

Platform-specific bulk write used by OkioSinkOutputStream.write.

Kotlin/Native showed a large throughput gap when writes fell back to slow generic paths (especially many small length-prefixed records). This function centralizes an optimized array write path while preserving identical stream semantics.