Encoder

struct Encoder

Public Functions

virtual ~Encoder() = default
virtual std::span<std::byte const> operator()(Event<ReferenceData> const&) = 0
virtual std::span<std::byte const> operator()(Event<MarketStatus> const&) = 0
virtual std::span<std::byte const> operator()(Event<TopOfBook> const&) = 0
virtual std::span<std::byte const> operator()(Event<MarketByPriceUpdate> const&) = 0
virtual std::span<std::byte const> operator()(Event<MarketByOrderUpdate> const&) = 0
virtual std::span<std::byte const> operator()(Event<TradeSummary> const&) = 0
virtual std::span<std::byte const> operator()(Event<StatisticsUpdate> const&) = 0

Public Static Functions

static std::unique_ptr<Encoder> create()
static std::unique_ptr<Encoder> create(Options const&)
struct Options

Public Members

size_t buffer_size = {}