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

Method ByteSizeLong

libs/indexer/drules_struct.pb.cc:352–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352size_t DashDotProto::ByteSizeLong() const {
353// @@protoc_insertion_point(message_byte_size_start:DashDotProto)
354 size_t total_size = 0;
355
356 // repeated double dd = 1;
357 {
358 unsigned int count = this->dd_size();
359 size_t data_size = 8UL * count;
360 if (data_size > 0) {
361 total_size += 1 +
362 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
363 }
364 int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
365 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
366 _dd_cached_byte_size_ = cached_size;
367 GOOGLE_SAFE_CONCURRENT_WRITES_END();
368 total_size += data_size;
369 }
370
371 // double offset = 2;
372 if (this->offset() != 0) {
373 total_size += 1 + 8;
374 }
375
376 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
377 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
378 _cached_size_ = cached_size;
379 GOOGLE_SAFE_CONCURRENT_WRITES_END();
380 return total_size;
381}
382
383void DashDotProto::CheckTypeAndMergeFrom(
384 const ::google::protobuf::MessageLite& from) {

Callers

nothing calls this directly

Calls 15

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

Tested by

no test coverage detected