@opfs.js/core
    Preparing search index...

    Class FileRO

    Read-only file handle. Provides methods for reading and querying file size.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    fullPath: string

    Methods

    • Get file size in bytes.

      Returns Promise<number>

    • Read data from the file.

      Parameters

      • size: number | BufferSource

        Number of bytes or a preallocated buffer.

      • Optionaloptions: { at?: number }

        Optional at offset to read from.

      Returns Promise<ArrayBuffer>

      A Promise resolving to an ArrayBuffer of read data.