MAIDR JavaScript API
    Preparing search index...

    Function slicedSource

    • A byte source over a file fetched in fixed-size slices, each fetched once, when a read first needs it.

      Parameters

      • size: number

        The file's size, in bytes.

      • sliceSize: number

        The size of every slice but the last.

      • slice: (index: number) => Promise<Uint8Array<ArrayBufferLike>>

        Fetches the slice at an index.

      Returns ByteSource

      The source.