sfml.js
    Preparing search index...

    Class FileInputStream

    Seekable asynchronous file input that reads directly into caller buffers.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Replaces the current file; an I/O failure leaves the stream closed.

      Parameters

      • filename: string

      Returns Promise<boolean>

    • 异步读取到 data 并推进位置;返回字节数,文件末尾为 0n,失败或未打开为 undefined。

      Parameters

      • data: Uint8Array

      Returns Promise<undefined | bigint>

    • 按顺序设置绝对字节位置(0~2^53−1),返回新位置;未打开返回 undefined。

      Parameters

      • position: bigint

      Returns Promise<undefined | bigint>