rfw2d
    Preparing search index...

    Class LineBatcher

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    batches: Batch<LineLike, BatchEntry<LineLike>>[] = []

    Batches. All batches in this collection are at least partially occupied.

    batchPool: Pool<LineBatch> = ...
    changeTracker: ChangeTracker

    Changes to objects will be propagated to the change tracker

    entryPool: Pool<BatchEntry<LineLike>> = ...
    maximums?: { maxSize: number }
    queuedEntries: BatchEntry<LineLike>[] = []

    New entries are queued until all changes are applied to a batch.

    Accessors

    • get size(): number

      Entries across all batches. Does not respect queued adds/deletes.

      Returns number

    Methods

    • Move data within a batch. Used if e.g. entries change size and multiple entries must be moved to fill gaps or crate space.

      Parameters

      • batch: LineBatch

        Affected batch

      • target: number

        Target element offset

      • start: number

        Start element offset

      • end: number

        End element offset

      Returns void

      Generally should call copyWithin on batch storage or its buffer.