ATLAS Offline Software
Loading...
Searching...
No Matches
v40_util.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include <algorithm>
6
7#include "v40_util.h"
8#include "eformat/Issue.h"
9
10namespace offline_eformat {
11namespace v40 {
12
13uint32_t convert_to_40(const uint32_t* src, uint32_t* dest, uint32_t max,
14 eformat::CheckSum /*event_checksum*/,
15 eformat::CheckSum /*rob_checksum*/)
16{
17
18 // just copy it to destination
19 auto size = src[1];
20 if (size > max) {
21 throw EFORMAT_BLOCK_SIZE_TOO_SMALL(size, max);
22 }
23 std::copy(src, src+size, dest);
24 return size;
25}
26
27}} // namespace offline_eformat::v40
#define max(a, b)
Definition cfImp.cxx:41
uint32_t convert_to_40(const uint32_t *src, uint32_t *dest, uint32_t max, eformat::CheckSum, eformat::CheckSum)
Definition v40_util.cxx:13