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