Avena Webapp API - v0.0.1
    Preparing search index...

    Function appendToBuffer

    • Appends points to a buffer and drops the oldest ones beyond maxPoints.

      Parameters

      • buffer: DataPoint[]

        Channel buffer, sorted by time. Changed in place.

      • points: DataPoint[]

        New points, all newer than the buffer's last point.

      • maxPoints: number

        Largest buffer length kept.

      Returns number

      Number of old points dropped.