FIX: fixed some bugs
ADD: added raw_track message frame
This commit is contained in:
@@ -23,7 +23,7 @@ namespace header {
|
||||
PROTOBUF_CONSTEXPR Message::Message(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.payload_)*/{}
|
||||
, /*decltype(_impl_.topic_)*/0
|
||||
, /*decltype(_impl_.topic_)*/0u
|
||||
, /*decltype(_impl_.msgtype_)*/0
|
||||
, /*decltype(_impl_.sourcetype_)*/0
|
||||
, /*decltype(_impl_.sourceid_)*/0
|
||||
@@ -73,7 +73,7 @@ static const ::_pb::Message* const file_default_instances[] = {
|
||||
const char descriptor_table_protodef_message_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
"\n\rmessage.proto\022\017messages.header\032\031google"
|
||||
"/protobuf/any.proto\"v\n\007Message\022\r\n\005topic\030"
|
||||
"\001 \001(\005\022\017\n\007msgType\030\002 \001(\005\022\022\n\nsourceType\030\003 \001"
|
||||
"\001 \001(\r\022\017\n\007msgType\030\002 \001(\005\022\022\n\nsourceType\030\003 \001"
|
||||
"(\005\022\020\n\010sourceID\030\004 \001(\005\022%\n\007payload\030\005 \003(\0132\024."
|
||||
"google.protobuf.Anyb\006proto3"
|
||||
};
|
||||
@@ -158,7 +158,7 @@ inline void Message::SharedCtor(
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.payload_){arena}
|
||||
, decltype(_impl_.topic_){0}
|
||||
, decltype(_impl_.topic_){0u}
|
||||
, decltype(_impl_.msgtype_){0}
|
||||
, decltype(_impl_.sourcetype_){0}
|
||||
, decltype(_impl_.sourceid_){0}
|
||||
@@ -204,7 +204,7 @@ const char* Message::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
|
||||
uint32_t tag;
|
||||
ptr = ::_pbi::ReadTag(ptr, &tag);
|
||||
switch (tag >> 3) {
|
||||
// int32 topic = 1;
|
||||
// uint32 topic = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
|
||||
_impl_.topic_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
||||
@@ -279,10 +279,10 @@ uint8_t* Message::_InternalSerialize(
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// int32 topic = 1;
|
||||
// uint32 topic = 1;
|
||||
if (this->_internal_topic() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_topic(), target);
|
||||
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_topic(), target);
|
||||
}
|
||||
|
||||
// int32 msgType = 2;
|
||||
@@ -335,9 +335,9 @@ size_t Message::ByteSizeLong() const {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
|
||||
}
|
||||
|
||||
// int32 topic = 1;
|
||||
// uint32 topic = 1;
|
||||
if (this->_internal_topic() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_topic());
|
||||
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_topic());
|
||||
}
|
||||
|
||||
// int32 msgType = 2;
|
||||
|
||||
Reference in New Issue
Block a user