#include <ContinuousFlowReader.hpp>
Definition at line 11 of file ContinuousFlowReader.hpp.
◆ FlowReader() [1/2]
Definition at line 84 of file FlowReader.cpp.
14 {}
std::filesystem::path _domain
◆ FlowReader() [2/2]
◆ getMaxReadLength()
| virtual std::size_t mxl::lib::ContinuousFlowReader::getMaxReadLength |
( |
| ) |
const |
|
nodiscardpure virtual |
Return the maximum number of samples that can be retrieved by a read operation in one go.
- Returns
- The maximum number of samples a read operation can return in one go.
Implemented in mxl::lib::PosixContinuousFlowReader.
◆ getSamples() [1/2]
Non-blocking accessor for a specific set of samples across all channels ending at a specific index (count samples up to index).
- Parameters
-
| [in] | index | The starting index of the samples to obtain. |
| [in] | count | The number of samples to obtain. |
| [out] | payloadBuffersSlices | A reference to a wrapped multi buffer slice that represents the requested range across all channel buffers |
- Returns
- A status code describing the outcome of the call.
- Note
- No guarantees are made as to how long the caller may safely hang on to the returned range of samples without the risk of these samples being overwritten.
Implemented in mxl::lib::PosixContinuousFlowReader.
◆ getSamples() [2/2]
Accessor for a specific set of samples across all channels ending at a specific index (count samples up to index).
- Parameters
-
| [in] | index | The starting index of the samples to obtain. |
| [in] | count | The number of samples to obtain. |
| [in] | deadline | The point in time of Clock::Realtime at which to stop waiting. |
| [out] | payloadBuffersSlices | A reference to a wrapped multi buffer slice that represents the requested range across all channel buffers |
- Returns
- A status code describing the outcome of the call. Please note that this method will never return MXL_ERR_TIMEOUT, because the actual error that is being encountered in this case is MXL_ERR_OUT_OF_RANGE_TOO_EARLY, even after waiting.
- Note
- No guarantees are made as to how long the caller may safely hang on to the returned range of samples without the risk of these samples being overwritten.
Implemented in mxl::lib::PosixContinuousFlowReader.
◆ waitForSamples()
| virtual mxlStatus mxl::lib::ContinuousFlowReader::waitForSamples |
( |
std::uint64_t | index, |
|
|
Timepoint | deadline ) const |
|
pure virtual |
Blocking wait function for the sample at the specified index to become available.
- Parameters
-
| [in] | index | The starting index of the samples to obtain. |
| [in] | deadline | The point in time of Clock::Realtime at which to stop waiting. |
- Returns
- A status code describing the outcome of the call. Please note that this method will never return MXL_ERR_TIMEOUT, because the actual error that is being encountered in this case is MXL_ERR_OUT_OF_RANGE_TOO_EARLY, even after waiting.
- Note
- No guarantees are made as to how long the caller may safely hang on to the returned range of samples without the risk of these samples being overwritten.
Implemented in mxl::lib::PosixContinuousFlowReader.
The documentation for this class was generated from the following file: