* Creates an HTML5FS instance with the given options.
(opts: HTML5FSOptions, cb: BFSCallback<HTML5FS>)
| 175 | * Creates an HTML5FS instance with the given options. |
| 176 | */ |
| 177 | public static Create(opts: HTML5FSOptions, cb: BFSCallback<HTML5FS>): void { |
| 178 | const fs = new HTML5FS(opts.size, opts.type, false); |
| 179 | fs.allocate((e) => e ? cb(e) : cb(null, fs), false); |
| 180 | } |
| 181 | public static isAvailable(): boolean { |
| 182 | return !!_getFS; |
| 183 | } |