restructure zmq socker interface

zmq socket can now return vector of frames. it knows end of transmission with header.data == 0
it can also send vector of frames
This commit is contained in:
Bechir
2024-04-09 08:32:53 +02:00
committed by Bechir Braham
parent cd46f59b99
commit a2499c96d6
18 changed files with 255 additions and 87 deletions

View File

@ -23,6 +23,7 @@
*/
#include "aare/NumpyHelpers.hpp"
#include <iterator>
namespace aare {

View File

@ -1,5 +1,7 @@
#include "aare/SubFile.hpp"
#include "aare/utils/logger.hpp"
#include <cstring> // memcpy
#include <fmt/core.h>
#include <iostream>
// #include <filesystem>
@ -79,7 +81,7 @@ template <typename DataType> size_t SubFile::read_impl_flip(std::byte *buffer) {
auto src = &tmp[0];
for (int i = 0; i != this->m_rows; ++i) {
memcpy(dst, src, row_size);
std::memcpy(dst, src, row_size);
dst -= row_size;
src += row_size;
}