Class Replay
A sensor that reads back a recorded series.
public sealed class Replay : IDisposable
- Inheritance
-
Replay
- Implements
- Inherited Members
Remarks
This is how a caller replays a real capture, so a test asks what the code does with readings that actually happened rather than ones it invented.
Constructors
Replay(ReadOnlySpan<float>, bool)
Creates a replay over a recorded series.
public Replay(ReadOnlySpan<float> readings, bool repeating = false)
Parameters
readingsReadOnlySpan<float>The series to read back.
repeatingboolStart again at the beginning once exhausted, rather than holding the last reading.
Exceptions
- PamojaException
The native replay could not be created.
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
ReadAsync()
Takes the next reading.
public Task<float> ReadAsync()
Returns
Exceptions
- PamojaException
The native call failed.