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

    Class BufferWriter

    Buffer writer is used on smaller datasets that are easy to write in memory. Faster then the Filesystem

    Implements

    Index

    Methods

    • Append data to the buffer

      Parameters

      • data: Uint8Array

        the data to append

      Returns Promise<void>

    • Append string to the buffer

      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

    • Returns Uint8Array

      • the buffer
    • Write data to the buffer

      Parameters

      • data: Uint8Array

        the data to write

      • offset: number

        where in the buffer to start

      Returns Promise<void>