FileSystemSyncAccessHandle.webidl (950B)
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 dictionary FileSystemReadWriteOptions { 7 [EnforceRange] unsigned long long at; 8 }; 9 10 [Exposed=(DedicatedWorker), SecureContext, Pref="dom.fs.enabled"] 11 interface FileSystemSyncAccessHandle { 12 [Throws] unsigned long long read(AllowSharedBufferSource buffer, 13 optional FileSystemReadWriteOptions options = {}); 14 [Throws] unsigned long long write(AllowSharedBufferSource buffer, 15 optional FileSystemReadWriteOptions options = {}); 16 17 [Throws] undefined truncate([EnforceRange] unsigned long long size); 18 [Throws] unsigned long long getSize(); 19 [Throws] undefined flush(); 20 undefined close(); 21 };