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