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: AllowSharedBufferSource,
options?: FileSystemReadWriteOptions,
): number Parameters
- buffer: AllowSharedBufferSource
Optional
options: FileSystemReadWriteOptions
Returns number
truncate
write
- write(
buffer: AllowSharedBufferSource,
options?: FileSystemReadWriteOptions,
): number Parameters
- buffer: AllowSharedBufferSource
Optional
options: FileSystemReadWriteOptions
Returns number
Available only in secure contexts.
MDN Reference