@ferrybig/cgeodata-reader
    Preparing search index...

    A source over bytes already in memory: a file read up front, or the body of a fetch().

    Implements

    Index
    • Parameters

      • bytes: ArrayBuffer | Uint8Array<ArrayBufferLike>
      • Optionalname: string

      Returns BytesSource

    name?: string

    Shown in error messages about this source, e.g. a file path.

    • get size(): number

      Total size in bytes.

      Returns number

    • length bytes from offset, fewer only where the source ends. The returned bytes may be a view of the source's own memory, so a caller must not modify them.

      Parameters

      • offset: number
      • length: number

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • read() without the promise: bytes in memory need no waiting.

      Parameters

      • offset: number
      • length: number

      Returns Uint8Array