Coverage Report

Created: 2025-06-13 06:15

/work/src/bloaty.pb.cc
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: bloaty.proto
3
4
#include "bloaty.pb.h"
5
6
#include <algorithm>
7
8
#include <google/protobuf/io/coded_stream.h>
9
#include <google/protobuf/extension_set.h>
10
#include <google/protobuf/wire_format_lite.h>
11
#include <google/protobuf/descriptor.h>
12
#include <google/protobuf/generated_message_reflection.h>
13
#include <google/protobuf/reflection_ops.h>
14
#include <google/protobuf/wire_format.h>
15
// @@protoc_insertion_point(includes)
16
#include <google/protobuf/port_def.inc>
17
extern PROTOBUF_INTERNAL_EXPORT_bloaty_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CustomDataSource_bloaty_2eproto;
18
extern PROTOBUF_INTERNAL_EXPORT_bloaty_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Regex_bloaty_2eproto;
19
namespace bloaty {
20
class OptionsDefaultTypeInternal {
21
 public:
22
  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Options> _instance;
23
} _Options_default_instance_;
24
class CustomDataSourceDefaultTypeInternal {
25
 public:
26
  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CustomDataSource> _instance;
27
} _CustomDataSource_default_instance_;
28
class RegexDefaultTypeInternal {
29
 public:
30
  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Regex> _instance;
31
} _Regex_default_instance_;
32
}  // namespace bloaty
33
2
static void InitDefaultsscc_info_CustomDataSource_bloaty_2eproto() {
34
2
  GOOGLE_PROTOBUF_VERIFY_VERSION;
35
36
2
  {
37
2
    void* ptr = &::bloaty::_CustomDataSource_default_instance_;
38
2
    new (ptr) ::bloaty::CustomDataSource();
39
2
    ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
40
2
  }
41
2
  ::bloaty::CustomDataSource::InitAsDefaultInstance();
42
2
}
43
44
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CustomDataSource_bloaty_2eproto =
45
    {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_CustomDataSource_bloaty_2eproto}, {
46
      &scc_info_Regex_bloaty_2eproto.base,}};
47
48
2
static void InitDefaultsscc_info_Options_bloaty_2eproto() {
49
2
  GOOGLE_PROTOBUF_VERIFY_VERSION;
50
51
2
  {
52
2
    void* ptr = &::bloaty::_Options_default_instance_;
53
2
    new (ptr) ::bloaty::Options();
54
2
    ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
55
2
  }
56
2
  ::bloaty::Options::InitAsDefaultInstance();
57
2
}
58
59
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Options_bloaty_2eproto =
60
    {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Options_bloaty_2eproto}, {
61
      &scc_info_CustomDataSource_bloaty_2eproto.base,}};
62
63
2
static void InitDefaultsscc_info_Regex_bloaty_2eproto() {
64
2
  GOOGLE_PROTOBUF_VERIFY_VERSION;
65
66
2
  {
67
2
    void* ptr = &::bloaty::_Regex_default_instance_;
68
2
    new (ptr) ::bloaty::Regex();
69
2
    ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
70
2
  }
71
2
  ::bloaty::Regex::InitAsDefaultInstance();
72
2
}
73
74
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Regex_bloaty_2eproto =
75
    {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Regex_bloaty_2eproto}, {}};
76
77
static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_bloaty_2eproto[3];
78
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_bloaty_2eproto[2];
79
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_bloaty_2eproto = nullptr;
80
81
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_bloaty_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
82
  PROTOBUF_FIELD_OFFSET(::bloaty::Options, _has_bits_),
83
  PROTOBUF_FIELD_OFFSET(::bloaty::Options, _internal_metadata_),
84
  ~0u,  // no _extensions_
85
  ~0u,  // no _oneof_case_
86
  ~0u,  // no _weak_field_map_
87
  PROTOBUF_FIELD_OFFSET(::bloaty::Options, filename_),
88
  PROTOBUF_FIELD_OFFSET(::bloaty::Options, base_filename_),
89
  PROTOBUF_FIELD_OFFSET(::bloaty::Options, debug_filename_),
90
  PROTOBUF_FIELD_OFFSET(::bloaty::Options, source_map_),
91
  PROTOBUF_FIELD_OFFSET(::bloaty::Options, data_source_),
92
  PROTOBUF_FIELD_OFFSET(::bloaty::Options, max_rows_per_level_),
93
  PROTOBUF_FIELD_OFFSET(::bloaty::Options, demangle_),
94
  PROTOBUF_FIELD_OFFSET(::bloaty::Options, sort_by_),
95
  PROTOBUF_FIELD_OFFSET(::bloaty::Options, verbose_level_),
96
  PROTOBUF_FIELD_OFFSET(::bloaty::Options, debug_vmaddr_),
97
  PROTOBUF_FIELD_OFFSET(::bloaty::Options, debug_fileoff_),
98
  PROTOBUF_FIELD_OFFSET(::bloaty::Options, custom_data_source_),
99
  PROTOBUF_FIELD_OFFSET(::bloaty::Options, disassemble_function_),
100
  PROTOBUF_FIELD_OFFSET(::bloaty::Options, source_filter_),
101
  PROTOBUF_FIELD_OFFSET(::bloaty::Options, dump_raw_map_),
102
  ~0u,
103
  ~0u,
104
  ~0u,
105
  ~0u,
106
  ~0u,
107
  8,
108
  2,
109
  3,
110
  4,
111
  6,
112
  7,
113
  ~0u,
114
  0,
115
  1,
116
  5,
117
  PROTOBUF_FIELD_OFFSET(::bloaty::CustomDataSource, _has_bits_),
118
  PROTOBUF_FIELD_OFFSET(::bloaty::CustomDataSource, _internal_metadata_),
119
  ~0u,  // no _extensions_
120
  ~0u,  // no _oneof_case_
121
  ~0u,  // no _weak_field_map_
122
  PROTOBUF_FIELD_OFFSET(::bloaty::CustomDataSource, name_),
123
  PROTOBUF_FIELD_OFFSET(::bloaty::CustomDataSource, base_data_source_),
124
  PROTOBUF_FIELD_OFFSET(::bloaty::CustomDataSource, rewrite_),
125
  0,
126
  1,
127
  ~0u,
128
  PROTOBUF_FIELD_OFFSET(::bloaty::Regex, _has_bits_),
129
  PROTOBUF_FIELD_OFFSET(::bloaty::Regex, _internal_metadata_),
130
  ~0u,  // no _extensions_
131
  ~0u,  // no _oneof_case_
132
  ~0u,  // no _weak_field_map_
133
  PROTOBUF_FIELD_OFFSET(::bloaty::Regex, pattern_),
134
  PROTOBUF_FIELD_OFFSET(::bloaty::Regex, replacement_),
135
  0,
136
  1,
137
};
138
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
139
  { 0, 20, sizeof(::bloaty::Options)},
140
  { 35, 43, sizeof(::bloaty::CustomDataSource)},
141
  { 46, 53, sizeof(::bloaty::Regex)},
142
};
143
144
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
145
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::bloaty::_Options_default_instance_),
146
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::bloaty::_CustomDataSource_default_instance_),
147
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::bloaty::_Regex_default_instance_),
148
};
149
150
const char descriptor_table_protodef_bloaty_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
151
  "\n\014bloaty.proto\022\006bloaty\"\323\004\n\007Options\022\020\n\010fi"
152
  "lename\030\001 \003(\t\022\025\n\rbase_filename\030\002 \003(\t\022\026\n\016d"
153
  "ebug_filename\030\n \003(\t\022\022\n\nsource_map\030\017 \003(\t\022"
154
  "\023\n\013data_source\030\003 \003(\t\022\036\n\022max_rows_per_lev"
155
  "el\030\004 \001(\003:\00220\022:\n\010demangle\030\005 \001(\0162\030.bloaty."
156
  "Options.Demangle:\016DEMANGLE_SHORT\0224\n\007sort"
157
  "_by\030\006 \001(\0162\026.bloaty.Options.SortBy:\013SORTB"
158
  "Y_BOTH\022\025\n\rverbose_level\030\007 \001(\005\022\024\n\014debug_v"
159
  "maddr\030\013 \001(\004\022\025\n\rdebug_fileoff\030\014 \001(\004\0224\n\022cu"
160
  "stom_data_source\030\010 \003(\0132\030.bloaty.CustomDa"
161
  "taSource\022\034\n\024disassemble_function\030\t \001(\t\022\025"
162
  "\n\rsource_filter\030\r \001(\t\022\024\n\014dump_raw_map\030\016 "
163
  "\001(\010\"D\n\010Demangle\022\022\n\016DEMANGLE_SHORT\020\000\022\021\n\rD"
164
  "EMANGLE_FULL\020\001\022\021\n\rDEMANGLE_NONE\020\002\"A\n\006Sor"
165
  "tBy\022\017\n\013SORTBY_BOTH\020\000\022\021\n\rSORTBY_VMSIZE\020\001\022"
166
  "\023\n\017SORTBY_FILESIZE\020\002\"Z\n\020CustomDataSource"
167
  "\022\014\n\004name\030\001 \001(\t\022\030\n\020base_data_source\030\002 \001(\t"
168
  "\022\036\n\007rewrite\030\003 \003(\0132\r.bloaty.Regex\"-\n\005Rege"
169
  "x\022\017\n\007pattern\030\001 \001(\t\022\023\n\013replacement\030\002 \001(\t"
170
  ;
171
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_bloaty_2eproto_deps[1] = {
172
};
173
static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_bloaty_2eproto_sccs[3] = {
174
  &scc_info_CustomDataSource_bloaty_2eproto.base,
175
  &scc_info_Options_bloaty_2eproto.base,
176
  &scc_info_Regex_bloaty_2eproto.base,
177
};
178
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_bloaty_2eproto_once;
179
static bool descriptor_table_bloaty_2eproto_initialized = false;
180
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_bloaty_2eproto = {
181
  &descriptor_table_bloaty_2eproto_initialized, descriptor_table_protodef_bloaty_2eproto, "bloaty.proto", 759,
182
  &descriptor_table_bloaty_2eproto_once, descriptor_table_bloaty_2eproto_sccs, descriptor_table_bloaty_2eproto_deps, 3, 0,
183
  schemas, file_default_instances, TableStruct_bloaty_2eproto::offsets,
184
  file_level_metadata_bloaty_2eproto, 3, file_level_enum_descriptors_bloaty_2eproto, file_level_service_descriptors_bloaty_2eproto,
185
};
186
187
// Force running AddDescriptors() at dynamic initialization time.
188
static bool dynamic_init_dummy_bloaty_2eproto = (  ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_bloaty_2eproto), true);
189
namespace bloaty {
190
0
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Options_Demangle_descriptor() {
191
0
  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_bloaty_2eproto);
192
0
  return file_level_enum_descriptors_bloaty_2eproto[0];
193
0
}
194
0
bool Options_Demangle_IsValid(int value) {
195
0
  switch (value) {
196
0
    case 0:
197
0
    case 1:
198
0
    case 2:
199
0
      return true;
200
0
    default:
201
0
      return false;
202
0
  }
203
0
}
204
205
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
206
constexpr Options_Demangle Options::DEMANGLE_SHORT;
207
constexpr Options_Demangle Options::DEMANGLE_FULL;
208
constexpr Options_Demangle Options::DEMANGLE_NONE;
209
constexpr Options_Demangle Options::Demangle_MIN;
210
constexpr Options_Demangle Options::Demangle_MAX;
211
constexpr int Options::Demangle_ARRAYSIZE;
212
#endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
213
0
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Options_SortBy_descriptor() {
214
0
  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_bloaty_2eproto);
215
0
  return file_level_enum_descriptors_bloaty_2eproto[1];
216
0
}
217
0
bool Options_SortBy_IsValid(int value) {
218
0
  switch (value) {
219
0
    case 0:
220
0
    case 1:
221
0
    case 2:
222
0
      return true;
223
0
    default:
224
0
      return false;
225
0
  }
226
0
}
227
228
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
229
constexpr Options_SortBy Options::SORTBY_BOTH;
230
constexpr Options_SortBy Options::SORTBY_VMSIZE;
231
constexpr Options_SortBy Options::SORTBY_FILESIZE;
232
constexpr Options_SortBy Options::SortBy_MIN;
233
constexpr Options_SortBy Options::SortBy_MAX;
234
constexpr int Options::SortBy_ARRAYSIZE;
235
#endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
236
237
// ===================================================================
238
239
2
void Options::InitAsDefaultInstance() {
240
2
}
241
class Options::_Internal {
242
 public:
243
  using HasBits = decltype(std::declval<Options>()._has_bits_);
244
0
  static void set_has_max_rows_per_level(HasBits* has_bits) {
245
0
    (*has_bits)[0] |= 256u;
246
0
  }
247
0
  static void set_has_demangle(HasBits* has_bits) {
248
0
    (*has_bits)[0] |= 4u;
249
0
  }
250
0
  static void set_has_sort_by(HasBits* has_bits) {
251
0
    (*has_bits)[0] |= 8u;
252
0
  }
253
0
  static void set_has_verbose_level(HasBits* has_bits) {
254
0
    (*has_bits)[0] |= 16u;
255
0
  }
256
0
  static void set_has_debug_vmaddr(HasBits* has_bits) {
257
0
    (*has_bits)[0] |= 64u;
258
0
  }
259
0
  static void set_has_debug_fileoff(HasBits* has_bits) {
260
0
    (*has_bits)[0] |= 128u;
261
0
  }
262
0
  static void set_has_disassemble_function(HasBits* has_bits) {
263
0
    (*has_bits)[0] |= 1u;
264
0
  }
265
0
  static void set_has_source_filter(HasBits* has_bits) {
266
0
    (*has_bits)[0] |= 2u;
267
0
  }
268
0
  static void set_has_dump_raw_map(HasBits* has_bits) {
269
0
    (*has_bits)[0] |= 32u;
270
0
  }
271
};
272
273
Options::Options()
274
29.1k
  : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
275
29.1k
  SharedCtor();
276
  // @@protoc_insertion_point(constructor:bloaty.Options)
277
29.1k
}
278
Options::Options(const Options& from)
279
89.1k
  : ::PROTOBUF_NAMESPACE_ID::Message(),
280
89.1k
      _internal_metadata_(nullptr),
281
89.1k
      _has_bits_(from._has_bits_),
282
89.1k
      filename_(from.filename_),
283
89.1k
      base_filename_(from.base_filename_),
284
89.1k
      data_source_(from.data_source_),
285
89.1k
      custom_data_source_(from.custom_data_source_),
286
89.1k
      debug_filename_(from.debug_filename_),
287
89.1k
      source_map_(from.source_map_) {
288
89.1k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
289
89.1k
  disassemble_function_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
290
89.1k
  if (from._internal_has_disassemble_function()) {
291
0
    disassemble_function_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.disassemble_function_);
292
0
  }
293
89.1k
  source_filter_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
294
89.1k
  if (from._internal_has_source_filter()) {
295
0
    source_filter_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.source_filter_);
296
0
  }
297
89.1k
  ::memcpy(&demangle_, &from.demangle_,
298
89.1k
    static_cast<size_t>(reinterpret_cast<char*>(&max_rows_per_level_) -
299
89.1k
    reinterpret_cast<char*>(&demangle_)) + sizeof(max_rows_per_level_));
300
  // @@protoc_insertion_point(copy_constructor:bloaty.Options)
301
89.1k
}
302
303
29.1k
void Options::SharedCtor() {
304
29.1k
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Options_bloaty_2eproto.base);
305
29.1k
  disassemble_function_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
306
29.1k
  source_filter_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
307
29.1k
  ::memset(&demangle_, 0, static_cast<size_t>(
308
29.1k
      reinterpret_cast<char*>(&debug_fileoff_) -
309
29.1k
      reinterpret_cast<char*>(&demangle_)) + sizeof(debug_fileoff_));
310
29.1k
  max_rows_per_level_ = PROTOBUF_LONGLONG(20);
311
29.1k
}
312
313
118k
Options::~Options() {
314
  // @@protoc_insertion_point(destructor:bloaty.Options)
315
118k
  SharedDtor();
316
118k
}
317
318
118k
void Options::SharedDtor() {
319
118k
  disassemble_function_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
320
118k
  source_filter_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
321
118k
}
322
323
0
void Options::SetCachedSize(int size) const {
324
0
  _cached_size_.Set(size);
325
0
}
326
0
const Options& Options::default_instance() {
327
0
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Options_bloaty_2eproto.base);
328
0
  return *internal_default_instance();
329
0
}
330
331
332
0
void Options::Clear() {
333
// @@protoc_insertion_point(message_clear_start:bloaty.Options)
334
0
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
335
  // Prevent compiler warnings about cached_has_bits being unused
336
0
  (void) cached_has_bits;
337
338
0
  filename_.Clear();
339
0
  base_filename_.Clear();
340
0
  data_source_.Clear();
341
0
  custom_data_source_.Clear();
342
0
  debug_filename_.Clear();
343
0
  source_map_.Clear();
344
0
  cached_has_bits = _has_bits_[0];
345
0
  if (cached_has_bits & 0x00000003u) {
346
0
    if (cached_has_bits & 0x00000001u) {
347
0
      disassemble_function_.ClearNonDefaultToEmptyNoArena();
348
0
    }
349
0
    if (cached_has_bits & 0x00000002u) {
350
0
      source_filter_.ClearNonDefaultToEmptyNoArena();
351
0
    }
352
0
  }
353
0
  if (cached_has_bits & 0x000000fcu) {
354
0
    ::memset(&demangle_, 0, static_cast<size_t>(
355
0
        reinterpret_cast<char*>(&debug_fileoff_) -
356
0
        reinterpret_cast<char*>(&demangle_)) + sizeof(debug_fileoff_));
357
0
  }
358
0
  max_rows_per_level_ = PROTOBUF_LONGLONG(20);
359
0
  _has_bits_.Clear();
360
0
  _internal_metadata_.Clear();
361
0
}
362
363
0
const char* Options::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
364
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
365
0
  _Internal::HasBits has_bits{};
366
0
  while (!ctx->Done(&ptr)) {
367
0
    ::PROTOBUF_NAMESPACE_ID::uint32 tag;
368
0
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
369
0
    CHK_(ptr);
370
0
    switch (tag >> 3) {
371
      // repeated string filename = 1;
372
0
      case 1:
373
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
374
0
          ptr -= 1;
375
0
          do {
376
0
            ptr += 1;
377
0
            ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(_internal_add_filename(), ptr, ctx, "bloaty.Options.filename");
378
0
            CHK_(ptr);
379
0
            if (!ctx->DataAvailable(ptr)) break;
380
0
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
381
0
        } else goto handle_unusual;
382
0
        continue;
383
      // repeated string base_filename = 2;
384
0
      case 2:
385
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
386
0
          ptr -= 1;
387
0
          do {
388
0
            ptr += 1;
389
0
            ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(_internal_add_base_filename(), ptr, ctx, "bloaty.Options.base_filename");
390
0
            CHK_(ptr);
391
0
            if (!ctx->DataAvailable(ptr)) break;
392
0
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
393
0
        } else goto handle_unusual;
394
0
        continue;
395
      // repeated string data_source = 3;
396
0
      case 3:
397
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
398
0
          ptr -= 1;
399
0
          do {
400
0
            ptr += 1;
401
0
            ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(_internal_add_data_source(), ptr, ctx, "bloaty.Options.data_source");
402
0
            CHK_(ptr);
403
0
            if (!ctx->DataAvailable(ptr)) break;
404
0
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
405
0
        } else goto handle_unusual;
406
0
        continue;
407
      // optional int64 max_rows_per_level = 4 [default = 20];
408
0
      case 4:
409
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
410
0
          _Internal::set_has_max_rows_per_level(&has_bits);
411
0
          max_rows_per_level_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
412
0
          CHK_(ptr);
413
0
        } else goto handle_unusual;
414
0
        continue;
415
      // optional .bloaty.Options.Demangle demangle = 5 [default = DEMANGLE_SHORT];
416
0
      case 5:
417
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
418
0
          ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
419
0
          CHK_(ptr);
420
0
          if (PROTOBUF_PREDICT_TRUE(::bloaty::Options_Demangle_IsValid(val))) {
421
0
            _internal_set_demangle(static_cast<::bloaty::Options_Demangle>(val));
422
0
          } else {
423
0
            ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields());
424
0
          }
425
0
        } else goto handle_unusual;
426
0
        continue;
427
      // optional .bloaty.Options.SortBy sort_by = 6 [default = SORTBY_BOTH];
428
0
      case 6:
429
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
430
0
          ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
431
0
          CHK_(ptr);
432
0
          if (PROTOBUF_PREDICT_TRUE(::bloaty::Options_SortBy_IsValid(val))) {
433
0
            _internal_set_sort_by(static_cast<::bloaty::Options_SortBy>(val));
434
0
          } else {
435
0
            ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(6, val, mutable_unknown_fields());
436
0
          }
437
0
        } else goto handle_unusual;
438
0
        continue;
439
      // optional int32 verbose_level = 7;
440
0
      case 7:
441
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
442
0
          _Internal::set_has_verbose_level(&has_bits);
443
0
          verbose_level_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
444
0
          CHK_(ptr);
445
0
        } else goto handle_unusual;
446
0
        continue;
447
      // repeated .bloaty.CustomDataSource custom_data_source = 8;
448
0
      case 8:
449
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
450
0
          ptr -= 1;
451
0
          do {
452
0
            ptr += 1;
453
0
            ptr = ctx->ParseMessage(_internal_add_custom_data_source(), ptr);
454
0
            CHK_(ptr);
455
0
            if (!ctx->DataAvailable(ptr)) break;
456
0
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr));
457
0
        } else goto handle_unusual;
458
0
        continue;
459
      // optional string disassemble_function = 9;
460
0
      case 9:
461
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
462
0
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(_internal_mutable_disassemble_function(), ptr, ctx, "bloaty.Options.disassemble_function");
463
0
          CHK_(ptr);
464
0
        } else goto handle_unusual;
465
0
        continue;
466
      // repeated string debug_filename = 10;
467
0
      case 10:
468
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
469
0
          ptr -= 1;
470
0
          do {
471
0
            ptr += 1;
472
0
            ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(_internal_add_debug_filename(), ptr, ctx, "bloaty.Options.debug_filename");
473
0
            CHK_(ptr);
474
0
            if (!ctx->DataAvailable(ptr)) break;
475
0
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<82>(ptr));
476
0
        } else goto handle_unusual;
477
0
        continue;
478
      // optional uint64 debug_vmaddr = 11;
479
0
      case 11:
480
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
481
0
          _Internal::set_has_debug_vmaddr(&has_bits);
482
0
          debug_vmaddr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
483
0
          CHK_(ptr);
484
0
        } else goto handle_unusual;
485
0
        continue;
486
      // optional uint64 debug_fileoff = 12;
487
0
      case 12:
488
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) {
489
0
          _Internal::set_has_debug_fileoff(&has_bits);
490
0
          debug_fileoff_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
491
0
          CHK_(ptr);
492
0
        } else goto handle_unusual;
493
0
        continue;
494
      // optional string source_filter = 13;
495
0
      case 13:
496
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) {
497
0
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(_internal_mutable_source_filter(), ptr, ctx, "bloaty.Options.source_filter");
498
0
          CHK_(ptr);
499
0
        } else goto handle_unusual;
500
0
        continue;
501
      // optional bool dump_raw_map = 14;
502
0
      case 14:
503
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 112)) {
504
0
          _Internal::set_has_dump_raw_map(&has_bits);
505
0
          dump_raw_map_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
506
0
          CHK_(ptr);
507
0
        } else goto handle_unusual;
508
0
        continue;
509
      // repeated string source_map = 15;
510
0
      case 15:
511
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) {
512
0
          ptr -= 1;
513
0
          do {
514
0
            ptr += 1;
515
0
            ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(_internal_add_source_map(), ptr, ctx, "bloaty.Options.source_map");
516
0
            CHK_(ptr);
517
0
            if (!ctx->DataAvailable(ptr)) break;
518
0
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<122>(ptr));
519
0
        } else goto handle_unusual;
520
0
        continue;
521
0
      default: {
522
0
      handle_unusual:
523
0
        if ((tag & 7) == 4 || tag == 0) {
524
0
          ctx->SetLastTag(tag);
525
0
          goto success;
526
0
        }
527
0
        ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
528
0
        CHK_(ptr != nullptr);
529
0
        continue;
530
0
      }
531
0
    }  // switch
532
0
  }  // while
533
0
success:
534
0
  _has_bits_.Or(has_bits);
535
0
  return ptr;
536
0
failure:
537
0
  ptr = nullptr;
538
0
  goto success;
539
0
#undef CHK_
540
0
}
541
542
::PROTOBUF_NAMESPACE_ID::uint8* Options::InternalSerializeWithCachedSizesToArray(
543
0
    ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
544
  // @@protoc_insertion_point(serialize_to_array_start:bloaty.Options)
545
0
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
546
0
  (void) cached_has_bits;
547
548
  // repeated string filename = 1;
549
0
  for (int i = 0, n = this->_internal_filename_size(); i < n; i++) {
550
0
    const auto& s = this->_internal_filename(i);
551
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
552
0
      s.data(), static_cast<int>(s.length()),
553
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
554
0
      "bloaty.Options.filename");
555
0
    target = stream->WriteString(1, s, target);
556
0
  }
557
558
  // repeated string base_filename = 2;
559
0
  for (int i = 0, n = this->_internal_base_filename_size(); i < n; i++) {
560
0
    const auto& s = this->_internal_base_filename(i);
561
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
562
0
      s.data(), static_cast<int>(s.length()),
563
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
564
0
      "bloaty.Options.base_filename");
565
0
    target = stream->WriteString(2, s, target);
566
0
  }
567
568
  // repeated string data_source = 3;
569
0
  for (int i = 0, n = this->_internal_data_source_size(); i < n; i++) {
570
0
    const auto& s = this->_internal_data_source(i);
571
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
572
0
      s.data(), static_cast<int>(s.length()),
573
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
574
0
      "bloaty.Options.data_source");
575
0
    target = stream->WriteString(3, s, target);
576
0
  }
577
578
0
  cached_has_bits = _has_bits_[0];
579
  // optional int64 max_rows_per_level = 4 [default = 20];
580
0
  if (cached_has_bits & 0x00000100u) {
581
0
    stream->EnsureSpace(&target);
582
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_max_rows_per_level(), target);
583
0
  }
584
585
  // optional .bloaty.Options.Demangle demangle = 5 [default = DEMANGLE_SHORT];
586
0
  if (cached_has_bits & 0x00000004u) {
587
0
    stream->EnsureSpace(&target);
588
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
589
0
      5, this->_internal_demangle(), target);
590
0
  }
591
592
  // optional .bloaty.Options.SortBy sort_by = 6 [default = SORTBY_BOTH];
593
0
  if (cached_has_bits & 0x00000008u) {
594
0
    stream->EnsureSpace(&target);
595
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
596
0
      6, this->_internal_sort_by(), target);
597
0
  }
598
599
  // optional int32 verbose_level = 7;
600
0
  if (cached_has_bits & 0x00000010u) {
601
0
    stream->EnsureSpace(&target);
602
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_verbose_level(), target);
603
0
  }
604
605
  // repeated .bloaty.CustomDataSource custom_data_source = 8;
606
0
  for (unsigned int i = 0,
607
0
      n = static_cast<unsigned int>(this->_internal_custom_data_source_size()); i < n; i++) {
608
0
    stream->EnsureSpace(&target);
609
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
610
0
      InternalWriteMessageToArray(8, this->_internal_custom_data_source(i), target, stream);
611
0
  }
612
613
  // optional string disassemble_function = 9;
614
0
  if (cached_has_bits & 0x00000001u) {
615
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
616
0
      this->_internal_disassemble_function().data(), static_cast<int>(this->_internal_disassemble_function().length()),
617
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
618
0
      "bloaty.Options.disassemble_function");
619
0
    target = stream->WriteStringMaybeAliased(
620
0
        9, this->_internal_disassemble_function(), target);
621
0
  }
622
623
  // repeated string debug_filename = 10;
624
0
  for (int i = 0, n = this->_internal_debug_filename_size(); i < n; i++) {
625
0
    const auto& s = this->_internal_debug_filename(i);
626
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
627
0
      s.data(), static_cast<int>(s.length()),
628
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
629
0
      "bloaty.Options.debug_filename");
630
0
    target = stream->WriteString(10, s, target);
631
0
  }
632
633
  // optional uint64 debug_vmaddr = 11;
634
0
  if (cached_has_bits & 0x00000040u) {
635
0
    stream->EnsureSpace(&target);
636
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(11, this->_internal_debug_vmaddr(), target);
637
0
  }
638
639
  // optional uint64 debug_fileoff = 12;
640
0
  if (cached_has_bits & 0x00000080u) {
641
0
    stream->EnsureSpace(&target);
642
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(12, this->_internal_debug_fileoff(), target);
643
0
  }
644
645
  // optional string source_filter = 13;
646
0
  if (cached_has_bits & 0x00000002u) {
647
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
648
0
      this->_internal_source_filter().data(), static_cast<int>(this->_internal_source_filter().length()),
649
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
650
0
      "bloaty.Options.source_filter");
651
0
    target = stream->WriteStringMaybeAliased(
652
0
        13, this->_internal_source_filter(), target);
653
0
  }
654
655
  // optional bool dump_raw_map = 14;
656
0
  if (cached_has_bits & 0x00000020u) {
657
0
    stream->EnsureSpace(&target);
658
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(14, this->_internal_dump_raw_map(), target);
659
0
  }
660
661
  // repeated string source_map = 15;
662
0
  for (int i = 0, n = this->_internal_source_map_size(); i < n; i++) {
663
0
    const auto& s = this->_internal_source_map(i);
664
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
665
0
      s.data(), static_cast<int>(s.length()),
666
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
667
0
      "bloaty.Options.source_map");
668
0
    target = stream->WriteString(15, s, target);
669
0
  }
670
671
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
672
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
673
0
        _internal_metadata_.unknown_fields(), target, stream);
674
0
  }
675
  // @@protoc_insertion_point(serialize_to_array_end:bloaty.Options)
676
0
  return target;
677
0
}
678
679
0
size_t Options::ByteSizeLong() const {
680
// @@protoc_insertion_point(message_byte_size_start:bloaty.Options)
681
0
  size_t total_size = 0;
682
683
0
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
684
  // Prevent compiler warnings about cached_has_bits being unused
685
0
  (void) cached_has_bits;
686
687
  // repeated string filename = 1;
688
0
  total_size += 1 *
689
0
      ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(filename_.size());
690
0
  for (int i = 0, n = filename_.size(); i < n; i++) {
691
0
    total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
692
0
      filename_.Get(i));
693
0
  }
694
695
  // repeated string base_filename = 2;
696
0
  total_size += 1 *
697
0
      ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(base_filename_.size());
698
0
  for (int i = 0, n = base_filename_.size(); i < n; i++) {
699
0
    total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
700
0
      base_filename_.Get(i));
701
0
  }
702
703
  // repeated string data_source = 3;
704
0
  total_size += 1 *
705
0
      ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(data_source_.size());
706
0
  for (int i = 0, n = data_source_.size(); i < n; i++) {
707
0
    total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
708
0
      data_source_.Get(i));
709
0
  }
710
711
  // repeated .bloaty.CustomDataSource custom_data_source = 8;
712
0
  total_size += 1UL * this->_internal_custom_data_source_size();
713
0
  for (const auto& msg : this->custom_data_source_) {
714
0
    total_size +=
715
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
716
0
  }
717
718
  // repeated string debug_filename = 10;
719
0
  total_size += 1 *
720
0
      ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(debug_filename_.size());
721
0
  for (int i = 0, n = debug_filename_.size(); i < n; i++) {
722
0
    total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
723
0
      debug_filename_.Get(i));
724
0
  }
725
726
  // repeated string source_map = 15;
727
0
  total_size += 1 *
728
0
      ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(source_map_.size());
729
0
  for (int i = 0, n = source_map_.size(); i < n; i++) {
730
0
    total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
731
0
      source_map_.Get(i));
732
0
  }
733
734
0
  cached_has_bits = _has_bits_[0];
735
0
  if (cached_has_bits & 0x000000ffu) {
736
    // optional string disassemble_function = 9;
737
0
    if (cached_has_bits & 0x00000001u) {
738
0
      total_size += 1 +
739
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
740
0
          this->_internal_disassemble_function());
741
0
    }
742
743
    // optional string source_filter = 13;
744
0
    if (cached_has_bits & 0x00000002u) {
745
0
      total_size += 1 +
746
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
747
0
          this->_internal_source_filter());
748
0
    }
749
750
    // optional .bloaty.Options.Demangle demangle = 5 [default = DEMANGLE_SHORT];
751
0
    if (cached_has_bits & 0x00000004u) {
752
0
      total_size += 1 +
753
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_demangle());
754
0
    }
755
756
    // optional .bloaty.Options.SortBy sort_by = 6 [default = SORTBY_BOTH];
757
0
    if (cached_has_bits & 0x00000008u) {
758
0
      total_size += 1 +
759
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_sort_by());
760
0
    }
761
762
    // optional int32 verbose_level = 7;
763
0
    if (cached_has_bits & 0x00000010u) {
764
0
      total_size += 1 +
765
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
766
0
          this->_internal_verbose_level());
767
0
    }
768
769
    // optional bool dump_raw_map = 14;
770
0
    if (cached_has_bits & 0x00000020u) {
771
0
      total_size += 1 + 1;
772
0
    }
773
774
    // optional uint64 debug_vmaddr = 11;
775
0
    if (cached_has_bits & 0x00000040u) {
776
0
      total_size += 1 +
777
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
778
0
          this->_internal_debug_vmaddr());
779
0
    }
780
781
    // optional uint64 debug_fileoff = 12;
782
0
    if (cached_has_bits & 0x00000080u) {
783
0
      total_size += 1 +
784
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
785
0
          this->_internal_debug_fileoff());
786
0
    }
787
788
0
  }
789
  // optional int64 max_rows_per_level = 4 [default = 20];
790
0
  if (cached_has_bits & 0x00000100u) {
791
0
    total_size += 1 +
792
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
793
0
        this->_internal_max_rows_per_level());
794
0
  }
795
796
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
797
0
    return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
798
0
        _internal_metadata_, total_size, &_cached_size_);
799
0
  }
800
0
  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
801
0
  SetCachedSize(cached_size);
802
0
  return total_size;
803
0
}
804
805
0
void Options::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
806
// @@protoc_insertion_point(generalized_merge_from_start:bloaty.Options)
807
0
  GOOGLE_DCHECK_NE(&from, this);
808
0
  const Options* source =
809
0
      ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Options>(
810
0
          &from);
811
0
  if (source == nullptr) {
812
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:bloaty.Options)
813
0
    ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
814
0
  } else {
815
  // @@protoc_insertion_point(generalized_merge_from_cast_success:bloaty.Options)
816
0
    MergeFrom(*source);
817
0
  }
818
0
}
819
820
0
void Options::MergeFrom(const Options& from) {
821
// @@protoc_insertion_point(class_specific_merge_from_start:bloaty.Options)
822
0
  GOOGLE_DCHECK_NE(&from, this);
823
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
824
0
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
825
0
  (void) cached_has_bits;
826
827
0
  filename_.MergeFrom(from.filename_);
828
0
  base_filename_.MergeFrom(from.base_filename_);
829
0
  data_source_.MergeFrom(from.data_source_);
830
0
  custom_data_source_.MergeFrom(from.custom_data_source_);
831
0
  debug_filename_.MergeFrom(from.debug_filename_);
832
0
  source_map_.MergeFrom(from.source_map_);
833
0
  cached_has_bits = from._has_bits_[0];
834
0
  if (cached_has_bits & 0x000000ffu) {
835
0
    if (cached_has_bits & 0x00000001u) {
836
0
      _has_bits_[0] |= 0x00000001u;
837
0
      disassemble_function_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.disassemble_function_);
838
0
    }
839
0
    if (cached_has_bits & 0x00000002u) {
840
0
      _has_bits_[0] |= 0x00000002u;
841
0
      source_filter_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.source_filter_);
842
0
    }
843
0
    if (cached_has_bits & 0x00000004u) {
844
0
      demangle_ = from.demangle_;
845
0
    }
846
0
    if (cached_has_bits & 0x00000008u) {
847
0
      sort_by_ = from.sort_by_;
848
0
    }
849
0
    if (cached_has_bits & 0x00000010u) {
850
0
      verbose_level_ = from.verbose_level_;
851
0
    }
852
0
    if (cached_has_bits & 0x00000020u) {
853
0
      dump_raw_map_ = from.dump_raw_map_;
854
0
    }
855
0
    if (cached_has_bits & 0x00000040u) {
856
0
      debug_vmaddr_ = from.debug_vmaddr_;
857
0
    }
858
0
    if (cached_has_bits & 0x00000080u) {
859
0
      debug_fileoff_ = from.debug_fileoff_;
860
0
    }
861
0
    _has_bits_[0] |= cached_has_bits;
862
0
  }
863
0
  if (cached_has_bits & 0x00000100u) {
864
0
    _internal_set_max_rows_per_level(from._internal_max_rows_per_level());
865
0
  }
866
0
}
867
868
0
void Options::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
869
// @@protoc_insertion_point(generalized_copy_from_start:bloaty.Options)
870
0
  if (&from == this) return;
871
0
  Clear();
872
0
  MergeFrom(from);
873
0
}
874
875
0
void Options::CopyFrom(const Options& from) {
876
// @@protoc_insertion_point(class_specific_copy_from_start:bloaty.Options)
877
0
  if (&from == this) return;
878
0
  Clear();
879
0
  MergeFrom(from);
880
0
}
881
882
0
bool Options::IsInitialized() const {
883
0
  return true;
884
0
}
885
886
0
void Options::InternalSwap(Options* other) {
887
0
  using std::swap;
888
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
889
0
  swap(_has_bits_[0], other->_has_bits_[0]);
890
0
  filename_.InternalSwap(&other->filename_);
891
0
  base_filename_.InternalSwap(&other->base_filename_);
892
0
  data_source_.InternalSwap(&other->data_source_);
893
0
  custom_data_source_.InternalSwap(&other->custom_data_source_);
894
0
  debug_filename_.InternalSwap(&other->debug_filename_);
895
0
  source_map_.InternalSwap(&other->source_map_);
896
0
  disassemble_function_.Swap(&other->disassemble_function_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
897
0
    GetArenaNoVirtual());
898
0
  source_filter_.Swap(&other->source_filter_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
899
0
    GetArenaNoVirtual());
900
0
  swap(demangle_, other->demangle_);
901
0
  swap(sort_by_, other->sort_by_);
902
0
  swap(verbose_level_, other->verbose_level_);
903
0
  swap(dump_raw_map_, other->dump_raw_map_);
904
0
  swap(debug_vmaddr_, other->debug_vmaddr_);
905
0
  swap(debug_fileoff_, other->debug_fileoff_);
906
0
  swap(max_rows_per_level_, other->max_rows_per_level_);
907
0
}
908
909
0
::PROTOBUF_NAMESPACE_ID::Metadata Options::GetMetadata() const {
910
0
  return GetMetadataStatic();
911
0
}
912
913
914
// ===================================================================
915
916
2
void CustomDataSource::InitAsDefaultInstance() {
917
2
}
918
class CustomDataSource::_Internal {
919
 public:
920
  using HasBits = decltype(std::declval<CustomDataSource>()._has_bits_);
921
0
  static void set_has_name(HasBits* has_bits) {
922
0
    (*has_bits)[0] |= 1u;
923
0
  }
924
0
  static void set_has_base_data_source(HasBits* has_bits) {
925
0
    (*has_bits)[0] |= 2u;
926
0
  }
927
};
928
929
CustomDataSource::CustomDataSource()
930
2
  : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
931
2
  SharedCtor();
932
  // @@protoc_insertion_point(constructor:bloaty.CustomDataSource)
933
2
}
934
CustomDataSource::CustomDataSource(const CustomDataSource& from)
935
0
  : ::PROTOBUF_NAMESPACE_ID::Message(),
936
0
      _internal_metadata_(nullptr),
937
0
      _has_bits_(from._has_bits_),
938
0
      rewrite_(from.rewrite_) {
939
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
940
0
  name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
941
0
  if (from._internal_has_name()) {
942
0
    name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
943
0
  }
944
0
  base_data_source_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
945
0
  if (from._internal_has_base_data_source()) {
946
0
    base_data_source_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.base_data_source_);
947
0
  }
948
  // @@protoc_insertion_point(copy_constructor:bloaty.CustomDataSource)
949
0
}
950
951
2
void CustomDataSource::SharedCtor() {
952
2
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CustomDataSource_bloaty_2eproto.base);
953
2
  name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
954
2
  base_data_source_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
955
2
}
956
957
0
CustomDataSource::~CustomDataSource() {
958
  // @@protoc_insertion_point(destructor:bloaty.CustomDataSource)
959
0
  SharedDtor();
960
0
}
961
962
0
void CustomDataSource::SharedDtor() {
963
0
  name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
964
0
  base_data_source_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
965
0
}
966
967
0
void CustomDataSource::SetCachedSize(int size) const {
968
0
  _cached_size_.Set(size);
969
0
}
970
0
const CustomDataSource& CustomDataSource::default_instance() {
971
0
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CustomDataSource_bloaty_2eproto.base);
972
0
  return *internal_default_instance();
973
0
}
974
975
976
0
void CustomDataSource::Clear() {
977
// @@protoc_insertion_point(message_clear_start:bloaty.CustomDataSource)
978
0
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
979
  // Prevent compiler warnings about cached_has_bits being unused
980
0
  (void) cached_has_bits;
981
982
0
  rewrite_.Clear();
983
0
  cached_has_bits = _has_bits_[0];
984
0
  if (cached_has_bits & 0x00000003u) {
985
0
    if (cached_has_bits & 0x00000001u) {
986
0
      name_.ClearNonDefaultToEmptyNoArena();
987
0
    }
988
0
    if (cached_has_bits & 0x00000002u) {
989
0
      base_data_source_.ClearNonDefaultToEmptyNoArena();
990
0
    }
991
0
  }
992
0
  _has_bits_.Clear();
993
0
  _internal_metadata_.Clear();
994
0
}
995
996
0
const char* CustomDataSource::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
997
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
998
0
  _Internal::HasBits has_bits{};
999
0
  while (!ctx->Done(&ptr)) {
1000
0
    ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1001
0
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1002
0
    CHK_(ptr);
1003
0
    switch (tag >> 3) {
1004
      // optional string name = 1;
1005
0
      case 1:
1006
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1007
0
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(_internal_mutable_name(), ptr, ctx, "bloaty.CustomDataSource.name");
1008
0
          CHK_(ptr);
1009
0
        } else goto handle_unusual;
1010
0
        continue;
1011
      // optional string base_data_source = 2;
1012
0
      case 2:
1013
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1014
0
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(_internal_mutable_base_data_source(), ptr, ctx, "bloaty.CustomDataSource.base_data_source");
1015
0
          CHK_(ptr);
1016
0
        } else goto handle_unusual;
1017
0
        continue;
1018
      // repeated .bloaty.Regex rewrite = 3;
1019
0
      case 3:
1020
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
1021
0
          ptr -= 1;
1022
0
          do {
1023
0
            ptr += 1;
1024
0
            ptr = ctx->ParseMessage(_internal_add_rewrite(), ptr);
1025
0
            CHK_(ptr);
1026
0
            if (!ctx->DataAvailable(ptr)) break;
1027
0
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
1028
0
        } else goto handle_unusual;
1029
0
        continue;
1030
0
      default: {
1031
0
      handle_unusual:
1032
0
        if ((tag & 7) == 4 || tag == 0) {
1033
0
          ctx->SetLastTag(tag);
1034
0
          goto success;
1035
0
        }
1036
0
        ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1037
0
        CHK_(ptr != nullptr);
1038
0
        continue;
1039
0
      }
1040
0
    }  // switch
1041
0
  }  // while
1042
0
success:
1043
0
  _has_bits_.Or(has_bits);
1044
0
  return ptr;
1045
0
failure:
1046
0
  ptr = nullptr;
1047
0
  goto success;
1048
0
#undef CHK_
1049
0
}
1050
1051
::PROTOBUF_NAMESPACE_ID::uint8* CustomDataSource::InternalSerializeWithCachedSizesToArray(
1052
0
    ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1053
  // @@protoc_insertion_point(serialize_to_array_start:bloaty.CustomDataSource)
1054
0
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1055
0
  (void) cached_has_bits;
1056
1057
0
  cached_has_bits = _has_bits_[0];
1058
  // optional string name = 1;
1059
0
  if (cached_has_bits & 0x00000001u) {
1060
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1061
0
      this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
1062
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1063
0
      "bloaty.CustomDataSource.name");
1064
0
    target = stream->WriteStringMaybeAliased(
1065
0
        1, this->_internal_name(), target);
1066
0
  }
1067
1068
  // optional string base_data_source = 2;
1069
0
  if (cached_has_bits & 0x00000002u) {
1070
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1071
0
      this->_internal_base_data_source().data(), static_cast<int>(this->_internal_base_data_source().length()),
1072
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1073
0
      "bloaty.CustomDataSource.base_data_source");
1074
0
    target = stream->WriteStringMaybeAliased(
1075
0
        2, this->_internal_base_data_source(), target);
1076
0
  }
1077
1078
  // repeated .bloaty.Regex rewrite = 3;
1079
0
  for (unsigned int i = 0,
1080
0
      n = static_cast<unsigned int>(this->_internal_rewrite_size()); i < n; i++) {
1081
0
    stream->EnsureSpace(&target);
1082
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1083
0
      InternalWriteMessageToArray(3, this->_internal_rewrite(i), target, stream);
1084
0
  }
1085
1086
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1087
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
1088
0
        _internal_metadata_.unknown_fields(), target, stream);
1089
0
  }
1090
  // @@protoc_insertion_point(serialize_to_array_end:bloaty.CustomDataSource)
1091
0
  return target;
1092
0
}
1093
1094
0
size_t CustomDataSource::ByteSizeLong() const {
1095
// @@protoc_insertion_point(message_byte_size_start:bloaty.CustomDataSource)
1096
0
  size_t total_size = 0;
1097
1098
0
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1099
  // Prevent compiler warnings about cached_has_bits being unused
1100
0
  (void) cached_has_bits;
1101
1102
  // repeated .bloaty.Regex rewrite = 3;
1103
0
  total_size += 1UL * this->_internal_rewrite_size();
1104
0
  for (const auto& msg : this->rewrite_) {
1105
0
    total_size +=
1106
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1107
0
  }
1108
1109
0
  cached_has_bits = _has_bits_[0];
1110
0
  if (cached_has_bits & 0x00000003u) {
1111
    // optional string name = 1;
1112
0
    if (cached_has_bits & 0x00000001u) {
1113
0
      total_size += 1 +
1114
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1115
0
          this->_internal_name());
1116
0
    }
1117
1118
    // optional string base_data_source = 2;
1119
0
    if (cached_has_bits & 0x00000002u) {
1120
0
      total_size += 1 +
1121
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1122
0
          this->_internal_base_data_source());
1123
0
    }
1124
1125
0
  }
1126
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1127
0
    return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
1128
0
        _internal_metadata_, total_size, &_cached_size_);
1129
0
  }
1130
0
  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1131
0
  SetCachedSize(cached_size);
1132
0
  return total_size;
1133
0
}
1134
1135
0
void CustomDataSource::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1136
// @@protoc_insertion_point(generalized_merge_from_start:bloaty.CustomDataSource)
1137
0
  GOOGLE_DCHECK_NE(&from, this);
1138
0
  const CustomDataSource* source =
1139
0
      ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CustomDataSource>(
1140
0
          &from);
1141
0
  if (source == nullptr) {
1142
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:bloaty.CustomDataSource)
1143
0
    ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1144
0
  } else {
1145
  // @@protoc_insertion_point(generalized_merge_from_cast_success:bloaty.CustomDataSource)
1146
0
    MergeFrom(*source);
1147
0
  }
1148
0
}
1149
1150
0
void CustomDataSource::MergeFrom(const CustomDataSource& from) {
1151
// @@protoc_insertion_point(class_specific_merge_from_start:bloaty.CustomDataSource)
1152
0
  GOOGLE_DCHECK_NE(&from, this);
1153
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1154
0
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1155
0
  (void) cached_has_bits;
1156
1157
0
  rewrite_.MergeFrom(from.rewrite_);
1158
0
  cached_has_bits = from._has_bits_[0];
1159
0
  if (cached_has_bits & 0x00000003u) {
1160
0
    if (cached_has_bits & 0x00000001u) {
1161
0
      _has_bits_[0] |= 0x00000001u;
1162
0
      name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
1163
0
    }
1164
0
    if (cached_has_bits & 0x00000002u) {
1165
0
      _has_bits_[0] |= 0x00000002u;
1166
0
      base_data_source_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.base_data_source_);
1167
0
    }
1168
0
  }
1169
0
}
1170
1171
0
void CustomDataSource::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1172
// @@protoc_insertion_point(generalized_copy_from_start:bloaty.CustomDataSource)
1173
0
  if (&from == this) return;
1174
0
  Clear();
1175
0
  MergeFrom(from);
1176
0
}
1177
1178
0
void CustomDataSource::CopyFrom(const CustomDataSource& from) {
1179
// @@protoc_insertion_point(class_specific_copy_from_start:bloaty.CustomDataSource)
1180
0
  if (&from == this) return;
1181
0
  Clear();
1182
0
  MergeFrom(from);
1183
0
}
1184
1185
0
bool CustomDataSource::IsInitialized() const {
1186
0
  return true;
1187
0
}
1188
1189
0
void CustomDataSource::InternalSwap(CustomDataSource* other) {
1190
0
  using std::swap;
1191
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1192
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1193
0
  rewrite_.InternalSwap(&other->rewrite_);
1194
0
  name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1195
0
    GetArenaNoVirtual());
1196
0
  base_data_source_.Swap(&other->base_data_source_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1197
0
    GetArenaNoVirtual());
1198
0
}
1199
1200
0
::PROTOBUF_NAMESPACE_ID::Metadata CustomDataSource::GetMetadata() const {
1201
0
  return GetMetadataStatic();
1202
0
}
1203
1204
1205
// ===================================================================
1206
1207
2
void Regex::InitAsDefaultInstance() {
1208
2
}
1209
class Regex::_Internal {
1210
 public:
1211
  using HasBits = decltype(std::declval<Regex>()._has_bits_);
1212
0
  static void set_has_pattern(HasBits* has_bits) {
1213
0
    (*has_bits)[0] |= 1u;
1214
0
  }
1215
0
  static void set_has_replacement(HasBits* has_bits) {
1216
0
    (*has_bits)[0] |= 2u;
1217
0
  }
1218
};
1219
1220
Regex::Regex()
1221
2
  : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1222
2
  SharedCtor();
1223
  // @@protoc_insertion_point(constructor:bloaty.Regex)
1224
2
}
1225
Regex::Regex(const Regex& from)
1226
0
  : ::PROTOBUF_NAMESPACE_ID::Message(),
1227
0
      _internal_metadata_(nullptr),
1228
0
      _has_bits_(from._has_bits_) {
1229
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1230
0
  pattern_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1231
0
  if (from._internal_has_pattern()) {
1232
0
    pattern_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.pattern_);
1233
0
  }
1234
0
  replacement_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1235
0
  if (from._internal_has_replacement()) {
1236
0
    replacement_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.replacement_);
1237
0
  }
1238
  // @@protoc_insertion_point(copy_constructor:bloaty.Regex)
1239
0
}
1240
1241
2
void Regex::SharedCtor() {
1242
2
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Regex_bloaty_2eproto.base);
1243
2
  pattern_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1244
2
  replacement_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1245
2
}
1246
1247
0
Regex::~Regex() {
1248
  // @@protoc_insertion_point(destructor:bloaty.Regex)
1249
0
  SharedDtor();
1250
0
}
1251
1252
0
void Regex::SharedDtor() {
1253
0
  pattern_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1254
0
  replacement_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1255
0
}
1256
1257
0
void Regex::SetCachedSize(int size) const {
1258
0
  _cached_size_.Set(size);
1259
0
}
1260
0
const Regex& Regex::default_instance() {
1261
0
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Regex_bloaty_2eproto.base);
1262
0
  return *internal_default_instance();
1263
0
}
1264
1265
1266
0
void Regex::Clear() {
1267
// @@protoc_insertion_point(message_clear_start:bloaty.Regex)
1268
0
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1269
  // Prevent compiler warnings about cached_has_bits being unused
1270
0
  (void) cached_has_bits;
1271
1272
0
  cached_has_bits = _has_bits_[0];
1273
0
  if (cached_has_bits & 0x00000003u) {
1274
0
    if (cached_has_bits & 0x00000001u) {
1275
0
      pattern_.ClearNonDefaultToEmptyNoArena();
1276
0
    }
1277
0
    if (cached_has_bits & 0x00000002u) {
1278
0
      replacement_.ClearNonDefaultToEmptyNoArena();
1279
0
    }
1280
0
  }
1281
0
  _has_bits_.Clear();
1282
0
  _internal_metadata_.Clear();
1283
0
}
1284
1285
0
const char* Regex::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1286
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1287
0
  _Internal::HasBits has_bits{};
1288
0
  while (!ctx->Done(&ptr)) {
1289
0
    ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1290
0
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1291
0
    CHK_(ptr);
1292
0
    switch (tag >> 3) {
1293
      // optional string pattern = 1;
1294
0
      case 1:
1295
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1296
0
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(_internal_mutable_pattern(), ptr, ctx, "bloaty.Regex.pattern");
1297
0
          CHK_(ptr);
1298
0
        } else goto handle_unusual;
1299
0
        continue;
1300
      // optional string replacement = 2;
1301
0
      case 2:
1302
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1303
0
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(_internal_mutable_replacement(), ptr, ctx, "bloaty.Regex.replacement");
1304
0
          CHK_(ptr);
1305
0
        } else goto handle_unusual;
1306
0
        continue;
1307
0
      default: {
1308
0
      handle_unusual:
1309
0
        if ((tag & 7) == 4 || tag == 0) {
1310
0
          ctx->SetLastTag(tag);
1311
0
          goto success;
1312
0
        }
1313
0
        ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1314
0
        CHK_(ptr != nullptr);
1315
0
        continue;
1316
0
      }
1317
0
    }  // switch
1318
0
  }  // while
1319
0
success:
1320
0
  _has_bits_.Or(has_bits);
1321
0
  return ptr;
1322
0
failure:
1323
0
  ptr = nullptr;
1324
0
  goto success;
1325
0
#undef CHK_
1326
0
}
1327
1328
::PROTOBUF_NAMESPACE_ID::uint8* Regex::InternalSerializeWithCachedSizesToArray(
1329
0
    ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1330
  // @@protoc_insertion_point(serialize_to_array_start:bloaty.Regex)
1331
0
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1332
0
  (void) cached_has_bits;
1333
1334
0
  cached_has_bits = _has_bits_[0];
1335
  // optional string pattern = 1;
1336
0
  if (cached_has_bits & 0x00000001u) {
1337
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1338
0
      this->_internal_pattern().data(), static_cast<int>(this->_internal_pattern().length()),
1339
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1340
0
      "bloaty.Regex.pattern");
1341
0
    target = stream->WriteStringMaybeAliased(
1342
0
        1, this->_internal_pattern(), target);
1343
0
  }
1344
1345
  // optional string replacement = 2;
1346
0
  if (cached_has_bits & 0x00000002u) {
1347
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1348
0
      this->_internal_replacement().data(), static_cast<int>(this->_internal_replacement().length()),
1349
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1350
0
      "bloaty.Regex.replacement");
1351
0
    target = stream->WriteStringMaybeAliased(
1352
0
        2, this->_internal_replacement(), target);
1353
0
  }
1354
1355
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1356
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
1357
0
        _internal_metadata_.unknown_fields(), target, stream);
1358
0
  }
1359
  // @@protoc_insertion_point(serialize_to_array_end:bloaty.Regex)
1360
0
  return target;
1361
0
}
1362
1363
0
size_t Regex::ByteSizeLong() const {
1364
// @@protoc_insertion_point(message_byte_size_start:bloaty.Regex)
1365
0
  size_t total_size = 0;
1366
1367
0
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1368
  // Prevent compiler warnings about cached_has_bits being unused
1369
0
  (void) cached_has_bits;
1370
1371
0
  cached_has_bits = _has_bits_[0];
1372
0
  if (cached_has_bits & 0x00000003u) {
1373
    // optional string pattern = 1;
1374
0
    if (cached_has_bits & 0x00000001u) {
1375
0
      total_size += 1 +
1376
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1377
0
          this->_internal_pattern());
1378
0
    }
1379
1380
    // optional string replacement = 2;
1381
0
    if (cached_has_bits & 0x00000002u) {
1382
0
      total_size += 1 +
1383
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1384
0
          this->_internal_replacement());
1385
0
    }
1386
1387
0
  }
1388
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1389
0
    return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
1390
0
        _internal_metadata_, total_size, &_cached_size_);
1391
0
  }
1392
0
  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1393
0
  SetCachedSize(cached_size);
1394
0
  return total_size;
1395
0
}
1396
1397
0
void Regex::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1398
// @@protoc_insertion_point(generalized_merge_from_start:bloaty.Regex)
1399
0
  GOOGLE_DCHECK_NE(&from, this);
1400
0
  const Regex* source =
1401
0
      ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Regex>(
1402
0
          &from);
1403
0
  if (source == nullptr) {
1404
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:bloaty.Regex)
1405
0
    ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1406
0
  } else {
1407
  // @@protoc_insertion_point(generalized_merge_from_cast_success:bloaty.Regex)
1408
0
    MergeFrom(*source);
1409
0
  }
1410
0
}
1411
1412
0
void Regex::MergeFrom(const Regex& from) {
1413
// @@protoc_insertion_point(class_specific_merge_from_start:bloaty.Regex)
1414
0
  GOOGLE_DCHECK_NE(&from, this);
1415
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1416
0
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1417
0
  (void) cached_has_bits;
1418
1419
0
  cached_has_bits = from._has_bits_[0];
1420
0
  if (cached_has_bits & 0x00000003u) {
1421
0
    if (cached_has_bits & 0x00000001u) {
1422
0
      _has_bits_[0] |= 0x00000001u;
1423
0
      pattern_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.pattern_);
1424
0
    }
1425
0
    if (cached_has_bits & 0x00000002u) {
1426
0
      _has_bits_[0] |= 0x00000002u;
1427
0
      replacement_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.replacement_);
1428
0
    }
1429
0
  }
1430
0
}
1431
1432
0
void Regex::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1433
// @@protoc_insertion_point(generalized_copy_from_start:bloaty.Regex)
1434
0
  if (&from == this) return;
1435
0
  Clear();
1436
0
  MergeFrom(from);
1437
0
}
1438
1439
0
void Regex::CopyFrom(const Regex& from) {
1440
// @@protoc_insertion_point(class_specific_copy_from_start:bloaty.Regex)
1441
0
  if (&from == this) return;
1442
0
  Clear();
1443
0
  MergeFrom(from);
1444
0
}
1445
1446
0
bool Regex::IsInitialized() const {
1447
0
  return true;
1448
0
}
1449
1450
0
void Regex::InternalSwap(Regex* other) {
1451
0
  using std::swap;
1452
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1453
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1454
0
  pattern_.Swap(&other->pattern_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1455
0
    GetArenaNoVirtual());
1456
0
  replacement_.Swap(&other->replacement_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1457
0
    GetArenaNoVirtual());
1458
0
}
1459
1460
0
::PROTOBUF_NAMESPACE_ID::Metadata Regex::GetMetadata() const {
1461
0
  return GetMetadataStatic();
1462
0
}
1463
1464
1465
// @@protoc_insertion_point(namespace_scope)
1466
}  // namespace bloaty
1467
PROTOBUF_NAMESPACE_OPEN
1468
0
template<> PROTOBUF_NOINLINE ::bloaty::Options* Arena::CreateMaybeMessage< ::bloaty::Options >(Arena* arena) {
1469
0
  return Arena::CreateInternal< ::bloaty::Options >(arena);
1470
0
}
1471
0
template<> PROTOBUF_NOINLINE ::bloaty::CustomDataSource* Arena::CreateMaybeMessage< ::bloaty::CustomDataSource >(Arena* arena) {
1472
0
  return Arena::CreateInternal< ::bloaty::CustomDataSource >(arena);
1473
0
}
1474
0
template<> PROTOBUF_NOINLINE ::bloaty::Regex* Arena::CreateMaybeMessage< ::bloaty::Regex >(Arena* arena) {
1475
0
  return Arena::CreateInternal< ::bloaty::Regex >(arena);
1476
0
}
1477
PROTOBUF_NAMESPACE_CLOSE
1478
1479
// @@protoc_insertion_point(global_scope)
1480
#include <google/protobuf/port_undef.inc>