Class BufferReader

Buffer reader is used on files that are small and easy to read in memory. Faster then the Filesystem

Implements

Constructors

Properties

Methods

Constructors

  • Parameters

    • buffer: Uint8Array

      the input data is the entire pmtiles file

    Returns BufferReader

Properties

buffer: Uint8Array

the input data is the entire pmtiles file

Methods

  • Parameters

    • offset: number

      the offset of the range

    • length: number

      the length of the range

    Returns Promise<Uint8Array>

    • the ranged buffer