ITCHCPP 1.6.0
High-Performance NASDAQ TotalView-ITCH 5.0 Parser & Market-Data Platform
Loading...
Searching...
No Matches
encoder.cpp File Reference
#include "itch/encoder.hpp"
#include <array>
#include <cstdint>
#include <cstring>
#include <variant>
#include "itch/parser.hpp"
+ Include dependency graph for encoder.cpp:

Go to the source code of this file.

Namespaces

namespace  itch
 

Functions

auto itch::encode_message (const Message &message) -> std::vector< std::byte >
 Encodes a message body and header without the 2-byte length prefix.
 
auto itch::encode_frame (const Message &message) -> std::vector< std::byte >
 Encodes a complete length-prefixed frame (2-byte big-endian length followed by the message bytes), ready to concatenate into a stream.