write

abstract suspend fun write(piece: Int, offset: Int, data: ByteArray)

Write data at offset within piece. The bytes are owned by the callee after the call.