IFClite TypeScript API
    Preparing search index...

    Interface StreamingPointSource

    Renderer-agnostic streaming source.

    open() reads only enough bytes to discover header metadata. Callers then drive next() repeatedly until it returns null. Implementations should respect signal to abort cleanly between chunks.

    interface StreamingPointSource {
        close(): void;
        next(
            maxPoints: number,
            signal?: AbortSignal,
        ): Promise<DecodedPointChunk | null>;
        open(signal?: AbortSignal): Promise<PointSourceInfo>;
        reopen?(
            options: PointSourceReopenOptions,
            signal?: AbortSignal,
        ): Promise<PointSourceInfo>;
    }

    Implemented by

    Index
    • Returns void

    • Parameters

      • maxPoints: number
      • Optionalsignal: AbortSignal

      Returns Promise<DecodedPointChunk | null>

    • Optional: restart an opened source from its first point at a new stride and origin. Hosts prefer it to close() plus a fresh source, so a source can keep what open() learnt instead of reading the file again (#8777).

      Parameters

      Returns Promise<PointSourceInfo>