Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
d3bbf1c8
Commit
d3bbf1c8
authored
7 years ago
by
Paul Yang
Committed by
GitHub
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add space between arrow and casted type (#3353)
parent
6aa4b20f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
27 deletions
+27
-27
cpp_enum_field.cc
src/google/protobuf/compiler/cpp/cpp_enum_field.cc
+9
-9
cpp_primitive_field.cc
src/google/protobuf/compiler/cpp/cpp_primitive_field.cc
+3
-3
descriptor.pb.cc
src/google/protobuf/descriptor.pb.cc
+15
-15
No files found.
src/google/protobuf/compiler/cpp/cpp_enum_field.cc
View file @
d3bbf1c8
...
@@ -144,13 +144,13 @@ GenerateMergeFromCodedStream(io::Printer* printer) const {
...
@@ -144,13 +144,13 @@ GenerateMergeFromCodedStream(io::Printer* printer) const {
printer
->
Print
(
variables_
,
printer
->
Print
(
variables_
,
"} else {
\n
"
"} else {
\n
"
" mutable_unknown_fields()->AddVarint(
\n
"
" mutable_unknown_fields()->AddVarint(
\n
"
" $number$, static_cast<::google::protobuf::uint64>(value));
\n
"
);
" $number$, static_cast<
::google::protobuf::uint64>(value));
\n
"
);
}
else
{
}
else
{
printer
->
Print
(
printer
->
Print
(
"} else {
\n
"
"} else {
\n
"
" unknown_fields_stream.WriteVarint32($tag$u);
\n
"
" unknown_fields_stream.WriteVarint32($tag$u);
\n
"
" unknown_fields_stream.WriteVarint32(
\n
"
" unknown_fields_stream.WriteVarint32(
\n
"
" static_cast<::google::protobuf::uint32>(value));
\n
"
,
" static_cast<
::google::protobuf::uint32>(value));
\n
"
,
"tag"
,
SimpleItoa
(
internal
::
WireFormat
::
MakeTag
(
descriptor_
)));
"tag"
,
SimpleItoa
(
internal
::
WireFormat
::
MakeTag
(
descriptor_
)));
}
}
printer
->
Print
(
variables_
,
printer
->
Print
(
variables_
,
...
@@ -347,13 +347,13 @@ GenerateMergeFromCodedStream(io::Printer* printer) const {
...
@@ -347,13 +347,13 @@ GenerateMergeFromCodedStream(io::Printer* printer) const {
printer
->
Print
(
variables_
,
printer
->
Print
(
variables_
,
"} else {
\n
"
"} else {
\n
"
" mutable_unknown_fields()->AddVarint(
\n
"
" mutable_unknown_fields()->AddVarint(
\n
"
" $number$, static_cast<::google::protobuf::uint64>(value));
\n
"
);
" $number$, static_cast<
::google::protobuf::uint64>(value));
\n
"
);
}
else
{
}
else
{
printer
->
Print
(
printer
->
Print
(
"} else {
\n
"
"} else {
\n
"
" unknown_fields_stream.WriteVarint32(tag);
\n
"
" unknown_fields_stream.WriteVarint32(tag);
\n
"
" unknown_fields_stream.WriteVarint32(
\n
"
" unknown_fields_stream.WriteVarint32(
\n
"
" static_cast<::google::protobuf::uint32>(value));
\n
"
);
" static_cast<
::google::protobuf::uint32>(value));
\n
"
);
}
}
printer
->
Print
(
"}
\n
"
);
printer
->
Print
(
"}
\n
"
);
}
}
...
@@ -412,12 +412,12 @@ GenerateMergeFromCodedStreamWithPacking(io::Printer* printer) const {
...
@@ -412,12 +412,12 @@ GenerateMergeFromCodedStreamWithPacking(io::Printer* printer) const {
if
(
UseUnknownFieldSet
(
descriptor_
->
file
(),
options_
))
{
if
(
UseUnknownFieldSet
(
descriptor_
->
file
(),
options_
))
{
printer
->
Print
(
variables_
,
printer
->
Print
(
variables_
,
" mutable_unknown_fields()->AddVarint(
\n
"
" mutable_unknown_fields()->AddVarint(
\n
"
" $number$, static_cast<::google::protobuf::uint64>(value));
\n
"
);
" $number$, static_cast<
::google::protobuf::uint64>(value));
\n
"
);
}
else
{
}
else
{
printer
->
Print
(
variables_
,
printer
->
Print
(
variables_
,
" unknown_fields_stream.WriteVarint32(tag);
\n
"
" unknown_fields_stream.WriteVarint32(tag);
\n
"
" unknown_fields_stream.WriteVarint32(
\n
"
" unknown_fields_stream.WriteVarint32(
\n
"
" static_cast<::google::protobuf::uint32>(value));
\n
"
);
" static_cast<
::google::protobuf::uint32>(value));
\n
"
);
}
}
printer
->
Print
(
printer
->
Print
(
" }
\n
"
);
" }
\n
"
);
...
@@ -439,7 +439,7 @@ GenerateSerializeWithCachedSizes(io::Printer* printer) const {
...
@@ -439,7 +439,7 @@ GenerateSerializeWithCachedSizes(io::Printer* printer) const {
" ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
\n
"
" ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
\n
"
" output);
\n
"
" output);
\n
"
" output->WriteVarint32(
\n
"
" output->WriteVarint32(
\n
"
" static_cast<::google::protobuf::uint32>(_$name$_cached_byte_size_));
\n
"
" static_cast<
::google::protobuf::uint32>(_$name$_cached_byte_size_));
\n
"
"}
\n
"
);
"}
\n
"
);
}
}
printer
->
Print
(
variables_
,
printer
->
Print
(
variables_
,
...
@@ -467,7 +467,7 @@ GenerateSerializeWithCachedSizesToArray(io::Printer* printer) const {
...
@@ -467,7 +467,7 @@ GenerateSerializeWithCachedSizesToArray(io::Printer* printer) const {
" ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
\n
"
" ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
\n
"
" target);
\n
"
" target);
\n
"
" target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray("
" target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray("
" static_cast<::google::protobuf::uint32>(
\n
"
" static_cast<
::google::protobuf::uint32>(
\n
"
" _$name$_cached_byte_size_), target);
\n
"
" _$name$_cached_byte_size_), target);
\n
"
" target = ::google::protobuf::internal::WireFormatLite::WriteEnumNoTagToArray(
\n
"
" target = ::google::protobuf::internal::WireFormatLite::WriteEnumNoTagToArray(
\n
"
" this->$name$_, target);
\n
"
" this->$name$_, target);
\n
"
...
@@ -497,7 +497,7 @@ GenerateByteSize(io::Printer* printer) const {
...
@@ -497,7 +497,7 @@ GenerateByteSize(io::Printer* printer) const {
"if (data_size > 0) {
\n
"
"if (data_size > 0) {
\n
"
" total_size += $tag_size$ +
\n
"
" total_size += $tag_size$ +
\n
"
" ::google::protobuf::internal::WireFormatLite::Int32Size(
\n
"
" ::google::protobuf::internal::WireFormatLite::Int32Size(
\n
"
" static_cast<google::protobuf::int32>(data_size));
\n
"
" static_cast<
::
google::protobuf::int32>(data_size));
\n
"
"}
\n
"
"}
\n
"
"int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
\n
"
"int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
\n
"
"GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
\n
"
"GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
\n
"
...
...
This diff is collapsed.
Click to expand it.
src/google/protobuf/compiler/cpp/cpp_primitive_field.cc
View file @
d3bbf1c8
...
@@ -382,7 +382,7 @@ GenerateSerializeWithCachedSizes(io::Printer* printer) const {
...
@@ -382,7 +382,7 @@ GenerateSerializeWithCachedSizes(io::Printer* printer) const {
"$number$, "
"$number$, "
"::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, "
"::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, "
"output);
\n
"
"output);
\n
"
" output->WriteVarint32(static_cast<::google::protobuf::uint32>(
\n
"
" output->WriteVarint32(static_cast<
::google::protobuf::uint32>(
\n
"
" _$name$_cached_byte_size_));
\n
"
);
" _$name$_cached_byte_size_));
\n
"
);
if
(
FixedSize
(
descriptor_
->
type
())
>
0
)
{
if
(
FixedSize
(
descriptor_
->
type
())
>
0
)
{
...
@@ -423,7 +423,7 @@ GenerateSerializeWithCachedSizesToArray(io::Printer* printer) const {
...
@@ -423,7 +423,7 @@ GenerateSerializeWithCachedSizesToArray(io::Printer* printer) const {
" ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
\n
"
" ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
\n
"
" target);
\n
"
" target);
\n
"
" target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
\n
"
" target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
\n
"
" static_cast<::google::protobuf::uint32>(
\n
"
" static_cast<
::google::protobuf::uint32>(
\n
"
" _$name$_cached_byte_size_), target);
\n
"
" _$name$_cached_byte_size_), target);
\n
"
" target = ::google::protobuf::internal::WireFormatLite::
\n
"
" target = ::google::protobuf::internal::WireFormatLite::
\n
"
" Write$declared_type$NoTagToArray(this->$name$_, target);
\n
"
" Write$declared_type$NoTagToArray(this->$name$_, target);
\n
"
...
@@ -455,7 +455,7 @@ GenerateByteSize(io::Printer* printer) const {
...
@@ -455,7 +455,7 @@ GenerateByteSize(io::Printer* printer) const {
"if (data_size > 0) {
\n
"
"if (data_size > 0) {
\n
"
" total_size += $tag_size$ +
\n
"
" total_size += $tag_size$ +
\n
"
" ::google::protobuf::internal::WireFormatLite::Int32Size(
\n
"
" ::google::protobuf::internal::WireFormatLite::Int32Size(
\n
"
" static_cast<google::protobuf::int32>(data_size));
\n
"
" static_cast<
::
google::protobuf::int32>(data_size));
\n
"
"}
\n
"
"}
\n
"
"int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
\n
"
"int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
\n
"
"GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
\n
"
"GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
\n
"
...
...
This diff is collapsed.
Click to expand it.
src/google/protobuf/descriptor.pb.cc
View file @
d3bbf1c8
...
@@ -4565,7 +4565,7 @@ bool FieldDescriptorProto::MergePartialFromCodedStream(
...
@@ -4565,7 +4565,7 @@ bool FieldDescriptorProto::MergePartialFromCodedStream(
set_label
(
static_cast
<
::
google
::
protobuf
::
FieldDescriptorProto_Label
>
(
value
));
set_label
(
static_cast
<
::
google
::
protobuf
::
FieldDescriptorProto_Label
>
(
value
));
}
else
{
}
else
{
mutable_unknown_fields
()
->
AddVarint
(
mutable_unknown_fields
()
->
AddVarint
(
4
,
static_cast
<::
google
::
protobuf
::
uint64
>
(
value
));
4
,
static_cast
<
::
google
::
protobuf
::
uint64
>
(
value
));
}
}
}
else
{
}
else
{
goto
handle_unusual
;
goto
handle_unusual
;
...
@@ -4585,7 +4585,7 @@ bool FieldDescriptorProto::MergePartialFromCodedStream(
...
@@ -4585,7 +4585,7 @@ bool FieldDescriptorProto::MergePartialFromCodedStream(
set_type
(
static_cast
<
::
google
::
protobuf
::
FieldDescriptorProto_Type
>
(
value
));
set_type
(
static_cast
<
::
google
::
protobuf
::
FieldDescriptorProto_Type
>
(
value
));
}
else
{
}
else
{
mutable_unknown_fields
()
->
AddVarint
(
mutable_unknown_fields
()
->
AddVarint
(
5
,
static_cast
<::
google
::
protobuf
::
uint64
>
(
value
));
5
,
static_cast
<
::
google
::
protobuf
::
uint64
>
(
value
));
}
}
}
else
{
}
else
{
goto
handle_unusual
;
goto
handle_unusual
;
...
@@ -8513,7 +8513,7 @@ bool FileOptions::MergePartialFromCodedStream(
...
@@ -8513,7 +8513,7 @@ bool FileOptions::MergePartialFromCodedStream(
set_optimize_for
(
static_cast
<
::
google
::
protobuf
::
FileOptions_OptimizeMode
>
(
value
));
set_optimize_for
(
static_cast
<
::
google
::
protobuf
::
FileOptions_OptimizeMode
>
(
value
));
}
else
{
}
else
{
mutable_unknown_fields
()
->
AddVarint
(
mutable_unknown_fields
()
->
AddVarint
(
9
,
static_cast
<::
google
::
protobuf
::
uint64
>
(
value
));
9
,
static_cast
<
::
google
::
protobuf
::
uint64
>
(
value
));
}
}
}
else
{
}
else
{
goto
handle_unusual
;
goto
handle_unusual
;
...
@@ -10774,7 +10774,7 @@ bool FieldOptions::MergePartialFromCodedStream(
...
@@ -10774,7 +10774,7 @@ bool FieldOptions::MergePartialFromCodedStream(
set_ctype
(
static_cast
<
::
google
::
protobuf
::
FieldOptions_CType
>
(
value
));
set_ctype
(
static_cast
<
::
google
::
protobuf
::
FieldOptions_CType
>
(
value
));
}
else
{
}
else
{
mutable_unknown_fields
()
->
AddVarint
(
mutable_unknown_fields
()
->
AddVarint
(
1
,
static_cast
<::
google
::
protobuf
::
uint64
>
(
value
));
1
,
static_cast
<
::
google
::
protobuf
::
uint64
>
(
value
));
}
}
}
else
{
}
else
{
goto
handle_unusual
;
goto
handle_unusual
;
...
@@ -10836,7 +10836,7 @@ bool FieldOptions::MergePartialFromCodedStream(
...
@@ -10836,7 +10836,7 @@ bool FieldOptions::MergePartialFromCodedStream(
set_jstype
(
static_cast
<
::
google
::
protobuf
::
FieldOptions_JSType
>
(
value
));
set_jstype
(
static_cast
<
::
google
::
protobuf
::
FieldOptions_JSType
>
(
value
));
}
else
{
}
else
{
mutable_unknown_fields
()
->
AddVarint
(
mutable_unknown_fields
()
->
AddVarint
(
6
,
static_cast
<::
google
::
protobuf
::
uint64
>
(
value
));
6
,
static_cast
<
::
google
::
protobuf
::
uint64
>
(
value
));
}
}
}
else
{
}
else
{
goto
handle_unusual
;
goto
handle_unusual
;
...
@@ -12917,7 +12917,7 @@ bool MethodOptions::MergePartialFromCodedStream(
...
@@ -12917,7 +12917,7 @@ bool MethodOptions::MergePartialFromCodedStream(
set_idempotency_level
(
static_cast
<
::
google
::
protobuf
::
MethodOptions_IdempotencyLevel
>
(
value
));
set_idempotency_level
(
static_cast
<
::
google
::
protobuf
::
MethodOptions_IdempotencyLevel
>
(
value
));
}
else
{
}
else
{
mutable_unknown_fields
()
->
AddVarint
(
mutable_unknown_fields
()
->
AddVarint
(
34
,
static_cast
<::
google
::
protobuf
::
uint64
>
(
value
));
34
,
static_cast
<
::
google
::
protobuf
::
uint64
>
(
value
));
}
}
}
else
{
}
else
{
goto
handle_unusual
;
goto
handle_unusual
;
...
@@ -14703,7 +14703,7 @@ void SourceCodeInfo_Location::SerializeWithCachedSizes(
...
@@ -14703,7 +14703,7 @@ void SourceCodeInfo_Location::SerializeWithCachedSizes(
// repeated int32 path = 1 [packed = true];
// repeated int32 path = 1 [packed = true];
if
(
this
->
path_size
()
>
0
)
{
if
(
this
->
path_size
()
>
0
)
{
::
google
::
protobuf
::
internal
::
WireFormatLite
::
WriteTag
(
1
,
::
google
::
protobuf
::
internal
::
WireFormatLite
::
WIRETYPE_LENGTH_DELIMITED
,
output
);
::
google
::
protobuf
::
internal
::
WireFormatLite
::
WriteTag
(
1
,
::
google
::
protobuf
::
internal
::
WireFormatLite
::
WIRETYPE_LENGTH_DELIMITED
,
output
);
output
->
WriteVarint32
(
static_cast
<::
google
::
protobuf
::
uint32
>
(
output
->
WriteVarint32
(
static_cast
<
::
google
::
protobuf
::
uint32
>
(
_path_cached_byte_size_
));
_path_cached_byte_size_
));
}
}
for
(
int
i
=
0
,
n
=
this
->
path_size
();
i
<
n
;
i
++
)
{
for
(
int
i
=
0
,
n
=
this
->
path_size
();
i
<
n
;
i
++
)
{
...
@@ -14714,7 +14714,7 @@ void SourceCodeInfo_Location::SerializeWithCachedSizes(
...
@@ -14714,7 +14714,7 @@ void SourceCodeInfo_Location::SerializeWithCachedSizes(
// repeated int32 span = 2 [packed = true];
// repeated int32 span = 2 [packed = true];
if
(
this
->
span_size
()
>
0
)
{
if
(
this
->
span_size
()
>
0
)
{
::
google
::
protobuf
::
internal
::
WireFormatLite
::
WriteTag
(
2
,
::
google
::
protobuf
::
internal
::
WireFormatLite
::
WIRETYPE_LENGTH_DELIMITED
,
output
);
::
google
::
protobuf
::
internal
::
WireFormatLite
::
WriteTag
(
2
,
::
google
::
protobuf
::
internal
::
WireFormatLite
::
WIRETYPE_LENGTH_DELIMITED
,
output
);
output
->
WriteVarint32
(
static_cast
<::
google
::
protobuf
::
uint32
>
(
output
->
WriteVarint32
(
static_cast
<
::
google
::
protobuf
::
uint32
>
(
_span_cached_byte_size_
));
_span_cached_byte_size_
));
}
}
for
(
int
i
=
0
,
n
=
this
->
span_size
();
i
<
n
;
i
++
)
{
for
(
int
i
=
0
,
n
=
this
->
span_size
();
i
<
n
;
i
++
)
{
...
@@ -14773,7 +14773,7 @@ void SourceCodeInfo_Location::SerializeWithCachedSizes(
...
@@ -14773,7 +14773,7 @@ void SourceCodeInfo_Location::SerializeWithCachedSizes(
::
google
::
protobuf
::
internal
::
WireFormatLite
::
WIRETYPE_LENGTH_DELIMITED
,
::
google
::
protobuf
::
internal
::
WireFormatLite
::
WIRETYPE_LENGTH_DELIMITED
,
target
);
target
);
target
=
::
google
::
protobuf
::
io
::
CodedOutputStream
::
WriteVarint32ToArray
(
target
=
::
google
::
protobuf
::
io
::
CodedOutputStream
::
WriteVarint32ToArray
(
static_cast
<::
google
::
protobuf
::
uint32
>
(
static_cast
<
::
google
::
protobuf
::
uint32
>
(
_path_cached_byte_size_
),
target
);
_path_cached_byte_size_
),
target
);
target
=
::
google
::
protobuf
::
internal
::
WireFormatLite
::
target
=
::
google
::
protobuf
::
internal
::
WireFormatLite
::
WriteInt32NoTagToArray
(
this
->
path_
,
target
);
WriteInt32NoTagToArray
(
this
->
path_
,
target
);
...
@@ -14786,7 +14786,7 @@ void SourceCodeInfo_Location::SerializeWithCachedSizes(
...
@@ -14786,7 +14786,7 @@ void SourceCodeInfo_Location::SerializeWithCachedSizes(
::
google
::
protobuf
::
internal
::
WireFormatLite
::
WIRETYPE_LENGTH_DELIMITED
,
::
google
::
protobuf
::
internal
::
WireFormatLite
::
WIRETYPE_LENGTH_DELIMITED
,
target
);
target
);
target
=
::
google
::
protobuf
::
io
::
CodedOutputStream
::
WriteVarint32ToArray
(
target
=
::
google
::
protobuf
::
io
::
CodedOutputStream
::
WriteVarint32ToArray
(
static_cast
<::
google
::
protobuf
::
uint32
>
(
static_cast
<
::
google
::
protobuf
::
uint32
>
(
_span_cached_byte_size_
),
target
);
_span_cached_byte_size_
),
target
);
target
=
::
google
::
protobuf
::
internal
::
WireFormatLite
::
target
=
::
google
::
protobuf
::
internal
::
WireFormatLite
::
WriteInt32NoTagToArray
(
this
->
span_
,
target
);
WriteInt32NoTagToArray
(
this
->
span_
,
target
);
...
@@ -14849,7 +14849,7 @@ size_t SourceCodeInfo_Location::ByteSizeLong() const {
...
@@ -14849,7 +14849,7 @@ size_t SourceCodeInfo_Location::ByteSizeLong() const {
if
(
data_size
>
0
)
{
if
(
data_size
>
0
)
{
total_size
+=
1
+
total_size
+=
1
+
::
google
::
protobuf
::
internal
::
WireFormatLite
::
Int32Size
(
::
google
::
protobuf
::
internal
::
WireFormatLite
::
Int32Size
(
static_cast
<
google
::
protobuf
::
int32
>
(
data_size
));
static_cast
<
::
google
::
protobuf
::
int32
>
(
data_size
));
}
}
int
cached_size
=
::
google
::
protobuf
::
internal
::
ToCachedSize
(
data_size
);
int
cached_size
=
::
google
::
protobuf
::
internal
::
ToCachedSize
(
data_size
);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN
();
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN
();
...
@@ -14865,7 +14865,7 @@ size_t SourceCodeInfo_Location::ByteSizeLong() const {
...
@@ -14865,7 +14865,7 @@ size_t SourceCodeInfo_Location::ByteSizeLong() const {
if
(
data_size
>
0
)
{
if
(
data_size
>
0
)
{
total_size
+=
1
+
total_size
+=
1
+
::
google
::
protobuf
::
internal
::
WireFormatLite
::
Int32Size
(
::
google
::
protobuf
::
internal
::
WireFormatLite
::
Int32Size
(
static_cast
<
google
::
protobuf
::
int32
>
(
data_size
));
static_cast
<
::
google
::
protobuf
::
int32
>
(
data_size
));
}
}
int
cached_size
=
::
google
::
protobuf
::
internal
::
ToCachedSize
(
data_size
);
int
cached_size
=
::
google
::
protobuf
::
internal
::
ToCachedSize
(
data_size
);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN
();
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN
();
...
@@ -15707,7 +15707,7 @@ void GeneratedCodeInfo_Annotation::SerializeWithCachedSizes(
...
@@ -15707,7 +15707,7 @@ void GeneratedCodeInfo_Annotation::SerializeWithCachedSizes(
// repeated int32 path = 1 [packed = true];
// repeated int32 path = 1 [packed = true];
if
(
this
->
path_size
()
>
0
)
{
if
(
this
->
path_size
()
>
0
)
{
::
google
::
protobuf
::
internal
::
WireFormatLite
::
WriteTag
(
1
,
::
google
::
protobuf
::
internal
::
WireFormatLite
::
WIRETYPE_LENGTH_DELIMITED
,
output
);
::
google
::
protobuf
::
internal
::
WireFormatLite
::
WriteTag
(
1
,
::
google
::
protobuf
::
internal
::
WireFormatLite
::
WIRETYPE_LENGTH_DELIMITED
,
output
);
output
->
WriteVarint32
(
static_cast
<::
google
::
protobuf
::
uint32
>
(
output
->
WriteVarint32
(
static_cast
<
::
google
::
protobuf
::
uint32
>
(
_path_cached_byte_size_
));
_path_cached_byte_size_
));
}
}
for
(
int
i
=
0
,
n
=
this
->
path_size
();
i
<
n
;
i
++
)
{
for
(
int
i
=
0
,
n
=
this
->
path_size
();
i
<
n
;
i
++
)
{
...
@@ -15756,7 +15756,7 @@ void GeneratedCodeInfo_Annotation::SerializeWithCachedSizes(
...
@@ -15756,7 +15756,7 @@ void GeneratedCodeInfo_Annotation::SerializeWithCachedSizes(
::
google
::
protobuf
::
internal
::
WireFormatLite
::
WIRETYPE_LENGTH_DELIMITED
,
::
google
::
protobuf
::
internal
::
WireFormatLite
::
WIRETYPE_LENGTH_DELIMITED
,
target
);
target
);
target
=
::
google
::
protobuf
::
io
::
CodedOutputStream
::
WriteVarint32ToArray
(
target
=
::
google
::
protobuf
::
io
::
CodedOutputStream
::
WriteVarint32ToArray
(
static_cast
<::
google
::
protobuf
::
uint32
>
(
static_cast
<
::
google
::
protobuf
::
uint32
>
(
_path_cached_byte_size_
),
target
);
_path_cached_byte_size_
),
target
);
target
=
::
google
::
protobuf
::
internal
::
WireFormatLite
::
target
=
::
google
::
protobuf
::
internal
::
WireFormatLite
::
WriteInt32NoTagToArray
(
this
->
path_
,
target
);
WriteInt32NoTagToArray
(
this
->
path_
,
target
);
...
@@ -15808,7 +15808,7 @@ size_t GeneratedCodeInfo_Annotation::ByteSizeLong() const {
...
@@ -15808,7 +15808,7 @@ size_t GeneratedCodeInfo_Annotation::ByteSizeLong() const {
if
(
data_size
>
0
)
{
if
(
data_size
>
0
)
{
total_size
+=
1
+
total_size
+=
1
+
::
google
::
protobuf
::
internal
::
WireFormatLite
::
Int32Size
(
::
google
::
protobuf
::
internal
::
WireFormatLite
::
Int32Size
(
static_cast
<
google
::
protobuf
::
int32
>
(
data_size
));
static_cast
<
::
google
::
protobuf
::
int32
>
(
data_size
));
}
}
int
cached_size
=
::
google
::
protobuf
::
internal
::
ToCachedSize
(
data_size
);
int
cached_size
=
::
google
::
protobuf
::
internal
::
ToCachedSize
(
data_size
);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN
();
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment