Skip to content

Commit

Permalink
using constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
smorovic committed Nov 11, 2020
1 parent 1916264 commit 24184d2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions IOPool/Streamer/interface/FRDEventMessage.h
Expand Up @@ -125,9 +125,14 @@ struct FRDEventHeader_V1 {

const uint16 FRDEVENT_MASK_ISGENDATA = 1;

const size_t FRDHeaderMaxVersion = 6;
const std::array<uint32,FRDHeaderMaxVersion+1> FRDHeaderVersionSize = {
0, 2 * sizeof(uint32), (4 + 1024) * sizeof(uint32), 7 * sizeof(uint32), 8 * sizeof(uint32), 6 * sizeof(uint32), 6 * sizeof(uint32)};
constexpr size_t FRDHeaderMaxVersion = 6;
constexpr std::array<uint32, FRDHeaderMaxVersion + 1> FRDHeaderVersionSize = {0,
2 * sizeof(uint32),
(4 + 1024) * sizeof(uint32),
7 * sizeof(uint32),
8 * sizeof(uint32),
6 * sizeof(uint32),
6 * sizeof(uint32)};

class FRDEventMsgView {
public:
Expand Down

0 comments on commit 24184d2

Please sign in to comment.