write

suspend fun write(offset: Long, data: ByteArray, startIndex: Int = 0, length: Int = data.size - startIndex): Int

Writes a slice of data starting at file offset. Payloads exceeding the server's MaxWriteSize are automatically split into chunks.

Return

Total number of bytes written.