mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-11 06:47:14 +02:00
add simdjson as public for network_io
in ZmqHeader.hpp we are using templates that depend on simdjson. other libraries should also link simdjson
This commit is contained in:
@ -13,10 +13,10 @@ int main() {
|
||||
int rc = socket.receive(header, reinterpret_cast<std::byte *>(data));
|
||||
aare::logger::info("Received header: ", header.to_string());
|
||||
auto *data_int = reinterpret_cast<uint32_t *>(data);
|
||||
for (int i=0;i<header.npixelsx;i++){
|
||||
for (int j=0;j<header.npixelsy;j++){
|
||||
for (int i = 0; i < header.npixelsx; i++) {
|
||||
for (int j = 0; j < header.npixelsy; j++) {
|
||||
// verify that the sent data is correct
|
||||
assert(data_int[i*header.npixelsy+j] == (i+j));
|
||||
assert(data_int[i * header.npixelsy + j] == (i + j));
|
||||
}
|
||||
}
|
||||
aare::logger::info("Frame verified");
|
||||
|
Reference in New Issue
Block a user