2022-10-05 17:23:00 +00:00
|
|
|
/* #define DEBUGTRACE_ENABLED */
|
2022-09-03 18:59:14 +00:00
|
|
|
#include "lasp_streammgr.h"
|
2022-07-29 07:32:26 +00:00
|
|
|
#include "debugtrace.hpp"
|
2022-08-14 19:00:22 +00:00
|
|
|
#include "lasp_thread.h"
|
2022-07-20 12:58:48 +00:00
|
|
|
#include <algorithm>
|
|
|
|
#include <assert.h>
|
|
|
|
#include <functional>
|
2022-07-29 07:32:26 +00:00
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
using std::cerr;
|
|
|
|
using std::endl;
|
2022-09-03 18:59:14 +00:00
|
|
|
using rte = std::runtime_error;
|
2022-06-29 10:25:32 +00:00
|
|
|
|
2022-09-22 08:18:38 +00:00
|
|
|
InDataHandler::InDataHandler(StreamMgr &mgr) : _mgr(mgr) { DEBUGTRACE_ENTER; }
|
2022-07-29 07:32:26 +00:00
|
|
|
void InDataHandler::start() {
|
|
|
|
DEBUGTRACE_ENTER;
|
|
|
|
_mgr.addInDataHandler(*this);
|
|
|
|
}
|
|
|
|
void InDataHandler::stop() {
|
|
|
|
#if LASP_DEBUG == 1
|
|
|
|
stopCalled = true;
|
|
|
|
#endif
|
|
|
|
_mgr.removeInDataHandler(*this);
|
|
|
|
}
|
|
|
|
InDataHandler::~InDataHandler() {
|
|
|
|
|
|
|
|
DEBUGTRACE_ENTER;
|
|
|
|
#if LASP_DEBUG == 1
|
|
|
|
if (!stopCalled) {
|
|
|
|
cerr << "************ BUG: Stop function not called while arriving at "
|
|
|
|
"InDataHandler's destructor. Fix this by calling "
|
|
|
|
"InDataHandler::stop() from the derived class' destructor."
|
|
|
|
<< endl;
|
2022-10-10 17:17:38 +00:00
|
|
|
abort();
|
2022-07-29 07:32:26 +00:00
|
|
|
}
|
|
|
|
#endif
|
2022-06-29 10:25:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StreamMgr &StreamMgr::getInstance() {
|
2022-07-29 07:32:26 +00:00
|
|
|
|
|
|
|
DEBUGTRACE_ENTER;
|
2022-06-29 10:25:32 +00:00
|
|
|
static StreamMgr mgr;
|
|
|
|
return mgr;
|
|
|
|
}
|
2022-09-03 18:59:14 +00:00
|
|
|
StreamMgr::StreamMgr() {
|
|
|
|
DEBUGTRACE_ENTER;
|
|
|
|
#if LASP_DEBUG == 1
|
|
|
|
_main_thread_id = std::this_thread::get_id();
|
|
|
|
#endif
|
|
|
|
// Trigger a scan for the available devices, in the background.
|
2022-10-05 09:27:46 +00:00
|
|
|
rescanDAQDevices(true);
|
2022-09-03 18:59:14 +00:00
|
|
|
}
|
|
|
|
#if LASP_DEBUG == 1
|
|
|
|
void StreamMgr::checkRightThread() const {
|
|
|
|
assert(std::this_thread::get_id() == _main_thread_id);
|
|
|
|
}
|
|
|
|
#endif
|
2022-06-29 10:25:32 +00:00
|
|
|
|
2022-09-22 08:18:38 +00:00
|
|
|
void StreamMgr::rescanDAQDevices(bool background,
|
|
|
|
std::function<void()> callback) {
|
2022-09-27 15:20:45 +00:00
|
|
|
DEBUGTRACE_ENTER;
|
2022-10-17 17:51:10 +00:00
|
|
|
auto &pool = getPool();
|
2022-09-27 15:20:45 +00:00
|
|
|
|
2022-09-03 18:59:14 +00:00
|
|
|
checkRightThread();
|
2022-10-10 17:17:38 +00:00
|
|
|
if (!_devices_mtx.try_lock()) {
|
2022-09-27 15:20:45 +00:00
|
|
|
throw rte("A background DAQ device scan is probably already running");
|
|
|
|
}
|
|
|
|
_devices_mtx.unlock();
|
|
|
|
|
2022-09-22 08:18:38 +00:00
|
|
|
if (_inputStream || _outputStream) {
|
|
|
|
throw rte("Rescanning DAQ devices only possible when no stream is running");
|
|
|
|
}
|
|
|
|
_devices.clear();
|
2022-10-10 17:17:38 +00:00
|
|
|
/* auto &pool = getPool(); */
|
|
|
|
if (!background) {
|
2022-09-03 18:59:14 +00:00
|
|
|
rescanDAQDevices_impl(callback);
|
2022-10-10 17:17:38 +00:00
|
|
|
} else {
|
2022-10-11 07:43:36 +00:00
|
|
|
pool.push_task(&StreamMgr::rescanDAQDevices_impl, this, callback);
|
2022-09-03 18:59:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
void StreamMgr::rescanDAQDevices_impl(std::function<void()> callback) {
|
2022-09-27 15:20:45 +00:00
|
|
|
DEBUGTRACE_ENTER;
|
2022-09-03 18:59:14 +00:00
|
|
|
std::scoped_lock lck(_devices_mtx);
|
|
|
|
_devices = DeviceInfo::getDeviceInfo();
|
|
|
|
if (callback) {
|
|
|
|
callback();
|
|
|
|
}
|
|
|
|
}
|
2022-06-29 10:25:32 +00:00
|
|
|
bool StreamMgr::inCallback(const DaqData &data) {
|
2022-07-29 07:32:26 +00:00
|
|
|
|
2022-10-10 17:17:38 +00:00
|
|
|
DEBUGTRACE_ENTER;
|
2022-09-27 15:20:45 +00:00
|
|
|
|
2022-06-29 10:25:32 +00:00
|
|
|
std::scoped_lock<std::mutex> lck(_inDataHandler_mtx);
|
|
|
|
|
|
|
|
for (auto &handler : _inDataHandlers) {
|
2022-09-28 07:41:02 +00:00
|
|
|
|
2022-06-29 10:25:32 +00:00
|
|
|
bool res = handler->inCallback(data);
|
|
|
|
if (!res)
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2022-09-22 19:02:41 +00:00
|
|
|
void StreamMgr::setSiggen(std::shared_ptr<Siggen> siggen) {
|
|
|
|
|
|
|
|
DEBUGTRACE_ENTER;
|
|
|
|
checkRightThread();
|
|
|
|
|
|
|
|
std::scoped_lock<std::mutex> lck(_siggen_mtx);
|
|
|
|
|
|
|
|
// If not set to nullptr, and a stream is running, we update the signal
|
|
|
|
// generator by resetting it.
|
|
|
|
if (isStreamRunningOK(StreamType::output) && siggen) {
|
|
|
|
const Daq *daq = getDaq(StreamType::output);
|
|
|
|
assert(daq != nullptr);
|
|
|
|
// Reset the signal generator.
|
|
|
|
siggen->reset(daq->samplerate());
|
|
|
|
}
|
|
|
|
_siggen = siggen;
|
|
|
|
}
|
|
|
|
|
|
|
|
#define DEBUG_FILLDATA 0
|
2022-06-29 10:25:32 +00:00
|
|
|
/**
|
|
|
|
* @brief Converts from double precision floating point to output signal in
|
|
|
|
* non-interleaving format.
|
|
|
|
*
|
|
|
|
* @tparam T
|
|
|
|
* @param data
|
|
|
|
* @param signal
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
template <typename T> bool fillData(DaqData &data, const vd &signal) {
|
2022-09-22 19:02:41 +00:00
|
|
|
/* DEBUGTRACE_ENTER; */
|
2022-06-29 10:25:32 +00:00
|
|
|
assert(data.nframes == signal.size());
|
|
|
|
|
2022-07-20 12:58:48 +00:00
|
|
|
T *res = reinterpret_cast<T *>(data.raw_ptr());
|
2022-06-29 10:25:32 +00:00
|
|
|
if (std::is_floating_point<T>()) {
|
|
|
|
for (us ch = 0; ch < data.nchannels; ch++) {
|
|
|
|
for (us frame = 0; frame < data.nframes; frame++) {
|
2022-09-22 19:02:41 +00:00
|
|
|
#if DEBUG_FILLDATA == 1
|
|
|
|
DEBUGTRACE_PRINT("SLOW flt");
|
|
|
|
data.setSlow(frame, ch,
|
|
|
|
reinterpret_cast<const int8_t *>(&signal[frame]));
|
|
|
|
#else
|
2022-07-20 12:58:48 +00:00
|
|
|
res[ch * data.nframes + frame] = signal[frame];
|
2022-09-22 19:02:41 +00:00
|
|
|
#endif
|
2022-06-29 10:25:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
for (us ch = 0; ch < data.nchannels; ch++) {
|
|
|
|
for (us frame = 0; frame < data.nframes; frame++) {
|
2022-09-22 19:02:41 +00:00
|
|
|
const T val = (signal[frame] * std::numeric_limits<T>::max());
|
|
|
|
#if DEBUG_FILLDATA == 1
|
|
|
|
data.setSlow(frame, ch, reinterpret_cast<const int8_t *>(&val));
|
|
|
|
#else
|
|
|
|
res[ch * data.nframes + frame] = val;
|
|
|
|
#endif
|
2022-06-29 10:25:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
2022-07-20 12:58:48 +00:00
|
|
|
bool StreamMgr::outCallback(DaqData &data) {
|
|
|
|
|
|
|
|
/* DEBUGTRACE_ENTER; */
|
|
|
|
|
2022-06-29 10:25:32 +00:00
|
|
|
std::scoped_lock<std::mutex> lck(_siggen_mtx);
|
2022-09-22 19:02:41 +00:00
|
|
|
|
2022-07-20 12:58:48 +00:00
|
|
|
if (_siggen) {
|
2022-06-29 10:25:32 +00:00
|
|
|
vd signal = _siggen->genSignal(data.nframes);
|
|
|
|
switch (data.dtype) {
|
2022-07-29 07:32:26 +00:00
|
|
|
case (DataTypeDescriptor::DataType::dtype_fl32):
|
|
|
|
fillData<float>(data, signal);
|
|
|
|
break;
|
|
|
|
case (DataTypeDescriptor::DataType::dtype_fl64):
|
|
|
|
fillData<double>(data, signal);
|
|
|
|
break;
|
|
|
|
case (DataTypeDescriptor::DataType::dtype_int8):
|
|
|
|
fillData<int8_t>(data, signal);
|
|
|
|
break;
|
|
|
|
case (DataTypeDescriptor::DataType::dtype_int16):
|
|
|
|
fillData<int16_t>(data, signal);
|
|
|
|
break;
|
|
|
|
case (DataTypeDescriptor::DataType::dtype_int32):
|
|
|
|
fillData<int32_t>(data, signal);
|
|
|
|
break;
|
2022-06-29 10:25:32 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
// Set all values to 0.
|
2022-07-20 12:58:48 +00:00
|
|
|
std::fill(data.raw_ptr(), data.raw_ptr() + data.size_bytes(), 0);
|
2022-06-29 10:25:32 +00:00
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2022-07-29 07:32:26 +00:00
|
|
|
StreamMgr::~StreamMgr() {
|
|
|
|
DEBUGTRACE_ENTER;
|
2022-09-03 18:59:14 +00:00
|
|
|
checkRightThread();
|
2022-07-29 07:32:26 +00:00
|
|
|
stopAllStreams();
|
2022-10-10 17:17:38 +00:00
|
|
|
if (!_inDataHandlers.empty()) {
|
|
|
|
cerr << "*** WARNING: InDataHandlers have not been all stopped, while "
|
|
|
|
"StreamMgr destructor is called. This is a misuse BUG"
|
|
|
|
<< endl;
|
|
|
|
abort();
|
|
|
|
}
|
2022-07-29 07:32:26 +00:00
|
|
|
}
|
2022-07-20 12:58:48 +00:00
|
|
|
void StreamMgr::stopAllStreams() {
|
2022-09-03 18:59:14 +00:00
|
|
|
DEBUGTRACE_ENTER;
|
|
|
|
checkRightThread();
|
2022-07-20 12:58:48 +00:00
|
|
|
_inputStream.reset();
|
|
|
|
_outputStream.reset();
|
|
|
|
}
|
2022-06-29 10:25:32 +00:00
|
|
|
|
2022-09-03 18:59:14 +00:00
|
|
|
void StreamMgr::startStream(const DaqConfiguration &config) {
|
|
|
|
DEBUGTRACE_ENTER;
|
|
|
|
checkRightThread();
|
2022-06-29 10:25:32 +00:00
|
|
|
|
2022-07-20 12:58:48 +00:00
|
|
|
bool isInput = std::count_if(config.inchannel_config.cbegin(),
|
2022-07-29 07:32:26 +00:00
|
|
|
config.inchannel_config.cend(),
|
|
|
|
[](auto &i) { return i.enabled; });
|
2022-09-03 18:59:14 +00:00
|
|
|
|
2022-10-10 17:17:38 +00:00
|
|
|
bool isOutput = std::count_if(config.outchannel_config.cbegin(),
|
|
|
|
config.outchannel_config.cend(),
|
|
|
|
[](auto &i) { return i.enabled; });
|
|
|
|
|
2022-09-03 18:59:14 +00:00
|
|
|
// Find the first device that matches with the configuration
|
|
|
|
|
|
|
|
DeviceInfo devinfo;
|
|
|
|
{
|
|
|
|
std::scoped_lock lck(_devices_mtx);
|
|
|
|
|
2022-09-22 08:18:38 +00:00
|
|
|
auto devinfo2 = std::find_if(
|
|
|
|
_devices.cbegin(), _devices.cend(),
|
|
|
|
[&config](const DeviceInfo &d) { return config.match(d); });
|
2022-09-03 18:59:14 +00:00
|
|
|
if (devinfo2 == std::cend(_devices)) {
|
|
|
|
throw rte("Could not find a device with name " + config.device_name +
|
|
|
|
" in list of devices.");
|
|
|
|
}
|
|
|
|
devinfo = *devinfo2;
|
|
|
|
}
|
|
|
|
|
2022-10-19 08:03:13 +00:00
|
|
|
isInput |= (config.monitorOutput && devinfo.hasInternalOutputMonitor);
|
|
|
|
DEBUGTRACE_PRINT(isInput);
|
2022-07-20 12:58:48 +00:00
|
|
|
|
2022-06-29 10:25:32 +00:00
|
|
|
bool isDuplex = isInput && isOutput;
|
|
|
|
|
|
|
|
if (!isInput && !isOutput) {
|
2022-09-03 18:59:14 +00:00
|
|
|
throw rte("Neither input, nor output channels enabled for "
|
2022-09-22 08:18:38 +00:00
|
|
|
"stream. Cannot start.");
|
2022-06-29 10:25:32 +00:00
|
|
|
}
|
|
|
|
|
2022-10-10 17:17:38 +00:00
|
|
|
if (isInput && _inputStream) {
|
2022-09-03 18:59:14 +00:00
|
|
|
throw rte("Error: an input stream is already running. Please "
|
|
|
|
"first stop existing stream");
|
2022-07-20 12:58:48 +00:00
|
|
|
} else if (isOutput && _outputStream) {
|
2022-09-03 18:59:14 +00:00
|
|
|
throw rte("Error: output stream is already running. Please "
|
|
|
|
"first stop existing stream");
|
2022-10-10 17:17:38 +00:00
|
|
|
} else if (_inputStream) {
|
|
|
|
if (_inputStream->duplexMode() && isOutput) {
|
|
|
|
throw rte(
|
|
|
|
"Error: output stream is already running (in duplex mode). Please "
|
|
|
|
"first stop existing stream");
|
|
|
|
}
|
2022-07-20 12:58:48 +00:00
|
|
|
}
|
2022-06-29 10:25:32 +00:00
|
|
|
|
2022-07-20 12:58:48 +00:00
|
|
|
InDaqCallback inCallback;
|
|
|
|
OutDaqCallback outCallback;
|
|
|
|
|
|
|
|
using namespace std::placeholders;
|
|
|
|
std::unique_ptr<Daq> daq = Daq::createDaq(devinfo, config);
|
|
|
|
|
2022-10-17 17:51:10 +00:00
|
|
|
std::unique_ptr<Daq> *stream_placeholder;
|
2022-07-29 07:32:26 +00:00
|
|
|
if (isInput) {
|
|
|
|
inCallback = std::bind(&StreamMgr::inCallback, this, _1);
|
2022-10-17 17:51:10 +00:00
|
|
|
stream_placeholder = std::addressof(_inputStream);
|
|
|
|
for (auto &handler : _inDataHandlers) {
|
|
|
|
handler->reset(daq.get());
|
|
|
|
}
|
2022-07-20 12:58:48 +00:00
|
|
|
}
|
2022-07-29 07:32:26 +00:00
|
|
|
if (isOutput) {
|
|
|
|
if (_siggen) {
|
2022-09-22 19:02:41 +00:00
|
|
|
DEBUGTRACE_PRINT("Resetting _siggen with new samplerate of ");
|
|
|
|
DEBUGTRACE_PRINT(daq->samplerate());
|
2022-07-20 12:58:48 +00:00
|
|
|
_siggen->reset(daq->samplerate());
|
2022-06-29 10:25:32 +00:00
|
|
|
}
|
2022-07-20 12:58:48 +00:00
|
|
|
outCallback = std::bind(&StreamMgr::outCallback, this, _1);
|
2022-10-19 08:03:13 +00:00
|
|
|
if(!isDuplex) {
|
2022-10-17 17:51:10 +00:00
|
|
|
stream_placeholder = std::addressof(_outputStream);
|
2022-10-19 08:03:13 +00:00
|
|
|
}
|
2022-06-29 10:25:32 +00:00
|
|
|
}
|
2022-07-20 12:58:48 +00:00
|
|
|
|
|
|
|
daq->start(inCallback, outCallback);
|
|
|
|
|
2022-10-17 17:51:10 +00:00
|
|
|
// Move daq ptr to right place
|
|
|
|
*stream_placeholder = std::move(daq);
|
2022-06-29 10:25:32 +00:00
|
|
|
}
|
2022-08-14 19:00:22 +00:00
|
|
|
void StreamMgr::stopStream(const StreamType t) {
|
2022-09-03 18:59:14 +00:00
|
|
|
DEBUGTRACE_ENTER;
|
|
|
|
checkRightThread();
|
2022-08-14 19:00:22 +00:00
|
|
|
switch (t) {
|
|
|
|
case (StreamType::input): {
|
|
|
|
if (!_inputStream) {
|
2022-09-03 18:59:14 +00:00
|
|
|
throw rte("Input stream is not running");
|
2022-08-14 19:00:22 +00:00
|
|
|
}
|
2022-10-04 07:27:27 +00:00
|
|
|
/// Kills input stream
|
2022-10-18 20:24:53 +00:00
|
|
|
_inputStream.reset();
|
2022-10-04 07:27:27 +00:00
|
|
|
/// Send reset to all in data handlers
|
2022-10-10 17:17:38 +00:00
|
|
|
for (auto &handler : _inDataHandlers) {
|
2022-10-04 07:27:27 +00:00
|
|
|
handler->reset(nullptr);
|
|
|
|
}
|
2022-08-14 19:00:22 +00:00
|
|
|
} break;
|
|
|
|
case (StreamType::output): {
|
|
|
|
if (_inputStream && _inputStream->duplexMode()) {
|
2022-10-18 20:24:53 +00:00
|
|
|
_inputStream.reset();
|
2022-08-14 19:00:22 +00:00
|
|
|
} else {
|
2022-10-10 17:17:38 +00:00
|
|
|
|
2022-08-14 19:00:22 +00:00
|
|
|
if (!_outputStream) {
|
2022-09-03 18:59:14 +00:00
|
|
|
throw rte("Output stream is not running");
|
2022-08-14 19:00:22 +00:00
|
|
|
}
|
2022-10-18 20:24:53 +00:00
|
|
|
_outputStream.reset();
|
2022-08-14 19:00:22 +00:00
|
|
|
} // end else
|
|
|
|
} break;
|
|
|
|
default:
|
2022-09-03 18:59:14 +00:00
|
|
|
throw rte("BUG");
|
2022-08-14 19:00:22 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2022-06-29 10:25:32 +00:00
|
|
|
|
|
|
|
void StreamMgr::addInDataHandler(InDataHandler &handler) {
|
2022-10-06 19:13:21 +00:00
|
|
|
DEBUGTRACE_ENTER;
|
2022-09-03 18:59:14 +00:00
|
|
|
checkRightThread();
|
2022-06-29 10:25:32 +00:00
|
|
|
std::scoped_lock<std::mutex> lck(_inDataHandler_mtx);
|
2022-10-10 17:17:38 +00:00
|
|
|
if (_inputStream) {
|
2022-10-04 07:27:27 +00:00
|
|
|
handler.reset(_inputStream.get());
|
2022-10-06 19:13:21 +00:00
|
|
|
} else {
|
|
|
|
handler.reset(nullptr);
|
2022-10-04 07:27:27 +00:00
|
|
|
}
|
2022-10-17 17:51:10 +00:00
|
|
|
if (std::find(_inDataHandlers.cbegin(), _inDataHandlers.cend(), &handler) !=
|
|
|
|
_inDataHandlers.cend()) {
|
|
|
|
throw std::runtime_error("Error: handler already added. Probably start() "
|
|
|
|
"is called more than once on a handler object");
|
2022-10-16 19:26:06 +00:00
|
|
|
}
|
|
|
|
_inDataHandlers.push_back(&handler);
|
2022-06-29 10:25:32 +00:00
|
|
|
}
|
|
|
|
void StreamMgr::removeInDataHandler(InDataHandler &handler) {
|
2022-10-06 19:13:21 +00:00
|
|
|
DEBUGTRACE_ENTER;
|
2022-09-03 18:59:14 +00:00
|
|
|
checkRightThread();
|
2022-06-29 10:25:32 +00:00
|
|
|
std::scoped_lock<std::mutex> lck(_inDataHandler_mtx);
|
|
|
|
_inDataHandlers.remove(&handler);
|
|
|
|
}
|
2022-07-20 12:58:48 +00:00
|
|
|
|
|
|
|
Daq::StreamStatus StreamMgr::getStreamStatus(const StreamType type) const {
|
2022-09-22 19:02:41 +00:00
|
|
|
/* DEBUGTRACE_ENTER; */
|
2022-07-20 12:58:48 +00:00
|
|
|
|
2022-09-03 18:59:14 +00:00
|
|
|
checkRightThread();
|
2022-07-20 12:58:48 +00:00
|
|
|
// Default constructor, says stream is not running, but also no errors
|
|
|
|
|
|
|
|
const Daq *daq = getDaq(type);
|
|
|
|
if (daq) {
|
2022-10-10 17:17:38 +00:00
|
|
|
return daq->getStreamStatus();
|
|
|
|
} else {
|
|
|
|
return Daq::StreamStatus();
|
2022-07-20 12:58:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const Daq *StreamMgr::getDaq(StreamType type) const {
|
2022-10-10 17:17:38 +00:00
|
|
|
|
|
|
|
checkRightThread();
|
|
|
|
|
2022-07-20 12:58:48 +00:00
|
|
|
if (type == StreamType::input) {
|
|
|
|
return _inputStream.get();
|
|
|
|
} else {
|
|
|
|
// Output stream. If input runs in duplex mode, this is also the output
|
2022-10-19 08:03:13 +00:00
|
|
|
// stream. In that case, we return the input stream
|
2022-07-20 12:58:48 +00:00
|
|
|
if (_inputStream && _inputStream->duplexMode()) {
|
|
|
|
return _inputStream.get();
|
2022-10-19 08:03:13 +00:00
|
|
|
} else {
|
|
|
|
return _outputStream.get();
|
2022-07-20 12:58:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|