MOTION
0.01
Framework for mixed-protocol multi-party computation
|
Go to the documentation of this file.
4 #ifndef FLATBUFFERS_GENERATED_MESSAGE_ENCRYPTO_MOTION_COMMUNICATION_H_
5 #define FLATBUFFERS_GENERATED_MESSAGE_ENCRYPTO_MOTION_COMMUNICATION_H_
7 #include "flatbuffers/flatbuffers.h"
11 namespace communication {
14 struct MessageBuilder;
56 static const char *
const names[15] = {
59 "kTerminationMessage",
60 "kSynchronizationMessage",
61 "kBaseROtMessageSender",
62 "kBaseROtMessageReceiver",
63 "kOtExtensionReceiverMasks",
64 "kOtExtensionReceiverCorrections",
70 "kSharedBitsReconstruct",
78 const size_t index =
static_cast<size_t>(e);
82 struct Message FLATBUFFERS_FINAL_CLASS :
private flatbuffers::Table {
84 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
91 const flatbuffers::Vector<uint8_t> *
payload()
const {
92 return GetPointer<const flatbuffers::Vector<uint8_t> *>(VT_PAYLOAD);
94 bool Verify(flatbuffers::Verifier &verifier)
const {
95 return VerifyTableStart(verifier) &&
97 VerifyOffset(verifier, VT_PAYLOAD) &&
98 verifier.VerifyVector(payload()) &&
105 flatbuffers::FlatBufferBuilder &
fbb_;
110 void add_payload(flatbuffers::Offset<flatbuffers::Vector<uint8_t>> payload) {
111 fbb_.AddOffset(Message::VT_PAYLOAD, payload);
120 auto o = flatbuffers::Offset<Message>(end);
126 flatbuffers::FlatBufferBuilder &_fbb,
128 flatbuffers::Offset<flatbuffers::Vector<uint8_t>> payload = 0) {
136 flatbuffers::FlatBufferBuilder &_fbb,
138 const std::vector<uint8_t> *payload =
nullptr) {
139 auto payload__ = payload ? _fbb.CreateVector<uint8_t>(*payload) : 0;
146 inline const encrypto::motion::communication::Message *
GetMessage(
const void *buf) {
147 return flatbuffers::GetRoot<encrypto::motion::communication::Message>(buf);
151 return flatbuffers::GetSizePrefixedRoot<encrypto::motion::communication::Message>(buf);
155 flatbuffers::Verifier &verifier) {
156 return verifier.VerifyBuffer<encrypto::motion::communication::Message>(
nullptr);
160 flatbuffers::Verifier &verifier) {
161 return verifier.VerifySizePrefixedBuffer<encrypto::motion::communication::Message>(
nullptr);
165 flatbuffers::FlatBufferBuilder &fbb,
166 flatbuffers::Offset<encrypto::motion::communication::Message> root) {
171 flatbuffers::FlatBufferBuilder &fbb,
172 flatbuffers::Offset<encrypto::motion::communication::Message> root) {
173 fbb.FinishSizePrefixed(root);
180 #endif // FLATBUFFERS_GENERATED_MESSAGE_ENCRYPTO_MOTION_COMMUNICATION_H_
flatbuffers::FlatBufferBuilder & fbb_
Definition: message_generated.h:105
flatbuffers::Offset< Message > CreateMessage(flatbuffers::FlatBufferBuilder &_fbb, encrypto::motion::communication::MessageType message_type=encrypto::motion::communication::MessageType::kHelloMessage, flatbuffers::Offset< flatbuffers::Vector< uint8_t >> payload=0)
Definition: message_generated.h:125
MessageBuilder Builder
Definition: message_generated.h:83
const encrypto::motion::communication::Message * GetMessage(const void *buf)
Definition: message_generated.h:146
@ kSynchronizationMessage
const encrypto::motion::communication::Message * GetSizePrefixedMessage(const void *buf)
Definition: message_generated.h:150
Definition: algorithm_description.cpp:35
flatbuffers::Offset< Message > Finish()
Definition: message_generated.h:118
void add_message_type(encrypto::motion::communication::MessageType message_type)
Definition: message_generated.h:107
flatbuffers::Offset< Message > CreateMessageDirect(flatbuffers::FlatBufferBuilder &_fbb, encrypto::motion::communication::MessageType message_type=encrypto::motion::communication::MessageType::kHelloMessage, const std::vector< uint8_t > *payload=nullptr)
Definition: message_generated.h:135
bool VerifyMessageBuffer(flatbuffers::Verifier &verifier)
Definition: message_generated.h:154
Message Table
Definition: message_generated.h:104
MessageBuilder & operator=(const MessageBuilder &)
encrypto::motion::communication::MessageType message_type() const
Definition: message_generated.h:88
VT_MESSAGE_TYPE
Definition: message_generated.h:85
void FinishSizePrefixedMessageBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset< encrypto::motion::communication::Message > root)
Definition: message_generated.h:170
const MessageType(& EnumValuesMessageType())[14]
Definition: message_generated.h:35
@ kOtExtensionReceiverCorrections
const char * EnumNameMessageType(MessageType e)
Definition: message_generated.h:76
void add_payload(flatbuffers::Offset< flatbuffers::Vector< uint8_t >> payload)
Definition: message_generated.h:110
Definition: message_generated.h:103
bool Verify(flatbuffers::Verifier &verifier) const
Definition: message_generated.h:94
@ kOtExtensionReceiverMasks
void FinishMessageBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset< encrypto::motion::communication::Message > root)
Definition: message_generated.h:164
@ kBaseROtMessageReceiver
const char *const * EnumNamesMessageType()
Definition: message_generated.h:55
bool VerifySizePrefixedMessageBuffer(flatbuffers::Verifier &verifier)
Definition: message_generated.h:159
MessageType
Definition: message_generated.h:16
flatbuffers::uoffset_t start_
Definition: message_generated.h:106
MessageBuilder(flatbuffers::FlatBufferBuilder &_fbb)
Definition: message_generated.h:113
const flatbuffers::Vector< uint8_t > * payload() const
Definition: message_generated.h:91