4 #ifndef FLATBUFFERS_GENERATED_OUTPUTMESSAGE_ENCRYPTO_MOTION_COMMUNICATION_H_
5 #define FLATBUFFERS_GENERATED_OUTPUTMESSAGE_ENCRYPTO_MOTION_COMMUNICATION_H_
7 #include "flatbuffers/flatbuffers.h"
11 namespace communication {
14 struct OutputWireBuilder;
17 struct OutputMessageBuilder;
19 struct OutputWire FLATBUFFERS_FINAL_CLASS :
private flatbuffers::Table {
21 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
24 const flatbuffers::Vector<uint8_t> *
payload()
const {
25 return GetPointer<const flatbuffers::Vector<uint8_t> *>(VT_PAYLOAD);
27 bool Verify(flatbuffers::Verifier &verifier)
const {
28 return VerifyTableStart(verifier) &&
29 VerifyOffset(verifier, VT_PAYLOAD) &&
30 verifier.VerifyVector(payload()) &&
37 flatbuffers::FlatBufferBuilder &
fbb_;
39 void add_payload(flatbuffers::Offset<flatbuffers::Vector<uint8_t>> payload) {
40 fbb_.AddOffset(OutputWire::VT_PAYLOAD, payload);
47 flatbuffers::Offset<OutputWire>
Finish() {
49 auto o = flatbuffers::Offset<OutputWire>(end);
55 flatbuffers::FlatBufferBuilder &_fbb,
56 flatbuffers::Offset<flatbuffers::Vector<uint8_t>> payload = 0) {
63 flatbuffers::FlatBufferBuilder &_fbb,
64 const std::vector<uint8_t> *payload =
nullptr) {
65 auto payload__ = payload ? _fbb.CreateVector<uint8_t>(*payload) : 0;
71 struct OutputMessage FLATBUFFERS_FINAL_CLASS :
private flatbuffers::Table {
73 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
80 const flatbuffers::Vector<flatbuffers::Offset<encrypto::motion::communication::OutputWire>> *
wires()
const {
81 return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<encrypto::motion::communication::OutputWire>> *>(VT_WIRES);
83 bool Verify(flatbuffers::Verifier &verifier)
const {
84 return VerifyTableStart(verifier) &&
86 VerifyOffset(verifier, VT_WIRES) &&
87 verifier.VerifyVector(wires()) &&
88 verifier.VerifyVectorOfTables(wires()) &&
95 flatbuffers::FlatBufferBuilder &
fbb_;
100 void add_wires(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<encrypto::motion::communication::OutputWire>>> wires) {
101 fbb_.AddOffset(OutputMessage::VT_WIRES, wires);
108 flatbuffers::Offset<OutputMessage>
Finish() {
110 auto o = flatbuffers::Offset<OutputMessage>(end);
116 flatbuffers::FlatBufferBuilder &_fbb,
117 uint64_t gate_id = 0,
118 flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<encrypto::motion::communication::OutputWire>>> wires = 0) {
126 flatbuffers::FlatBufferBuilder &_fbb,
127 uint64_t gate_id = 0,
128 const std::vector<flatbuffers::Offset<encrypto::motion::communication::OutputWire>> *wires =
nullptr) {
129 auto wires__ = wires ? _fbb.CreateVector<flatbuffers::Offset<encrypto::motion::communication::OutputWire>>(*wires) : 0;
136 inline const encrypto::motion::communication::OutputMessage *
GetOutputMessage(
const void *buf) {
137 return flatbuffers::GetRoot<encrypto::motion::communication::OutputMessage>(buf);
141 return flatbuffers::GetSizePrefixedRoot<encrypto::motion::communication::OutputMessage>(buf);
145 flatbuffers::Verifier &verifier) {
146 return verifier.VerifyBuffer<encrypto::motion::communication::OutputMessage>(
nullptr);
150 flatbuffers::Verifier &verifier) {
151 return verifier.VerifySizePrefixedBuffer<encrypto::motion::communication::OutputMessage>(
nullptr);
155 flatbuffers::FlatBufferBuilder &fbb,
156 flatbuffers::Offset<encrypto::motion::communication::OutputMessage> root) {
161 flatbuffers::FlatBufferBuilder &fbb,
162 flatbuffers::Offset<encrypto::motion::communication::OutputMessage> root) {
163 fbb.FinishSizePrefixed(root);
170 #endif // FLATBUFFERS_GENERATED_OUTPUTMESSAGE_ENCRYPTO_MOTION_COMMUNICATION_H_