FileSystemWritableFileStream.seek()
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
安全なコンテキスト用: この機能は一部またはすべての対応しているブラウザーにおいて、安全なコンテキスト (HTTPS) でのみ利用できます。
FileSystemWritableFileStream
インターフェイスの seek()
メソッドを呼ぶと、現在のファイルカーソルオフセットを (バイト単位の) 指定の位置に移動します。
構文
js
seek(position)
引数
position
-
ファイルの top (最初) からのバイト単位の位置を表す
unsigned long
値です。
返値
undefined
で解決する Promise
を返します。
例外
NotAllowedError
DOMException
-
PermissionStatus.state
が'granted'
でないとき返されます。 TypeError
-
position
が定義されていないか、unsigned long
型でないとき返されます。
例
未稿
仕様書
Specification |
---|
File System # api-filesystemwritablefilestream-seek |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
seek |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.