MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / send

Method send

proto/proto_final_protocol.cpp:19–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17namespace proto {
18
19size_t FinalSender::send(const ::proto::OrderMessage& value)
20{
21 // Serialize the value into the FBE stream
22 size_t serialized = OrderMessageModel.serialize(value);
23 assert((serialized > 0) && "proto::OrderMessage serialization failed!");
24 assert(OrderMessageModel.verify() && "proto::OrderMessage validation failed!");
25
26 // Log the value
27 if (this->_logging)
28 {
29 std::string message = value.string();
30 this->onSendLog(message);
31 }
32
33 // Send the serialized value
34 return this->send_serialized(serialized);
35}
36
37size_t FinalSender::send(const ::proto::BalanceMessage& value)
38{

Callers

nothing calls this directly

Calls 5

serializeMethod · 0.45
verifyMethod · 0.45
stringMethod · 0.45
onSendLogMethod · 0.45
send_serializedMethod · 0.45

Tested by

no test coverage detected