@@ -87,7 +87,7 @@ struct MboMsg {
8787 std::uint32_t sequence;
8888};
8989static_assert (sizeof (MboMsg) == 56 , " MboMsg size must match Rust" );
90- static_assert (alignof (MboMsg) == 8 );
90+ static_assert (alignof (MboMsg) == 8 , " Must have 8-byte alignment " );
9191
9292struct BidAskPair {
9393 std::int64_t bid_px;
@@ -98,7 +98,7 @@ struct BidAskPair {
9898 std::uint32_t ask_ct;
9999};
100100static_assert (sizeof (BidAskPair) == 32 , " BidAskPair size must match Rust" );
101- static_assert (alignof (BidAskPair) == 8 );
101+ static_assert (alignof (BidAskPair) == 8 , " Must have 8-byte alignment " );
102102
103103namespace detail {
104104template <std::size_t N>
@@ -144,14 +144,14 @@ struct TradeMsg {
144144 std::uint32_t sequence;
145145};
146146static_assert (sizeof (TradeMsg) == 48 , " TradeMsg size must match Rust" );
147- static_assert (alignof (TradeMsg) == 8 );
147+ static_assert (alignof (TradeMsg) == 8 , " Must have 8-byte alignment " );
148148
149149using Mbp1Msg = detail::MbpMsg<1 >;
150150using TbboMsg = Mbp1Msg;
151151using Mbp10Msg = detail::MbpMsg<10 >;
152152
153- static_assert (alignof (Mbp1Msg) == 8 );
154- static_assert (alignof (Mbp10Msg) == 8 );
153+ static_assert (alignof (Mbp1Msg) == 8 , " Must have 8-byte alignment " );
154+ static_assert (alignof (Mbp10Msg) == 8 , " Must have 8-byte alignment " );
155155static_assert (sizeof (Mbp1Msg) == sizeof (TradeMsg) + sizeof (BidAskPair),
156156 " Mbp1Msg size must match Rust" );
157157static_assert (sizeof (Mbp10Msg) == sizeof (TradeMsg) + sizeof (BidAskPair) * 10 ,
@@ -182,7 +182,7 @@ struct OhlcvMsg {
182182 std::uint64_t volume;
183183};
184184static_assert (sizeof (OhlcvMsg) == 56 , " OhlcvMsg size must match Rust" );
185- static_assert (alignof (OhlcvMsg) == 8 );
185+ static_assert (alignof (OhlcvMsg) == 8 , " Must have 8-byte alignment " );
186186
187187// Instrument definition.
188188struct InstrumentDefMsg {
@@ -269,7 +269,7 @@ struct InstrumentDefMsg {
269269};
270270static_assert (sizeof (InstrumentDefMsg) == 400 ,
271271 " InstrumentDefMsg size must match Rust" );
272- static_assert (alignof (InstrumentDefMsg) == 8 );
272+ static_assert (alignof (InstrumentDefMsg) == 8 , " Must have 8-byte alignment " );
273273
274274// An order imbalance message.
275275struct ImbalanceMsg {
@@ -302,7 +302,7 @@ struct ImbalanceMsg {
302302 std::array<char , 1 > dummy;
303303};
304304static_assert (sizeof (ImbalanceMsg) == 112 , " ImbalanceMsg size must match Rust" );
305- static_assert (alignof (ImbalanceMsg) == 8 );
305+ static_assert (alignof (ImbalanceMsg) == 8 , " Must have 8-byte alignment " );
306306
307307// / A statistics message. A catchall for various data disseminated by
308308// / publishers. The `stat_type` indicates the statistic contained in the
@@ -326,7 +326,7 @@ struct StatMsg {
326326 std::array<char , 6 > dummy;
327327};
328328static_assert (sizeof (StatMsg) == 64 , " StatMsg size must match Rust" );
329- static_assert (alignof (StatMsg) == 8 );
329+ static_assert (alignof (StatMsg) == 8 , " Must have 8-byte alignment " );
330330
331331// An error message from the Live Subscription Gateway (LSG). This will never
332332// be present in historical data.
@@ -340,7 +340,7 @@ struct ErrorMsg {
340340 std::array<char , 64 > err;
341341};
342342static_assert (sizeof (ErrorMsg) == 80 , " ErrorMsg size must match Rust" );
343- static_assert (alignof (ErrorMsg) == 8 );
343+ static_assert (alignof (ErrorMsg) == 8 , " Must have 8-byte alignment " );
344344
345345// / A symbol mapping message.
346346struct SymbolMappingMsg {
@@ -360,7 +360,7 @@ struct SymbolMappingMsg {
360360};
361361static_assert (sizeof (SymbolMappingMsg) == 176 ,
362362 " SymbolMappingMsg size must match Rust" );
363- static_assert (alignof (SymbolMappingMsg) == 8 );
363+ static_assert (alignof (SymbolMappingMsg) == 8 , " Must have 8-byte alignment " );
364364
365365struct SystemMsg {
366366 static bool HasRType (RType rtype) { return rtype == RType::System; }
@@ -375,7 +375,7 @@ struct SystemMsg {
375375 std::array<char , 64 > msg;
376376};
377377static_assert (sizeof (SystemMsg) == 80 , " SystemMsg size must match Rust" );
378- static_assert (alignof (SystemMsg) == 8 );
378+ static_assert (alignof (SystemMsg) == 8 , " Must have 8-byte alignment " );
379379
380380inline bool operator ==(const RecordHeader& lhs, const RecordHeader& rhs) {
381381 return lhs.length == rhs.length && lhs.rtype == rhs.rtype &&
0 commit comments