TimeSeriesBuffer constructor

TimeSeriesBuffer({
  1. required int rawCapacity,
  2. required int bucketSizeMs,
})

Keeps at most rawCapacity raw points; evicted points fold into buckets bucketSizeMs milliseconds wide. Both must be positive. Audited: 2026-06-12 11:26 EDT

Implementation

TimeSeriesBuffer({required int rawCapacity, required int bucketSizeMs})
  : _rawCapacity = _validatedRawCapacity(rawCapacity, bucketSizeMs),
    _bucketSizeMs = bucketSizeMs;