mimekit-ts - v1.0.0
    Preparing search index...

    Class FileSliceReader

    A RandomAccessReader over a DOM File/Blob that reads through slice() + arrayBuffer().

    Hierarchy (View Summary)

    Implements

    Index
    size: number

    Total number of bytes in the source.

    blob: Blob

    The File or Blob to read from.

    • Read up to length bytes starting at position.

      Parameters

      • position: number

        Zero-based byte offset to start reading from.

      • length: number

        Maximum number of bytes to read.

      Returns Promise<Uint8Array<ArrayBufferLike>>

      A promise for the bytes read, clamped to the source.

      position or length is negative or not an integer.