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 GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
seek

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
See implementation notes.

関連情報