19int main(
int argc,
char** argv)
25 auto const offset = std::stoull(argv[3]);
26 auto const count = std::stoull(argv[4]);
34 if ((::write(std::stoi(argv[5]), &ready, 1) != 1) || (::read(std::stoi(argv[6]), &ready, 1) != 1))
38 for (
auto i = std::uint64_t{0}; i < count; ++i)
41 auto payload =
static_cast<std::uint8_t*
>(
nullptr);
47 for (
auto byte = std::uint32_t{0};
byte < info.eventSize; ++byte)
49 if (payload[
byte] !=
static_cast<std::uint8_t
>((info.timestamp * 29) + (std::uint64_t{byte} * 7)))
Public flow reader, writer, payload and synchronization APIs.
MXL_EXPORT mxlStatus mxlFlowReaderGetEvent(mxlFlowReader reader, uint64_t timeoutNs, mxlEventInfo *event, uint8_t **payload)
MXL_EXPORT mxlStatus mxlReleaseFlowReader(mxlInstance instance, mxlFlowReader reader)
struct mxlFlowReader_t * mxlFlowReader
struct mxlEventInfo_t mxlEventInfo
Metadata for one event queue entry, either a complete event or a fragment.
MXL_EXPORT mxlStatus mxlCreateFlowReader(mxlInstance instance, char const *flowId, char const *options, mxlFlowReader *reader)
MXL_EXPORT mxlStatus mxlDestroyInstance(mxlInstance in_instance)
MXL_EXPORT mxlInstance mxlCreateInstance(char const *in_mxlDomain, char const *in_options)