4 #ifndef FLATBUFFERS_GENERATED_SHAREDBITSMESSAGE_ENCRYPTO_MOTION_COMMUNICATION_H_
5 #define FLATBUFFERS_GENERATED_SHAREDBITSMESSAGE_ENCRYPTO_MOTION_COMMUNICATION_H_
7 #include "flatbuffers/flatbuffers.h"
11 namespace communication {
13 struct SharedBitsMessage;
14 struct SharedBitsMessageBuilder;
16 struct SharedBitsMessage FLATBUFFERS_FINAL_CLASS :
private flatbuffers::Table {
18 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
21 const flatbuffers::Vector<uint8_t> *
payload()
const {
22 return GetPointer<const flatbuffers::Vector<uint8_t> *>(VT_PAYLOAD);
24 bool Verify(flatbuffers::Verifier &verifier)
const {
25 return VerifyTableStart(verifier) &&
26 VerifyOffset(verifier, VT_PAYLOAD) &&
27 verifier.VerifyVector(payload()) &&
33 typedef SharedBitsMessage
Table;
34 flatbuffers::FlatBufferBuilder &
fbb_;
36 void add_payload(flatbuffers::Offset<flatbuffers::Vector<uint8_t>> payload) {
37 fbb_.AddOffset(SharedBitsMessage::VT_PAYLOAD, payload);
44 flatbuffers::Offset<SharedBitsMessage>
Finish() {
46 auto o = flatbuffers::Offset<SharedBitsMessage>(end);
52 flatbuffers::FlatBufferBuilder &_fbb,
53 flatbuffers::Offset<flatbuffers::Vector<uint8_t>> payload = 0) {
60 flatbuffers::FlatBufferBuilder &_fbb,
61 const std::vector<uint8_t> *payload =
nullptr) {
62 auto payload__ = payload ? _fbb.CreateVector<uint8_t>(*payload) : 0;
69 return flatbuffers::GetRoot<encrypto::motion::communication::SharedBitsMessage>(buf);
73 return flatbuffers::GetSizePrefixedRoot<encrypto::motion::communication::SharedBitsMessage>(buf);
77 flatbuffers::Verifier &verifier) {
78 return verifier.VerifyBuffer<encrypto::motion::communication::SharedBitsMessage>(
nullptr);
82 flatbuffers::Verifier &verifier) {
83 return verifier.VerifySizePrefixedBuffer<encrypto::motion::communication::SharedBitsMessage>(
nullptr);
87 flatbuffers::FlatBufferBuilder &fbb,
88 flatbuffers::Offset<encrypto::motion::communication::SharedBitsMessage> root) {
93 flatbuffers::FlatBufferBuilder &fbb,
94 flatbuffers::Offset<encrypto::motion::communication::SharedBitsMessage> root) {
95 fbb.FinishSizePrefixed(root);
102 #endif // FLATBUFFERS_GENERATED_SHAREDBITSMESSAGE_ENCRYPTO_MOTION_COMMUNICATION_H_