MCPcopy Create free account
hub / github.com/comaps/comaps / SerializeWithCachedSizes

Method SerializeWithCachedSizes

libs/indexer/drules_struct.pb.cc:330–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330void DashDotProto::SerializeWithCachedSizes(
331 ::google::protobuf::io::CodedOutputStream* output) const {
332 // @@protoc_insertion_point(serialize_start:DashDotProto)
333 ::google::protobuf::uint32 cached_has_bits = 0;
334 (void) cached_has_bits;
335
336 // repeated double dd = 1;
337 if (this->dd_size() > 0) {
338 ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
339 output->WriteVarint32(_dd_cached_byte_size_);
340 ::google::protobuf::internal::WireFormatLite::WriteDoubleArray(
341 this->dd().data(), this->dd_size(), output);
342 }
343
344 // double offset = 2;
345 if (this->offset() != 0) {
346 ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->offset(), output);
347 }
348
349 // @@protoc_insertion_point(serialize_end:DashDotProto)
350}
351
352size_t DashDotProto::ByteSizeLong() const {
353// @@protoc_insertion_point(message_byte_size_start:DashDotProto)

Callers

nothing calls this directly

Calls 15

dd_sizeMethod · 0.95
ddMethod · 0.95
offsetMethod · 0.95
stepMethod · 0.95
widthMethod · 0.95
colorMethod · 0.95
has_dashdotMethod · 0.95
priorityMethod · 0.95
has_pathsymMethod · 0.95
joinMethod · 0.95
capMethod · 0.95
has_borderMethod · 0.95

Tested by

no test coverage detected