TimedFIFO.readOldestDataAndDropSome

Get some amount of oldest samples in the FIFO The drop some amount of samples that correspond to time passing of dt

struct TimedFIFO(T)
nothrow @nogc
int
readOldestDataAndDropSome
(
T[] output
,
double dt
,
int keepAtLeast = 0
)

Return Value

Type: int

the number of sample data returned. Also return no data if tryLock failed to take the lock. Note that there is a disconnect between the data that is dropped, and the data that is returned. The same data may well be returned multiple time given a large buffer, or zero time.

Meta