FileSystemSyncAccessHandle
The FileSystemSyncAccessHandle
interface of the File System API represents a synchronous handle to a file system entry. Available only in secure contexts.
Functions
Link copied to clipboard
fun read(buffer: AllowSharedBufferSource, options: FileSystemReadWriteOptions = definedExternally): UInt53
The read()
method of the FileSystemSyncAccessHandle interface reads the content of the file associated with the handle into a specified buffer, optionally at a given offset.
Link copied to clipboard
fun write(buffer: AllowSharedBufferSource, options: FileSystemReadWriteOptions = definedExternally): UInt53
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.