mirror of
https://github.com/BotChain-Robots/rpc.git
synced 2026-03-09 23:12:27 +01:00
123 lines
4.5 KiB
C++
123 lines
4.5 KiB
C++
// automatically generated by the FlatBuffers compiler, do not modify
|
|
|
|
#ifndef FLATBUFFERS_GENERATED_SENDCALL_MESSAGING_H_
|
|
#define FLATBUFFERS_GENERATED_SENDCALL_MESSAGING_H_
|
|
|
|
#include "flatbuffers/flatbuffers.h"
|
|
|
|
// Ensure the included flatbuffers.h is the same version as when this file was
|
|
// generated, otherwise it may not be compatible.
|
|
// static_assert(FLATBUFFERS_VERSION_MAJOR == 25 &&
|
|
// FLATBUFFERS_VERSION_MINOR == 2 &&
|
|
// FLATBUFFERS_VERSION_REVISION == 10,
|
|
// "Non-compatible flatbuffers version included");
|
|
|
|
namespace Messaging {
|
|
|
|
struct SendCall;
|
|
struct SendCallBuilder;
|
|
|
|
struct SendCall FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
|
|
typedef SendCallBuilder Builder;
|
|
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
|
|
VT_TAG = 4,
|
|
VT_UNIQUE_ID = 6,
|
|
VT_LENGTH = 8,
|
|
VT_PARAMETERS = 10
|
|
};
|
|
uint8_t tag() const {
|
|
return GetField<uint8_t>(VT_TAG, 0);
|
|
}
|
|
uint8_t unique_id() const {
|
|
return GetField<uint8_t>(VT_UNIQUE_ID, 0);
|
|
}
|
|
uint16_t length() const {
|
|
return GetField<uint16_t>(VT_LENGTH, 0);
|
|
}
|
|
const ::flatbuffers::Vector<uint8_t> *parameters() const {
|
|
return GetPointer<const ::flatbuffers::Vector<uint8_t> *>(VT_PARAMETERS);
|
|
}
|
|
bool Verify(::flatbuffers::Verifier &verifier) const {
|
|
return VerifyTableStart(verifier) && VerifyField<uint8_t>(verifier, VT_TAG, 1) &&
|
|
VerifyField<uint8_t>(verifier, VT_UNIQUE_ID, 1) &&
|
|
VerifyField<uint16_t>(verifier, VT_LENGTH, 2) &&
|
|
VerifyOffset(verifier, VT_PARAMETERS) && verifier.VerifyVector(parameters()) &&
|
|
verifier.EndTable();
|
|
}
|
|
};
|
|
|
|
struct SendCallBuilder {
|
|
typedef SendCall Table;
|
|
::flatbuffers::FlatBufferBuilder &fbb_;
|
|
::flatbuffers::uoffset_t start_;
|
|
void add_tag(uint8_t tag) {
|
|
fbb_.AddElement<uint8_t>(SendCall::VT_TAG, tag, 0);
|
|
}
|
|
void add_unique_id(uint8_t unique_id) {
|
|
fbb_.AddElement<uint8_t>(SendCall::VT_UNIQUE_ID, unique_id, 0);
|
|
}
|
|
void add_length(uint16_t length) {
|
|
fbb_.AddElement<uint16_t>(SendCall::VT_LENGTH, length, 0);
|
|
}
|
|
void add_parameters(::flatbuffers::Offset<::flatbuffers::Vector<uint8_t>> parameters) {
|
|
fbb_.AddOffset(SendCall::VT_PARAMETERS, parameters);
|
|
}
|
|
explicit SendCallBuilder(::flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) {
|
|
start_ = fbb_.StartTable();
|
|
}
|
|
::flatbuffers::Offset<SendCall> Finish() {
|
|
const auto end = fbb_.EndTable(start_);
|
|
auto o = ::flatbuffers::Offset<SendCall>(end);
|
|
return o;
|
|
}
|
|
};
|
|
|
|
inline ::flatbuffers::Offset<SendCall>
|
|
CreateSendCall(::flatbuffers::FlatBufferBuilder &_fbb, uint8_t tag = 0, uint8_t unique_id = 0,
|
|
uint16_t length = 0,
|
|
::flatbuffers::Offset<::flatbuffers::Vector<uint8_t>> parameters = 0) {
|
|
SendCallBuilder builder_(_fbb);
|
|
builder_.add_parameters(parameters);
|
|
builder_.add_length(length);
|
|
builder_.add_unique_id(unique_id);
|
|
builder_.add_tag(tag);
|
|
return builder_.Finish();
|
|
}
|
|
|
|
inline ::flatbuffers::Offset<SendCall>
|
|
CreateSendCallDirect(::flatbuffers::FlatBufferBuilder &_fbb, uint8_t tag = 0, uint8_t unique_id = 0,
|
|
uint16_t length = 0, const std::vector<uint8_t> *parameters = nullptr) {
|
|
auto parameters__ = parameters ? _fbb.CreateVector<uint8_t>(*parameters) : 0;
|
|
return Messaging::CreateSendCall(_fbb, tag, unique_id, length, parameters__);
|
|
}
|
|
|
|
inline const Messaging::SendCall *GetSendCall(const void *buf) {
|
|
return ::flatbuffers::GetRoot<Messaging::SendCall>(buf);
|
|
}
|
|
|
|
inline const Messaging::SendCall *GetSizePrefixedSendCall(const void *buf) {
|
|
return ::flatbuffers::GetSizePrefixedRoot<Messaging::SendCall>(buf);
|
|
}
|
|
|
|
inline bool VerifySendCallBuffer(::flatbuffers::Verifier &verifier) {
|
|
return verifier.VerifyBuffer<Messaging::SendCall>(nullptr);
|
|
}
|
|
|
|
inline bool VerifySizePrefixedSendCallBuffer(::flatbuffers::Verifier &verifier) {
|
|
return verifier.VerifySizePrefixedBuffer<Messaging::SendCall>(nullptr);
|
|
}
|
|
|
|
inline void FinishSendCallBuffer(::flatbuffers::FlatBufferBuilder &fbb,
|
|
::flatbuffers::Offset<Messaging::SendCall> root) {
|
|
fbb.Finish(root);
|
|
}
|
|
|
|
inline void FinishSizePrefixedSendCallBuffer(::flatbuffers::FlatBufferBuilder &fbb,
|
|
::flatbuffers::Offset<Messaging::SendCall> root) {
|
|
fbb.FinishSizePrefixed(root);
|
|
}
|
|
|
|
} // namespace Messaging
|
|
|
|
#endif // FLATBUFFERS_GENERATED_SENDCALL_MESSAGING_H_
|