gis-tools-ts - v0.6.0
    Preparing search index...

    Class FileWriter

    The File writer is to be used by bun/node/deno on the local filesystem.

    Implements

    Index

    Constructors

    • Parameters

      • file: string

        the location of the PMTiles data in the FS

      Returns FileWriter

    Properties

    file: string

    the location of the PMTiles data in the FS

    Methods

    • Append data to the buffer

      Parameters

      • data: Uint8Array

        the data to append

      Returns Promise<void>

      • a promise that resolves when the data is appended
    • Append string to the buffer synchronously

      Parameters

      • string: string

        the string to append

      Returns Promise<void>

    • Append string to the buffer synchronously

      Parameters

      • string: string

        the string to append

      Returns void

    • Append data to the buffer synchronously

      Parameters

      • data: Uint8Array

        the data to append

      Returns void

    • Close the file

      Returns void

    • Write data to the buffer

      Parameters

      • data: Uint8Array

        the data to write

      • offset: number

        where in the buffer to start

      Returns Promise<void>