4 #ifndef FLATBUFFERS_GENERATED_BASEOT_ENCRYPTO_MOTION_COMMUNICATION_H_
5 #define FLATBUFFERS_GENERATED_BASEOT_ENCRYPTO_MOTION_COMMUNICATION_H_
7 #include "flatbuffers/flatbuffers.h"
11 namespace communication {
13 struct BaseROtMessage;
14 struct BaseROtMessageBuilder;
18 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
25 const flatbuffers::Vector<uint8_t> *
buffer()
const {
26 return GetPointer<const flatbuffers::Vector<uint8_t> *>(VT_BUFFER);
28 bool Verify(flatbuffers::Verifier &verifier)
const {
29 return VerifyTableStart(verifier) &&
31 VerifyOffset(verifier, VT_BUFFER) &&
32 verifier.VerifyVector(buffer()) &&
39 flatbuffers::FlatBufferBuilder &
fbb_;
44 void add_buffer(flatbuffers::Offset<flatbuffers::Vector<uint8_t>> buffer) {
45 fbb_.AddOffset(BaseROtMessage::VT_BUFFER, buffer);
52 flatbuffers::Offset<BaseROtMessage>
Finish() {
54 auto o = flatbuffers::Offset<BaseROtMessage>(end);
60 flatbuffers::FlatBufferBuilder &_fbb,
61 uint64_t base_ot_id = 0,
62 flatbuffers::Offset<flatbuffers::Vector<uint8_t>> buffer = 0) {
70 flatbuffers::FlatBufferBuilder &_fbb,
71 uint64_t base_ot_id = 0,
72 const std::vector<uint8_t> *buffer =
nullptr) {
73 auto buffer__ = buffer ? _fbb.CreateVector<uint8_t>(*buffer) : 0;
80 inline const encrypto::motion::communication::BaseROtMessage *
GetBaseROtMessage(
const void *buf) {
81 return flatbuffers::GetRoot<encrypto::motion::communication::BaseROtMessage>(buf);
85 return flatbuffers::GetSizePrefixedRoot<encrypto::motion::communication::BaseROtMessage>(buf);
89 flatbuffers::Verifier &verifier) {
90 return verifier.VerifyBuffer<encrypto::motion::communication::BaseROtMessage>(
nullptr);
94 flatbuffers::Verifier &verifier) {
95 return verifier.VerifySizePrefixedBuffer<encrypto::motion::communication::BaseROtMessage>(
nullptr);
99 flatbuffers::FlatBufferBuilder &fbb,
100 flatbuffers::Offset<encrypto::motion::communication::BaseROtMessage> root) {
105 flatbuffers::FlatBufferBuilder &fbb,
106 flatbuffers::Offset<encrypto::motion::communication::BaseROtMessage> root) {
107 fbb.FinishSizePrefixed(root);
114 #endif // FLATBUFFERS_GENERATED_BASEOT_ENCRYPTO_MOTION_COMMUNICATION_H_