mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-02-01 05:34:56 +01:00
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:
@@ -23,6 +23,7 @@
|
||||
*/
|
||||
|
||||
#include "aare/NumpyHelpers.hpp"
|
||||
#include <iterator>
|
||||
|
||||
namespace aare {
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user