MAIDR JavaScript API
    Preparing search index...

    Interface ByteSource

    Where the bytes of a zip file come from: the whole file in memory, or a file fetched in slices on demand.

    interface ByteSource {
        size: number;
        read: (
            offset: number,
            length: number,
        ) => Promise<Uint8Array<ArrayBufferLike>>;
    }
    Index

    Properties

    Properties

    size: number

    The file's size, in bytes.

    read: (offset: number, length: number) => Promise<Uint8Array<ArrayBufferLike>>

    The length bytes from offset. A read past the end returns what there is.