Interface Cache

Interface for caches of parts (headers, directories) of a PMTiles archive.

interface Cache {
    getArrayBuffer: ((source, offset, length, header) => Promise<ArrayBuffer>);
    getDirectory: ((source, offset, length, header) => Promise<Entry[]>);
    getHeader: ((source) => Promise<Header>);
    invalidate: ((source) => Promise<void>);
}

Properties

getArrayBuffer: ((source, offset, length, header) => Promise<ArrayBuffer>)

Type declaration

    • (source, offset, length, header): Promise<ArrayBuffer>
    • Parameters

      Returns Promise<ArrayBuffer>

getDirectory: ((source, offset, length, header) => Promise<Entry[]>)

Type declaration

    • (source, offset, length, header): Promise<Entry[]>
    • Parameters

      Returns Promise<Entry[]>

getHeader: ((source) => Promise<Header>)

Type declaration

invalidate: ((source) => Promise<void>)

Type declaration

    • (source): Promise<void>
    • Parameters

      Returns Promise<void>

Generated using TypeDoc