write method

@AvailableInWorkers("dedicated")

The write() method of the FileSystemSyncAccessHandle interface writes the content of a specified buffer to the file associated with the handle, optionally at a given offset.

Files within the origin private file system are not visible to end-users, therefore are not subject to the same security checks as methods running on files within the user-visible file system. As a result, writes performed using FileSystemSyncAccessHandle.write() are much more performant. This makes them suitable for significant, large-scale file updates such as SQLite database modifications.

Implementation

external int write(
  AllowSharedBufferSource buffer, [
  FileSystemReadWriteOptions options,
]);