JayBeams  0.1
Another project to have fun coding.
protocol_constants.hpp
Go to the documentation of this file.
1 #ifndef jb_itch5_protocol_constants_hpp
2 #define jb_itch5_protocol_constants_hpp
3 
4 namespace jb {
5 namespace itch5 {
6 /**
7  * ITCH-5.x protocol constants
8  */
9 namespace protocol {
10 
11 /**
12  * The total size of the ITCH-5.x header.
13  */
14 constexpr std::size_t header_size = (
15  /* message type */ 1 +
16  /* stock locate */ 2 +
17  /* tracking number */ 2 +
18  /* timestamp */ 6);
19 
20 /**
21  * The maximum size for a ITCH-5.x message (the length is a 16-bit
22  * integer)
23  */
24 constexpr std::size_t max_message_size = (1 << 16) - 1;
25 
26 } // namespace protocol
27 } // namespace itch5
28 } // namespace jb
29 
30 #endif // jb_itch5_protocol_constants_hpp
constexpr std::size_t max_message_size
The maximum size for a ITCH-5.x message (the length is a 16-bit integer)
constexpr std::size_t header_size
The total size of the ITCH-5.x header.
The top-level namespace for the JayBeams library.
Definition: as_hhmmss.hpp:7