Interface FileSystemSyncAccessHandle
interface FileSystemSyncAccessHandle {
close(): void;
flush(): void;
getSize(): number;
read(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;
truncate(newSize: number): void;
write(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;
}
close(): void;
flush(): void;
getSize(): number;
read(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;
truncate(newSize: number): void;
write(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;
}
Methods
close
flush
getSize
read
- read(buffer, options?): number
Parameters
- buffer: AllowSharedBufferSource
Optional
options: FileSystemReadWriteOptions
Returns number
truncate
write
- write(buffer, options?): number
Parameters
- buffer: AllowSharedBufferSource
Optional
options: FileSystemReadWriteOptions
Returns number
Available only in secure contexts.
MDN Reference