/work/boringssl/genfiles/asn1_pdu.pb.cc
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // NO CHECKED-IN PROTOBUF GENCODE |
3 | | // source: asn1_pdu.proto |
4 | | // Protobuf C++ Version: 5.29.3 |
5 | | |
6 | | #include "asn1_pdu.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 asn1_pdu { |
28 | | |
29 | | inline constexpr TagNumber::Impl_::Impl_( |
30 | | ::_pbi::ConstantInitialized) noexcept |
31 | | : _cached_size_{0}, |
32 | | high_tag_num_{0u}, |
33 | | low_tag_num_{static_cast< ::asn1_pdu::LowTagNumber >(0)} {} |
34 | | |
35 | | template <typename> |
36 | | PROTOBUF_CONSTEXPR TagNumber::TagNumber(::_pbi::ConstantInitialized) |
37 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
38 | | : ::google::protobuf::Message(_class_data_.base()), |
39 | | #else // PROTOBUF_CUSTOM_VTABLE |
40 | | : ::google::protobuf::Message(), |
41 | | #endif // PROTOBUF_CUSTOM_VTABLE |
42 | | _impl_(::_pbi::ConstantInitialized()) { |
43 | | } |
44 | | struct TagNumberDefaultTypeInternal { |
45 | 0 | PROTOBUF_CONSTEXPR TagNumberDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
46 | 0 | ~TagNumberDefaultTypeInternal() {} |
47 | | union { |
48 | | TagNumber _instance; |
49 | | }; |
50 | | }; |
51 | | |
52 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
53 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TagNumberDefaultTypeInternal _TagNumber_default_instance_; |
54 | | |
55 | | inline constexpr Length::Impl_::Impl_( |
56 | | ::_pbi::ConstantInitialized) noexcept |
57 | | : types_{}, |
58 | | _cached_size_{0}, |
59 | | _oneof_case_{} {} |
60 | | |
61 | | template <typename> |
62 | | PROTOBUF_CONSTEXPR Length::Length(::_pbi::ConstantInitialized) |
63 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
64 | | : ::google::protobuf::Message(_class_data_.base()), |
65 | | #else // PROTOBUF_CUSTOM_VTABLE |
66 | | : ::google::protobuf::Message(), |
67 | | #endif // PROTOBUF_CUSTOM_VTABLE |
68 | | _impl_(::_pbi::ConstantInitialized()) { |
69 | | } |
70 | | struct LengthDefaultTypeInternal { |
71 | 0 | PROTOBUF_CONSTEXPR LengthDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
72 | 0 | ~LengthDefaultTypeInternal() {} |
73 | | union { |
74 | | Length _instance; |
75 | | }; |
76 | | }; |
77 | | |
78 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
79 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LengthDefaultTypeInternal _Length_default_instance_; |
80 | | |
81 | | inline constexpr Identifier::Impl_::Impl_( |
82 | | ::_pbi::ConstantInitialized) noexcept |
83 | | : _cached_size_{0}, |
84 | | tag_num_{nullptr}, |
85 | | encoding_{static_cast< ::asn1_pdu::Encoding >(0)}, |
86 | | id_class_{static_cast< ::asn1_pdu::Class >(0)} {} |
87 | | |
88 | | template <typename> |
89 | | PROTOBUF_CONSTEXPR Identifier::Identifier(::_pbi::ConstantInitialized) |
90 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
91 | | : ::google::protobuf::Message(_class_data_.base()), |
92 | | #else // PROTOBUF_CUSTOM_VTABLE |
93 | | : ::google::protobuf::Message(), |
94 | | #endif // PROTOBUF_CUSTOM_VTABLE |
95 | | _impl_(::_pbi::ConstantInitialized()) { |
96 | | } |
97 | | struct IdentifierDefaultTypeInternal { |
98 | 0 | PROTOBUF_CONSTEXPR IdentifierDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
99 | 0 | ~IdentifierDefaultTypeInternal() {} |
100 | | union { |
101 | | Identifier _instance; |
102 | | }; |
103 | | }; |
104 | | |
105 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
106 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IdentifierDefaultTypeInternal _Identifier_default_instance_; |
107 | | |
108 | | inline constexpr PDU::Impl_::Impl_( |
109 | | ::_pbi::ConstantInitialized) noexcept |
110 | | : _cached_size_{0}, |
111 | | id_{nullptr}, |
112 | | len_{nullptr}, |
113 | | val_{nullptr} {} |
114 | | |
115 | | template <typename> |
116 | | PROTOBUF_CONSTEXPR PDU::PDU(::_pbi::ConstantInitialized) |
117 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
118 | | : ::google::protobuf::Message(_class_data_.base()), |
119 | | #else // PROTOBUF_CUSTOM_VTABLE |
120 | | : ::google::protobuf::Message(), |
121 | | #endif // PROTOBUF_CUSTOM_VTABLE |
122 | | _impl_(::_pbi::ConstantInitialized()) { |
123 | | } |
124 | | struct PDUDefaultTypeInternal { |
125 | 0 | PROTOBUF_CONSTEXPR PDUDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
126 | 0 | ~PDUDefaultTypeInternal() {} |
127 | | union { |
128 | | PDU _instance; |
129 | | }; |
130 | | }; |
131 | | |
132 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
133 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PDUDefaultTypeInternal _PDU_default_instance_; |
134 | | |
135 | | inline constexpr Value::Impl_::Impl_( |
136 | | ::_pbi::ConstantInitialized) noexcept |
137 | | : val_array_{}, |
138 | | _cached_size_{0} {} |
139 | | |
140 | | template <typename> |
141 | | PROTOBUF_CONSTEXPR Value::Value(::_pbi::ConstantInitialized) |
142 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
143 | | : ::google::protobuf::Message(_class_data_.base()), |
144 | | #else // PROTOBUF_CUSTOM_VTABLE |
145 | | : ::google::protobuf::Message(), |
146 | | #endif // PROTOBUF_CUSTOM_VTABLE |
147 | | _impl_(::_pbi::ConstantInitialized()) { |
148 | | } |
149 | | struct ValueDefaultTypeInternal { |
150 | 0 | PROTOBUF_CONSTEXPR ValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
151 | 0 | ~ValueDefaultTypeInternal() {} |
152 | | union { |
153 | | Value _instance; |
154 | | }; |
155 | | }; |
156 | | |
157 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
158 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValueDefaultTypeInternal _Value_default_instance_; |
159 | | |
160 | | inline constexpr ValueElement::Impl_::Impl_( |
161 | | ::_pbi::ConstantInitialized) noexcept |
162 | | : _cached_size_{0}, |
163 | | val_bits_( |
164 | | &::google::protobuf::internal::fixed_address_empty_string, |
165 | | ::_pbi::ConstantInitialized()), |
166 | | pdu_{nullptr} {} |
167 | | |
168 | | template <typename> |
169 | | PROTOBUF_CONSTEXPR ValueElement::ValueElement(::_pbi::ConstantInitialized) |
170 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
171 | | : ::google::protobuf::Message(_class_data_.base()), |
172 | | #else // PROTOBUF_CUSTOM_VTABLE |
173 | | : ::google::protobuf::Message(), |
174 | | #endif // PROTOBUF_CUSTOM_VTABLE |
175 | | _impl_(::_pbi::ConstantInitialized()) { |
176 | | } |
177 | | struct ValueElementDefaultTypeInternal { |
178 | 0 | PROTOBUF_CONSTEXPR ValueElementDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
179 | 0 | ~ValueElementDefaultTypeInternal() {} |
180 | | union { |
181 | | ValueElement _instance; |
182 | | }; |
183 | | }; |
184 | | |
185 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
186 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValueElementDefaultTypeInternal _ValueElement_default_instance_; |
187 | | } // namespace asn1_pdu |
188 | | static const ::_pb::EnumDescriptor* file_level_enum_descriptors_asn1_5fpdu_2eproto[3]; |
189 | | static constexpr const ::_pb::ServiceDescriptor** |
190 | | file_level_service_descriptors_asn1_5fpdu_2eproto = nullptr; |
191 | | const ::uint32_t |
192 | | TableStruct_asn1_5fpdu_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( |
193 | | protodesc_cold) = { |
194 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::PDU, _impl_._has_bits_), |
195 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::PDU, _internal_metadata_), |
196 | | ~0u, // no _extensions_ |
197 | | ~0u, // no _oneof_case_ |
198 | | ~0u, // no _weak_field_map_ |
199 | | ~0u, // no _inlined_string_donated_ |
200 | | ~0u, // no _split_ |
201 | | ~0u, // no sizeof(Split) |
202 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::PDU, _impl_.id_), |
203 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::PDU, _impl_.len_), |
204 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::PDU, _impl_.val_), |
205 | | 0, |
206 | | 1, |
207 | | 2, |
208 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::Identifier, _impl_._has_bits_), |
209 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::Identifier, _internal_metadata_), |
210 | | ~0u, // no _extensions_ |
211 | | ~0u, // no _oneof_case_ |
212 | | ~0u, // no _weak_field_map_ |
213 | | ~0u, // no _inlined_string_donated_ |
214 | | ~0u, // no _split_ |
215 | | ~0u, // no sizeof(Split) |
216 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::Identifier, _impl_.id_class_), |
217 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::Identifier, _impl_.encoding_), |
218 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::Identifier, _impl_.tag_num_), |
219 | | 2, |
220 | | 1, |
221 | | 0, |
222 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::TagNumber, _impl_._has_bits_), |
223 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::TagNumber, _internal_metadata_), |
224 | | ~0u, // no _extensions_ |
225 | | ~0u, // no _oneof_case_ |
226 | | ~0u, // no _weak_field_map_ |
227 | | ~0u, // no _inlined_string_donated_ |
228 | | ~0u, // no _split_ |
229 | | ~0u, // no sizeof(Split) |
230 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::TagNumber, _impl_.high_tag_num_), |
231 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::TagNumber, _impl_.low_tag_num_), |
232 | | 0, |
233 | | 1, |
234 | | ~0u, // no _has_bits_ |
235 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::Length, _internal_metadata_), |
236 | | ~0u, // no _extensions_ |
237 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::Length, _impl_._oneof_case_[0]), |
238 | | ~0u, // no _weak_field_map_ |
239 | | ~0u, // no _inlined_string_donated_ |
240 | | ~0u, // no _split_ |
241 | | ~0u, // no sizeof(Split) |
242 | | ::_pbi::kInvalidFieldOffsetTag, |
243 | | ::_pbi::kInvalidFieldOffsetTag, |
244 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::Length, _impl_.types_), |
245 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::ValueElement, _impl_._has_bits_), |
246 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::ValueElement, _internal_metadata_), |
247 | | ~0u, // no _extensions_ |
248 | | ~0u, // no _oneof_case_ |
249 | | ~0u, // no _weak_field_map_ |
250 | | ~0u, // no _inlined_string_donated_ |
251 | | ~0u, // no _split_ |
252 | | ~0u, // no sizeof(Split) |
253 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::ValueElement, _impl_.pdu_), |
254 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::ValueElement, _impl_.val_bits_), |
255 | | 1, |
256 | | 0, |
257 | | ~0u, // no _has_bits_ |
258 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::Value, _internal_metadata_), |
259 | | ~0u, // no _extensions_ |
260 | | ~0u, // no _oneof_case_ |
261 | | ~0u, // no _weak_field_map_ |
262 | | ~0u, // no _inlined_string_donated_ |
263 | | ~0u, // no _split_ |
264 | | ~0u, // no sizeof(Split) |
265 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::Value, _impl_.val_array_), |
266 | | }; |
267 | | |
268 | | static const ::_pbi::MigrationSchema |
269 | | schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
270 | | {0, 11, -1, sizeof(::asn1_pdu::PDU)}, |
271 | | {14, 25, -1, sizeof(::asn1_pdu::Identifier)}, |
272 | | {28, 38, -1, sizeof(::asn1_pdu::TagNumber)}, |
273 | | {40, -1, -1, sizeof(::asn1_pdu::Length)}, |
274 | | {51, 61, -1, sizeof(::asn1_pdu::ValueElement)}, |
275 | | {63, -1, -1, sizeof(::asn1_pdu::Value)}, |
276 | | }; |
277 | | static const ::_pb::Message* const file_default_instances[] = { |
278 | | &::asn1_pdu::_PDU_default_instance_._instance, |
279 | | &::asn1_pdu::_Identifier_default_instance_._instance, |
280 | | &::asn1_pdu::_TagNumber_default_instance_._instance, |
281 | | &::asn1_pdu::_Length_default_instance_._instance, |
282 | | &::asn1_pdu::_ValueElement_default_instance_._instance, |
283 | | &::asn1_pdu::_Value_default_instance_._instance, |
284 | | }; |
285 | | const char descriptor_table_protodef_asn1_5fpdu_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( |
286 | | protodesc_cold) = { |
287 | | "\n\016asn1_pdu.proto\022\010asn1_pdu\"d\n\003PDU\022 \n\002id\030" |
288 | | "\001 \002(\0132\024.asn1_pdu.Identifier\022\035\n\003len\030\002 \002(\013" |
289 | | "2\020.asn1_pdu.Length\022\034\n\003val\030\003 \002(\0132\017.asn1_p" |
290 | | "du.Value\"{\n\nIdentifier\022!\n\010id_class\030\002 \002(\016" |
291 | | "2\017.asn1_pdu.Class\022$\n\010encoding\030\001 \002(\0162\022.as" |
292 | | "n1_pdu.Encoding\022$\n\007tag_num\030\003 \002(\0132\023.asn1_" |
293 | | "pdu.TagNumber\"N\n\tTagNumber\022\024\n\014high_tag_n" |
294 | | "um\030\001 \001(\r\022+\n\013low_tag_num\030\002 \002(\0162\026.asn1_pdu" |
295 | | ".LowTagNumber\"G\n\006Length\022\031\n\017indefinite_fo" |
296 | | "rm\030\001 \001(\010H\000\022\031\n\017length_override\030\002 \001(\014H\000B\007\n" |
297 | | "\005types\"<\n\014ValueElement\022\032\n\003pdu\030\001 \001(\0132\r.as" |
298 | | "n1_pdu.PDU\022\020\n\010val_bits\030\002 \002(\014\"2\n\005Value\022)\n" |
299 | | "\tval_array\030\001 \003(\0132\026.asn1_pdu.ValueElement" |
300 | | "*\331\002\n\014LowTagNumber\022\010\n\004VAL0\020\000\022\010\n\004VAL1\020\001\022\010\n" |
301 | | "\004VAL2\020\002\022\010\n\004VAL3\020\003\022\010\n\004VAL4\020\004\022\010\n\004VAL5\020\005\022\010\n" |
302 | | "\004VAL6\020\006\022\010\n\004VAL7\020\007\022\010\n\004VAL8\020\010\022\010\n\004VAL9\020\t\022\t\n" |
303 | | "\005VAL10\020\n\022\t\n\005VAL11\020\013\022\t\n\005VAL12\020\014\022\t\n\005VAL13\020" |
304 | | "\r\022\t\n\005VAL14\020\016\022\t\n\005VAL15\020\017\022\t\n\005VAL16\020\020\022\t\n\005VA" |
305 | | "L17\020\021\022\t\n\005VAL18\020\022\022\t\n\005VAL19\020\023\022\t\n\005VAL20\020\024\022\t" |
306 | | "\n\005VAL21\020\025\022\t\n\005VAL22\020\026\022\t\n\005VAL23\020\027\022\t\n\005VAL24" |
307 | | "\020\030\022\t\n\005VAL25\020\031\022\t\n\005VAL26\020\032\022\t\n\005VAL27\020\033\022\t\n\005V" |
308 | | "AL28\020\034\022\t\n\005VAL29\020\035\022\t\n\005VAL30\020\036*I\n\005Class\022\r\n" |
309 | | "\tUniversal\020\000\022\017\n\013Application\020\001\022\023\n\017Context" |
310 | | "Specific\020\002\022\013\n\007Private\020\003**\n\010Encoding\022\r\n\tP" |
311 | | "rimitive\020\000\022\017\n\013Constructed\020\001" |
312 | | }; |
313 | | static ::absl::once_flag descriptor_table_asn1_5fpdu_2eproto_once; |
314 | | PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_asn1_5fpdu_2eproto = { |
315 | | false, |
316 | | false, |
317 | | 987, |
318 | | descriptor_table_protodef_asn1_5fpdu_2eproto, |
319 | | "asn1_pdu.proto", |
320 | | &descriptor_table_asn1_5fpdu_2eproto_once, |
321 | | nullptr, |
322 | | 0, |
323 | | 6, |
324 | | schemas, |
325 | | file_default_instances, |
326 | | TableStruct_asn1_5fpdu_2eproto::offsets, |
327 | | file_level_enum_descriptors_asn1_5fpdu_2eproto, |
328 | | file_level_service_descriptors_asn1_5fpdu_2eproto, |
329 | | }; |
330 | | namespace asn1_pdu { |
331 | 0 | const ::google::protobuf::EnumDescriptor* LowTagNumber_descriptor() { |
332 | 0 | ::google::protobuf::internal::AssignDescriptors(&descriptor_table_asn1_5fpdu_2eproto); |
333 | 0 | return file_level_enum_descriptors_asn1_5fpdu_2eproto[0]; |
334 | 0 | } |
335 | | PROTOBUF_CONSTINIT const uint32_t LowTagNumber_internal_data_[] = { |
336 | | 2031616u, 0u, }; |
337 | 0 | bool LowTagNumber_IsValid(int value) { |
338 | 0 | return 0 <= value && value <= 30; |
339 | 0 | } |
340 | 0 | const ::google::protobuf::EnumDescriptor* Class_descriptor() { |
341 | 0 | ::google::protobuf::internal::AssignDescriptors(&descriptor_table_asn1_5fpdu_2eproto); |
342 | 0 | return file_level_enum_descriptors_asn1_5fpdu_2eproto[1]; |
343 | 0 | } |
344 | | PROTOBUF_CONSTINIT const uint32_t Class_internal_data_[] = { |
345 | | 262144u, 0u, }; |
346 | 0 | bool Class_IsValid(int value) { |
347 | 0 | return 0 <= value && value <= 3; |
348 | 0 | } |
349 | 0 | const ::google::protobuf::EnumDescriptor* Encoding_descriptor() { |
350 | 0 | ::google::protobuf::internal::AssignDescriptors(&descriptor_table_asn1_5fpdu_2eproto); |
351 | 0 | return file_level_enum_descriptors_asn1_5fpdu_2eproto[2]; |
352 | 0 | } |
353 | | PROTOBUF_CONSTINIT const uint32_t Encoding_internal_data_[] = { |
354 | | 131072u, 0u, }; |
355 | 0 | bool Encoding_IsValid(int value) { |
356 | 0 | return 0 <= value && value <= 1; |
357 | 0 | } |
358 | | // =================================================================== |
359 | | |
360 | | class PDU::_Internal { |
361 | | public: |
362 | | using HasBits = |
363 | | decltype(std::declval<PDU>()._impl_._has_bits_); |
364 | | static constexpr ::int32_t kHasBitsOffset = |
365 | | 8 * PROTOBUF_FIELD_OFFSET(PDU, _impl_._has_bits_); |
366 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
367 | 0 | return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; |
368 | 0 | } |
369 | | }; |
370 | | |
371 | | PDU::PDU(::google::protobuf::Arena* arena) |
372 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
373 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
374 | | #else // PROTOBUF_CUSTOM_VTABLE |
375 | 77.4k | : ::google::protobuf::Message(arena) { |
376 | 77.4k | #endif // PROTOBUF_CUSTOM_VTABLE |
377 | 77.4k | SharedCtor(arena); |
378 | | // @@protoc_insertion_point(arena_constructor:asn1_pdu.PDU) |
379 | 77.4k | } |
380 | | inline PROTOBUF_NDEBUG_INLINE PDU::Impl_::Impl_( |
381 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
382 | | const Impl_& from, const ::asn1_pdu::PDU& from_msg) |
383 | 0 | : _has_bits_{from._has_bits_}, |
384 | 0 | _cached_size_{0} {} |
385 | | |
386 | | PDU::PDU( |
387 | | ::google::protobuf::Arena* arena, |
388 | | const PDU& from) |
389 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
390 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
391 | | #else // PROTOBUF_CUSTOM_VTABLE |
392 | 0 | : ::google::protobuf::Message(arena) { |
393 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
394 | 0 | PDU* const _this = this; |
395 | 0 | (void)_this; |
396 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
397 | 0 | from._internal_metadata_); |
398 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
399 | 0 | ::uint32_t cached_has_bits = _impl_._has_bits_[0]; |
400 | 0 | _impl_.id_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::asn1_pdu::Identifier>( |
401 | 0 | arena, *from._impl_.id_) |
402 | 0 | : nullptr; |
403 | 0 | _impl_.len_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::asn1_pdu::Length>( |
404 | 0 | arena, *from._impl_.len_) |
405 | 0 | : nullptr; |
406 | 0 | _impl_.val_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::asn1_pdu::Value>( |
407 | 0 | arena, *from._impl_.val_) |
408 | 0 | : nullptr; |
409 | | |
410 | | // @@protoc_insertion_point(copy_constructor:asn1_pdu.PDU) |
411 | 0 | } |
412 | | inline PROTOBUF_NDEBUG_INLINE PDU::Impl_::Impl_( |
413 | | ::google::protobuf::internal::InternalVisibility visibility, |
414 | | ::google::protobuf::Arena* arena) |
415 | 77.4k | : _cached_size_{0} {} |
416 | | |
417 | 77.4k | inline void PDU::SharedCtor(::_pb::Arena* arena) { |
418 | 77.4k | new (&_impl_) Impl_(internal_visibility(), arena); |
419 | 77.4k | ::memset(reinterpret_cast<char *>(&_impl_) + |
420 | 77.4k | offsetof(Impl_, id_), |
421 | 77.4k | 0, |
422 | 77.4k | offsetof(Impl_, val_) - |
423 | 77.4k | offsetof(Impl_, id_) + |
424 | 77.4k | sizeof(Impl_::val_)); |
425 | 77.4k | } |
426 | 77.4k | PDU::~PDU() { |
427 | | // @@protoc_insertion_point(destructor:asn1_pdu.PDU) |
428 | 77.4k | SharedDtor(*this); |
429 | 77.4k | } |
430 | 77.4k | inline void PDU::SharedDtor(MessageLite& self) { |
431 | 77.4k | PDU& this_ = static_cast<PDU&>(self); |
432 | 77.4k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
433 | 77.4k | ABSL_DCHECK(this_.GetArena() == nullptr); |
434 | 77.4k | delete this_._impl_.id_; |
435 | 77.4k | delete this_._impl_.len_; |
436 | 77.4k | delete this_._impl_.val_; |
437 | 77.4k | this_._impl_.~Impl_(); |
438 | 77.4k | } |
439 | | |
440 | | inline void* PDU::PlacementNew_(const void*, void* mem, |
441 | 63.2k | ::google::protobuf::Arena* arena) { |
442 | 63.2k | return ::new (mem) PDU(arena); |
443 | 63.2k | } |
444 | 0 | constexpr auto PDU::InternalNewImpl_() { |
445 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(PDU), |
446 | 0 | alignof(PDU)); |
447 | 0 | } |
448 | | PROTOBUF_CONSTINIT |
449 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
450 | | const ::google::protobuf::internal::ClassDataFull PDU::_class_data_ = { |
451 | | ::google::protobuf::internal::ClassData{ |
452 | | &_PDU_default_instance_._instance, |
453 | | &_table_.header, |
454 | | nullptr, // OnDemandRegisterArenaDtor |
455 | | PDU::IsInitializedImpl, |
456 | | &PDU::MergeImpl, |
457 | | ::google::protobuf::Message::GetNewImpl<PDU>(), |
458 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
459 | | &PDU::SharedDtor, |
460 | | ::google::protobuf::Message::GetClearImpl<PDU>(), &PDU::ByteSizeLong, |
461 | | &PDU::_InternalSerialize, |
462 | | #endif // PROTOBUF_CUSTOM_VTABLE |
463 | | PROTOBUF_FIELD_OFFSET(PDU, _impl_._cached_size_), |
464 | | false, |
465 | | }, |
466 | | &PDU::kDescriptorMethods, |
467 | | &descriptor_table_asn1_5fpdu_2eproto, |
468 | | nullptr, // tracker |
469 | | }; |
470 | 1.09M | const ::google::protobuf::internal::ClassData* PDU::GetClassData() const { |
471 | 1.09M | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
472 | 1.09M | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
473 | 1.09M | return _class_data_.base(); |
474 | 1.09M | } |
475 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
476 | | const ::_pbi::TcParseTable<2, 3, 3, 0, 2> PDU::_table_ = { |
477 | | { |
478 | | PROTOBUF_FIELD_OFFSET(PDU, _impl_._has_bits_), |
479 | | 0, // no _extensions_ |
480 | | 3, 24, // max_field_number, fast_idx_mask |
481 | | offsetof(decltype(_table_), field_lookup_table), |
482 | | 4294967288, // skipmap |
483 | | offsetof(decltype(_table_), field_entries), |
484 | | 3, // num_field_entries |
485 | | 3, // num_aux_entries |
486 | | offsetof(decltype(_table_), aux_entries), |
487 | | _class_data_.base(), |
488 | | nullptr, // post_loop_handler |
489 | | ::_pbi::TcParser::GenericFallback, // fallback |
490 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
491 | | ::_pbi::TcParser::GetTable<::asn1_pdu::PDU>(), // to_prefetch |
492 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
493 | | }, {{ |
494 | | {::_pbi::TcParser::MiniParse, {}}, |
495 | | // required .asn1_pdu.Identifier id = 1; |
496 | | {::_pbi::TcParser::FastMtS1, |
497 | | {10, 0, 0, PROTOBUF_FIELD_OFFSET(PDU, _impl_.id_)}}, |
498 | | // required .asn1_pdu.Length len = 2; |
499 | | {::_pbi::TcParser::FastMtS1, |
500 | | {18, 1, 1, PROTOBUF_FIELD_OFFSET(PDU, _impl_.len_)}}, |
501 | | // required .asn1_pdu.Value val = 3; |
502 | | {::_pbi::TcParser::FastMtS1, |
503 | | {26, 2, 2, PROTOBUF_FIELD_OFFSET(PDU, _impl_.val_)}}, |
504 | | }}, {{ |
505 | | 65535, 65535 |
506 | | }}, {{ |
507 | | // required .asn1_pdu.Identifier id = 1; |
508 | | {PROTOBUF_FIELD_OFFSET(PDU, _impl_.id_), _Internal::kHasBitsOffset + 0, 0, |
509 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
510 | | // required .asn1_pdu.Length len = 2; |
511 | | {PROTOBUF_FIELD_OFFSET(PDU, _impl_.len_), _Internal::kHasBitsOffset + 1, 1, |
512 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
513 | | // required .asn1_pdu.Value val = 3; |
514 | | {PROTOBUF_FIELD_OFFSET(PDU, _impl_.val_), _Internal::kHasBitsOffset + 2, 2, |
515 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
516 | | }}, {{ |
517 | | {::_pbi::TcParser::GetTable<::asn1_pdu::Identifier>()}, |
518 | | {::_pbi::TcParser::GetTable<::asn1_pdu::Length>()}, |
519 | | {::_pbi::TcParser::GetTable<::asn1_pdu::Value>()}, |
520 | | }}, {{ |
521 | | }}, |
522 | | }; |
523 | | |
524 | 43.1k | PROTOBUF_NOINLINE void PDU::Clear() { |
525 | | // @@protoc_insertion_point(message_clear_start:asn1_pdu.PDU) |
526 | 43.1k | ::google::protobuf::internal::TSanWrite(&_impl_); |
527 | 43.1k | ::uint32_t cached_has_bits = 0; |
528 | | // Prevent compiler warnings about cached_has_bits being unused |
529 | 43.1k | (void) cached_has_bits; |
530 | | |
531 | 43.1k | cached_has_bits = _impl_._has_bits_[0]; |
532 | 43.1k | if (cached_has_bits & 0x00000007u) { |
533 | 11.1k | if (cached_has_bits & 0x00000001u) { |
534 | 8.39k | ABSL_DCHECK(_impl_.id_ != nullptr); |
535 | 8.39k | _impl_.id_->Clear(); |
536 | 8.39k | } |
537 | 11.1k | if (cached_has_bits & 0x00000002u) { |
538 | 7.16k | ABSL_DCHECK(_impl_.len_ != nullptr); |
539 | 7.16k | _impl_.len_->Clear(); |
540 | 7.16k | } |
541 | 11.1k | if (cached_has_bits & 0x00000004u) { |
542 | 7.48k | ABSL_DCHECK(_impl_.val_ != nullptr); |
543 | 7.48k | _impl_.val_->Clear(); |
544 | 7.48k | } |
545 | 11.1k | } |
546 | 43.1k | _impl_._has_bits_.Clear(); |
547 | 43.1k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
548 | 43.1k | } |
549 | | |
550 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
551 | | ::uint8_t* PDU::_InternalSerialize( |
552 | | const MessageLite& base, ::uint8_t* target, |
553 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
554 | | const PDU& this_ = static_cast<const PDU&>(base); |
555 | | #else // PROTOBUF_CUSTOM_VTABLE |
556 | | ::uint8_t* PDU::_InternalSerialize( |
557 | | ::uint8_t* target, |
558 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
559 | 0 | const PDU& this_ = *this; |
560 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
561 | | // @@protoc_insertion_point(serialize_to_array_start:asn1_pdu.PDU) |
562 | 0 | ::uint32_t cached_has_bits = 0; |
563 | 0 | (void)cached_has_bits; |
564 | |
|
565 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
566 | | // required .asn1_pdu.Identifier id = 1; |
567 | 0 | if (cached_has_bits & 0x00000001u) { |
568 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
569 | 0 | 1, *this_._impl_.id_, this_._impl_.id_->GetCachedSize(), target, |
570 | 0 | stream); |
571 | 0 | } |
572 | | |
573 | | // required .asn1_pdu.Length len = 2; |
574 | 0 | if (cached_has_bits & 0x00000002u) { |
575 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
576 | 0 | 2, *this_._impl_.len_, this_._impl_.len_->GetCachedSize(), target, |
577 | 0 | stream); |
578 | 0 | } |
579 | | |
580 | | // required .asn1_pdu.Value val = 3; |
581 | 0 | if (cached_has_bits & 0x00000004u) { |
582 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
583 | 0 | 3, *this_._impl_.val_, this_._impl_.val_->GetCachedSize(), target, |
584 | 0 | stream); |
585 | 0 | } |
586 | |
|
587 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
588 | 0 | target = |
589 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
590 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
591 | 0 | } |
592 | | // @@protoc_insertion_point(serialize_to_array_end:asn1_pdu.PDU) |
593 | 0 | return target; |
594 | 0 | } |
595 | | |
596 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
597 | | ::size_t PDU::ByteSizeLong(const MessageLite& base) { |
598 | | const PDU& this_ = static_cast<const PDU&>(base); |
599 | | #else // PROTOBUF_CUSTOM_VTABLE |
600 | 0 | ::size_t PDU::ByteSizeLong() const { |
601 | 0 | const PDU& this_ = *this; |
602 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
603 | | // @@protoc_insertion_point(message_byte_size_start:asn1_pdu.PDU) |
604 | 0 | ::size_t total_size = 0; |
605 | |
|
606 | 0 | ::uint32_t cached_has_bits = 0; |
607 | | // Prevent compiler warnings about cached_has_bits being unused |
608 | 0 | (void)cached_has_bits; |
609 | |
|
610 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
611 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
612 | 0 | if (cached_has_bits & 0x00000007u) { |
613 | | // required .asn1_pdu.Identifier id = 1; |
614 | 0 | if (cached_has_bits & 0x00000001u) { |
615 | 0 | total_size += 1 + |
616 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.id_); |
617 | 0 | } |
618 | | // required .asn1_pdu.Length len = 2; |
619 | 0 | if (cached_has_bits & 0x00000002u) { |
620 | 0 | total_size += 1 + |
621 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.len_); |
622 | 0 | } |
623 | | // required .asn1_pdu.Value val = 3; |
624 | 0 | if (cached_has_bits & 0x00000004u) { |
625 | 0 | total_size += 1 + |
626 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.val_); |
627 | 0 | } |
628 | 0 | } |
629 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
630 | 0 | &this_._impl_._cached_size_); |
631 | 0 | } |
632 | | |
633 | 0 | void PDU::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
634 | 0 | auto* const _this = static_cast<PDU*>(&to_msg); |
635 | 0 | auto& from = static_cast<const PDU&>(from_msg); |
636 | 0 | ::google::protobuf::Arena* arena = _this->GetArena(); |
637 | | // @@protoc_insertion_point(class_specific_merge_from_start:asn1_pdu.PDU) |
638 | 0 | ABSL_DCHECK_NE(&from, _this); |
639 | 0 | ::uint32_t cached_has_bits = 0; |
640 | 0 | (void) cached_has_bits; |
641 | |
|
642 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
643 | 0 | if (cached_has_bits & 0x00000007u) { |
644 | 0 | if (cached_has_bits & 0x00000001u) { |
645 | 0 | ABSL_DCHECK(from._impl_.id_ != nullptr); |
646 | 0 | if (_this->_impl_.id_ == nullptr) { |
647 | 0 | _this->_impl_.id_ = |
648 | 0 | ::google::protobuf::Message::CopyConstruct<::asn1_pdu::Identifier>(arena, *from._impl_.id_); |
649 | 0 | } else { |
650 | 0 | _this->_impl_.id_->MergeFrom(*from._impl_.id_); |
651 | 0 | } |
652 | 0 | } |
653 | 0 | if (cached_has_bits & 0x00000002u) { |
654 | 0 | ABSL_DCHECK(from._impl_.len_ != nullptr); |
655 | 0 | if (_this->_impl_.len_ == nullptr) { |
656 | 0 | _this->_impl_.len_ = |
657 | 0 | ::google::protobuf::Message::CopyConstruct<::asn1_pdu::Length>(arena, *from._impl_.len_); |
658 | 0 | } else { |
659 | 0 | _this->_impl_.len_->MergeFrom(*from._impl_.len_); |
660 | 0 | } |
661 | 0 | } |
662 | 0 | if (cached_has_bits & 0x00000004u) { |
663 | 0 | ABSL_DCHECK(from._impl_.val_ != nullptr); |
664 | 0 | if (_this->_impl_.val_ == nullptr) { |
665 | 0 | _this->_impl_.val_ = |
666 | 0 | ::google::protobuf::Message::CopyConstruct<::asn1_pdu::Value>(arena, *from._impl_.val_); |
667 | 0 | } else { |
668 | 0 | _this->_impl_.val_->MergeFrom(*from._impl_.val_); |
669 | 0 | } |
670 | 0 | } |
671 | 0 | } |
672 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
673 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
674 | 0 | } |
675 | | |
676 | 0 | void PDU::CopyFrom(const PDU& from) { |
677 | | // @@protoc_insertion_point(class_specific_copy_from_start:asn1_pdu.PDU) |
678 | 0 | if (&from == this) return; |
679 | 0 | Clear(); |
680 | 0 | MergeFrom(from); |
681 | 0 | } |
682 | | |
683 | | PROTOBUF_NOINLINE bool PDU::IsInitializedImpl( |
684 | 0 | const MessageLite& msg) { |
685 | 0 | auto& this_ = static_cast<const PDU&>(msg); |
686 | 0 | if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { |
687 | 0 | return false; |
688 | 0 | } |
689 | 0 | if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { |
690 | 0 | if (!this_._impl_.id_->IsInitialized()) return false; |
691 | 0 | } |
692 | 0 | if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { |
693 | 0 | if (!this_._impl_.val_->IsInitialized()) return false; |
694 | 0 | } |
695 | 0 | return true; |
696 | 0 | } |
697 | | |
698 | 0 | void PDU::InternalSwap(PDU* PROTOBUF_RESTRICT other) { |
699 | 0 | using std::swap; |
700 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
701 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
702 | 0 | ::google::protobuf::internal::memswap< |
703 | 0 | PROTOBUF_FIELD_OFFSET(PDU, _impl_.val_) |
704 | 0 | + sizeof(PDU::_impl_.val_) |
705 | 0 | - PROTOBUF_FIELD_OFFSET(PDU, _impl_.id_)>( |
706 | 0 | reinterpret_cast<char*>(&_impl_.id_), |
707 | 0 | reinterpret_cast<char*>(&other->_impl_.id_)); |
708 | 0 | } |
709 | | |
710 | 0 | ::google::protobuf::Metadata PDU::GetMetadata() const { |
711 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
712 | 0 | } |
713 | | // =================================================================== |
714 | | |
715 | | class Identifier::_Internal { |
716 | | public: |
717 | | using HasBits = |
718 | | decltype(std::declval<Identifier>()._impl_._has_bits_); |
719 | | static constexpr ::int32_t kHasBitsOffset = |
720 | | 8 * PROTOBUF_FIELD_OFFSET(Identifier, _impl_._has_bits_); |
721 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
722 | 0 | return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; |
723 | 0 | } |
724 | | }; |
725 | | |
726 | | Identifier::Identifier(::google::protobuf::Arena* arena) |
727 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
728 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
729 | | #else // PROTOBUF_CUSTOM_VTABLE |
730 | 74.6k | : ::google::protobuf::Message(arena) { |
731 | 74.6k | #endif // PROTOBUF_CUSTOM_VTABLE |
732 | 74.6k | SharedCtor(arena); |
733 | | // @@protoc_insertion_point(arena_constructor:asn1_pdu.Identifier) |
734 | 74.6k | } |
735 | | inline PROTOBUF_NDEBUG_INLINE Identifier::Impl_::Impl_( |
736 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
737 | | const Impl_& from, const ::asn1_pdu::Identifier& from_msg) |
738 | 0 | : _has_bits_{from._has_bits_}, |
739 | 0 | _cached_size_{0} {} |
740 | | |
741 | | Identifier::Identifier( |
742 | | ::google::protobuf::Arena* arena, |
743 | | const Identifier& from) |
744 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
745 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
746 | | #else // PROTOBUF_CUSTOM_VTABLE |
747 | 0 | : ::google::protobuf::Message(arena) { |
748 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
749 | 0 | Identifier* const _this = this; |
750 | 0 | (void)_this; |
751 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
752 | 0 | from._internal_metadata_); |
753 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
754 | 0 | ::uint32_t cached_has_bits = _impl_._has_bits_[0]; |
755 | 0 | _impl_.tag_num_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::asn1_pdu::TagNumber>( |
756 | 0 | arena, *from._impl_.tag_num_) |
757 | 0 | : nullptr; |
758 | 0 | ::memcpy(reinterpret_cast<char *>(&_impl_) + |
759 | 0 | offsetof(Impl_, encoding_), |
760 | 0 | reinterpret_cast<const char *>(&from._impl_) + |
761 | 0 | offsetof(Impl_, encoding_), |
762 | 0 | offsetof(Impl_, id_class_) - |
763 | 0 | offsetof(Impl_, encoding_) + |
764 | 0 | sizeof(Impl_::id_class_)); |
765 | | |
766 | | // @@protoc_insertion_point(copy_constructor:asn1_pdu.Identifier) |
767 | 0 | } |
768 | | inline PROTOBUF_NDEBUG_INLINE Identifier::Impl_::Impl_( |
769 | | ::google::protobuf::internal::InternalVisibility visibility, |
770 | | ::google::protobuf::Arena* arena) |
771 | 74.6k | : _cached_size_{0} {} |
772 | | |
773 | 74.6k | inline void Identifier::SharedCtor(::_pb::Arena* arena) { |
774 | 74.6k | new (&_impl_) Impl_(internal_visibility(), arena); |
775 | 74.6k | ::memset(reinterpret_cast<char *>(&_impl_) + |
776 | 74.6k | offsetof(Impl_, tag_num_), |
777 | 74.6k | 0, |
778 | 74.6k | offsetof(Impl_, id_class_) - |
779 | 74.6k | offsetof(Impl_, tag_num_) + |
780 | 74.6k | sizeof(Impl_::id_class_)); |
781 | 74.6k | } |
782 | 74.6k | Identifier::~Identifier() { |
783 | | // @@protoc_insertion_point(destructor:asn1_pdu.Identifier) |
784 | 74.6k | SharedDtor(*this); |
785 | 74.6k | } |
786 | 74.6k | inline void Identifier::SharedDtor(MessageLite& self) { |
787 | 74.6k | Identifier& this_ = static_cast<Identifier&>(self); |
788 | 74.6k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
789 | 74.6k | ABSL_DCHECK(this_.GetArena() == nullptr); |
790 | 74.6k | delete this_._impl_.tag_num_; |
791 | 74.6k | this_._impl_.~Impl_(); |
792 | 74.6k | } |
793 | | |
794 | | inline void* Identifier::PlacementNew_(const void*, void* mem, |
795 | 74.6k | ::google::protobuf::Arena* arena) { |
796 | 74.6k | return ::new (mem) Identifier(arena); |
797 | 74.6k | } |
798 | 0 | constexpr auto Identifier::InternalNewImpl_() { |
799 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Identifier), |
800 | 0 | alignof(Identifier)); |
801 | 0 | } |
802 | | PROTOBUF_CONSTINIT |
803 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
804 | | const ::google::protobuf::internal::ClassDataFull Identifier::_class_data_ = { |
805 | | ::google::protobuf::internal::ClassData{ |
806 | | &_Identifier_default_instance_._instance, |
807 | | &_table_.header, |
808 | | nullptr, // OnDemandRegisterArenaDtor |
809 | | Identifier::IsInitializedImpl, |
810 | | &Identifier::MergeImpl, |
811 | | ::google::protobuf::Message::GetNewImpl<Identifier>(), |
812 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
813 | | &Identifier::SharedDtor, |
814 | | ::google::protobuf::Message::GetClearImpl<Identifier>(), &Identifier::ByteSizeLong, |
815 | | &Identifier::_InternalSerialize, |
816 | | #endif // PROTOBUF_CUSTOM_VTABLE |
817 | | PROTOBUF_FIELD_OFFSET(Identifier, _impl_._cached_size_), |
818 | | false, |
819 | | }, |
820 | | &Identifier::kDescriptorMethods, |
821 | | &descriptor_table_asn1_5fpdu_2eproto, |
822 | | nullptr, // tracker |
823 | | }; |
824 | 1.01M | const ::google::protobuf::internal::ClassData* Identifier::GetClassData() const { |
825 | 1.01M | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
826 | 1.01M | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
827 | 1.01M | return _class_data_.base(); |
828 | 1.01M | } |
829 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
830 | | const ::_pbi::TcParseTable<2, 3, 3, 0, 2> Identifier::_table_ = { |
831 | | { |
832 | | PROTOBUF_FIELD_OFFSET(Identifier, _impl_._has_bits_), |
833 | | 0, // no _extensions_ |
834 | | 3, 24, // max_field_number, fast_idx_mask |
835 | | offsetof(decltype(_table_), field_lookup_table), |
836 | | 4294967288, // skipmap |
837 | | offsetof(decltype(_table_), field_entries), |
838 | | 3, // num_field_entries |
839 | | 3, // num_aux_entries |
840 | | offsetof(decltype(_table_), aux_entries), |
841 | | _class_data_.base(), |
842 | | nullptr, // post_loop_handler |
843 | | ::_pbi::TcParser::GenericFallback, // fallback |
844 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
845 | | ::_pbi::TcParser::GetTable<::asn1_pdu::Identifier>(), // to_prefetch |
846 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
847 | | }, {{ |
848 | | {::_pbi::TcParser::MiniParse, {}}, |
849 | | // required .asn1_pdu.Encoding encoding = 1; |
850 | | {::_pbi::TcParser::FastEr0S1, |
851 | | {8, 1, 1, PROTOBUF_FIELD_OFFSET(Identifier, _impl_.encoding_)}}, |
852 | | // required .asn1_pdu.Class id_class = 2; |
853 | | {::_pbi::TcParser::FastEr0S1, |
854 | | {16, 2, 3, PROTOBUF_FIELD_OFFSET(Identifier, _impl_.id_class_)}}, |
855 | | // required .asn1_pdu.TagNumber tag_num = 3; |
856 | | {::_pbi::TcParser::FastMtS1, |
857 | | {26, 0, 0, PROTOBUF_FIELD_OFFSET(Identifier, _impl_.tag_num_)}}, |
858 | | }}, {{ |
859 | | 65535, 65535 |
860 | | }}, {{ |
861 | | // required .asn1_pdu.Encoding encoding = 1; |
862 | | {PROTOBUF_FIELD_OFFSET(Identifier, _impl_.encoding_), _Internal::kHasBitsOffset + 1, 1, |
863 | | (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, |
864 | | // required .asn1_pdu.Class id_class = 2; |
865 | | {PROTOBUF_FIELD_OFFSET(Identifier, _impl_.id_class_), _Internal::kHasBitsOffset + 2, 2, |
866 | | (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, |
867 | | // required .asn1_pdu.TagNumber tag_num = 3; |
868 | | {PROTOBUF_FIELD_OFFSET(Identifier, _impl_.tag_num_), _Internal::kHasBitsOffset + 0, 0, |
869 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
870 | | }}, {{ |
871 | | {::_pbi::TcParser::GetTable<::asn1_pdu::TagNumber>()}, |
872 | | {0, 2}, |
873 | | {0, 4}, |
874 | | }}, {{ |
875 | | }}, |
876 | | }; |
877 | | |
878 | 15.5k | PROTOBUF_NOINLINE void Identifier::Clear() { |
879 | | // @@protoc_insertion_point(message_clear_start:asn1_pdu.Identifier) |
880 | 15.5k | ::google::protobuf::internal::TSanWrite(&_impl_); |
881 | 15.5k | ::uint32_t cached_has_bits = 0; |
882 | | // Prevent compiler warnings about cached_has_bits being unused |
883 | 15.5k | (void) cached_has_bits; |
884 | | |
885 | 15.5k | cached_has_bits = _impl_._has_bits_[0]; |
886 | 15.5k | if (cached_has_bits & 0x00000001u) { |
887 | 4.25k | ABSL_DCHECK(_impl_.tag_num_ != nullptr); |
888 | 4.25k | _impl_.tag_num_->Clear(); |
889 | 4.25k | } |
890 | 15.5k | if (cached_has_bits & 0x00000006u) { |
891 | 2.52k | ::memset(&_impl_.encoding_, 0, static_cast<::size_t>( |
892 | 2.52k | reinterpret_cast<char*>(&_impl_.id_class_) - |
893 | 2.52k | reinterpret_cast<char*>(&_impl_.encoding_)) + sizeof(_impl_.id_class_)); |
894 | 2.52k | } |
895 | 15.5k | _impl_._has_bits_.Clear(); |
896 | 15.5k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
897 | 15.5k | } |
898 | | |
899 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
900 | | ::uint8_t* Identifier::_InternalSerialize( |
901 | | const MessageLite& base, ::uint8_t* target, |
902 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
903 | | const Identifier& this_ = static_cast<const Identifier&>(base); |
904 | | #else // PROTOBUF_CUSTOM_VTABLE |
905 | | ::uint8_t* Identifier::_InternalSerialize( |
906 | | ::uint8_t* target, |
907 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
908 | 0 | const Identifier& this_ = *this; |
909 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
910 | | // @@protoc_insertion_point(serialize_to_array_start:asn1_pdu.Identifier) |
911 | 0 | ::uint32_t cached_has_bits = 0; |
912 | 0 | (void)cached_has_bits; |
913 | |
|
914 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
915 | | // required .asn1_pdu.Encoding encoding = 1; |
916 | 0 | if (cached_has_bits & 0x00000002u) { |
917 | 0 | target = stream->EnsureSpace(target); |
918 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
919 | 0 | 1, this_._internal_encoding(), target); |
920 | 0 | } |
921 | | |
922 | | // required .asn1_pdu.Class id_class = 2; |
923 | 0 | if (cached_has_bits & 0x00000004u) { |
924 | 0 | target = stream->EnsureSpace(target); |
925 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
926 | 0 | 2, this_._internal_id_class(), target); |
927 | 0 | } |
928 | | |
929 | | // required .asn1_pdu.TagNumber tag_num = 3; |
930 | 0 | if (cached_has_bits & 0x00000001u) { |
931 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
932 | 0 | 3, *this_._impl_.tag_num_, this_._impl_.tag_num_->GetCachedSize(), target, |
933 | 0 | stream); |
934 | 0 | } |
935 | |
|
936 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
937 | 0 | target = |
938 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
939 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
940 | 0 | } |
941 | | // @@protoc_insertion_point(serialize_to_array_end:asn1_pdu.Identifier) |
942 | 0 | return target; |
943 | 0 | } |
944 | | |
945 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
946 | | ::size_t Identifier::ByteSizeLong(const MessageLite& base) { |
947 | | const Identifier& this_ = static_cast<const Identifier&>(base); |
948 | | #else // PROTOBUF_CUSTOM_VTABLE |
949 | 0 | ::size_t Identifier::ByteSizeLong() const { |
950 | 0 | const Identifier& this_ = *this; |
951 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
952 | | // @@protoc_insertion_point(message_byte_size_start:asn1_pdu.Identifier) |
953 | 0 | ::size_t total_size = 0; |
954 | |
|
955 | 0 | ::uint32_t cached_has_bits = 0; |
956 | | // Prevent compiler warnings about cached_has_bits being unused |
957 | 0 | (void)cached_has_bits; |
958 | |
|
959 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
960 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
961 | 0 | if (cached_has_bits & 0x00000007u) { |
962 | | // required .asn1_pdu.TagNumber tag_num = 3; |
963 | 0 | if (cached_has_bits & 0x00000001u) { |
964 | 0 | total_size += 1 + |
965 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.tag_num_); |
966 | 0 | } |
967 | | // required .asn1_pdu.Encoding encoding = 1; |
968 | 0 | if (cached_has_bits & 0x00000002u) { |
969 | 0 | total_size += 1 + |
970 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_encoding()); |
971 | 0 | } |
972 | | // required .asn1_pdu.Class id_class = 2; |
973 | 0 | if (cached_has_bits & 0x00000004u) { |
974 | 0 | total_size += 1 + |
975 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_id_class()); |
976 | 0 | } |
977 | 0 | } |
978 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
979 | 0 | &this_._impl_._cached_size_); |
980 | 0 | } |
981 | | |
982 | 3.59k | void Identifier::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
983 | 3.59k | auto* const _this = static_cast<Identifier*>(&to_msg); |
984 | 3.59k | auto& from = static_cast<const Identifier&>(from_msg); |
985 | 3.59k | ::google::protobuf::Arena* arena = _this->GetArena(); |
986 | | // @@protoc_insertion_point(class_specific_merge_from_start:asn1_pdu.Identifier) |
987 | 3.59k | ABSL_DCHECK_NE(&from, _this); |
988 | 3.59k | ::uint32_t cached_has_bits = 0; |
989 | 3.59k | (void) cached_has_bits; |
990 | | |
991 | 3.59k | cached_has_bits = from._impl_._has_bits_[0]; |
992 | 3.59k | if (cached_has_bits & 0x00000007u) { |
993 | 0 | if (cached_has_bits & 0x00000001u) { |
994 | 0 | ABSL_DCHECK(from._impl_.tag_num_ != nullptr); |
995 | 0 | if (_this->_impl_.tag_num_ == nullptr) { |
996 | 0 | _this->_impl_.tag_num_ = |
997 | 0 | ::google::protobuf::Message::CopyConstruct<::asn1_pdu::TagNumber>(arena, *from._impl_.tag_num_); |
998 | 0 | } else { |
999 | 0 | _this->_impl_.tag_num_->MergeFrom(*from._impl_.tag_num_); |
1000 | 0 | } |
1001 | 0 | } |
1002 | 0 | if (cached_has_bits & 0x00000002u) { |
1003 | 0 | _this->_impl_.encoding_ = from._impl_.encoding_; |
1004 | 0 | } |
1005 | 0 | if (cached_has_bits & 0x00000004u) { |
1006 | 0 | _this->_impl_.id_class_ = from._impl_.id_class_; |
1007 | 0 | } |
1008 | 0 | } |
1009 | 3.59k | _this->_impl_._has_bits_[0] |= cached_has_bits; |
1010 | 3.59k | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
1011 | 3.59k | } |
1012 | | |
1013 | 0 | void Identifier::CopyFrom(const Identifier& from) { |
1014 | | // @@protoc_insertion_point(class_specific_copy_from_start:asn1_pdu.Identifier) |
1015 | 0 | if (&from == this) return; |
1016 | 0 | Clear(); |
1017 | 0 | MergeFrom(from); |
1018 | 0 | } |
1019 | | |
1020 | | PROTOBUF_NOINLINE bool Identifier::IsInitializedImpl( |
1021 | 0 | const MessageLite& msg) { |
1022 | 0 | auto& this_ = static_cast<const Identifier&>(msg); |
1023 | 0 | if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { |
1024 | 0 | return false; |
1025 | 0 | } |
1026 | 0 | if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { |
1027 | 0 | if (!this_._impl_.tag_num_->IsInitialized()) return false; |
1028 | 0 | } |
1029 | 0 | return true; |
1030 | 0 | } |
1031 | | |
1032 | 0 | void Identifier::InternalSwap(Identifier* PROTOBUF_RESTRICT other) { |
1033 | 0 | using std::swap; |
1034 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1035 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
1036 | 0 | ::google::protobuf::internal::memswap< |
1037 | 0 | PROTOBUF_FIELD_OFFSET(Identifier, _impl_.id_class_) |
1038 | 0 | + sizeof(Identifier::_impl_.id_class_) |
1039 | 0 | - PROTOBUF_FIELD_OFFSET(Identifier, _impl_.tag_num_)>( |
1040 | 0 | reinterpret_cast<char*>(&_impl_.tag_num_), |
1041 | 0 | reinterpret_cast<char*>(&other->_impl_.tag_num_)); |
1042 | 0 | } |
1043 | | |
1044 | 0 | ::google::protobuf::Metadata Identifier::GetMetadata() const { |
1045 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
1046 | 0 | } |
1047 | | // =================================================================== |
1048 | | |
1049 | | class TagNumber::_Internal { |
1050 | | public: |
1051 | | using HasBits = |
1052 | | decltype(std::declval<TagNumber>()._impl_._has_bits_); |
1053 | | static constexpr ::int32_t kHasBitsOffset = |
1054 | | 8 * PROTOBUF_FIELD_OFFSET(TagNumber, _impl_._has_bits_); |
1055 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
1056 | 0 | return ((has_bits[0] & 0x00000002) ^ 0x00000002) != 0; |
1057 | 0 | } |
1058 | | }; |
1059 | | |
1060 | | TagNumber::TagNumber(::google::protobuf::Arena* arena) |
1061 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1062 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1063 | | #else // PROTOBUF_CUSTOM_VTABLE |
1064 | 72.6k | : ::google::protobuf::Message(arena) { |
1065 | 72.6k | #endif // PROTOBUF_CUSTOM_VTABLE |
1066 | 72.6k | SharedCtor(arena); |
1067 | | // @@protoc_insertion_point(arena_constructor:asn1_pdu.TagNumber) |
1068 | 72.6k | } |
1069 | | TagNumber::TagNumber( |
1070 | | ::google::protobuf::Arena* arena, const TagNumber& from) |
1071 | 0 | : TagNumber(arena) { |
1072 | 0 | MergeFrom(from); |
1073 | 0 | } |
1074 | | inline PROTOBUF_NDEBUG_INLINE TagNumber::Impl_::Impl_( |
1075 | | ::google::protobuf::internal::InternalVisibility visibility, |
1076 | | ::google::protobuf::Arena* arena) |
1077 | 72.6k | : _cached_size_{0} {} |
1078 | | |
1079 | 72.6k | inline void TagNumber::SharedCtor(::_pb::Arena* arena) { |
1080 | 72.6k | new (&_impl_) Impl_(internal_visibility(), arena); |
1081 | 72.6k | ::memset(reinterpret_cast<char *>(&_impl_) + |
1082 | 72.6k | offsetof(Impl_, high_tag_num_), |
1083 | 72.6k | 0, |
1084 | 72.6k | offsetof(Impl_, low_tag_num_) - |
1085 | 72.6k | offsetof(Impl_, high_tag_num_) + |
1086 | 72.6k | sizeof(Impl_::low_tag_num_)); |
1087 | 72.6k | } |
1088 | 72.6k | TagNumber::~TagNumber() { |
1089 | | // @@protoc_insertion_point(destructor:asn1_pdu.TagNumber) |
1090 | 72.6k | SharedDtor(*this); |
1091 | 72.6k | } |
1092 | 72.6k | inline void TagNumber::SharedDtor(MessageLite& self) { |
1093 | 72.6k | TagNumber& this_ = static_cast<TagNumber&>(self); |
1094 | 72.6k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
1095 | 72.6k | ABSL_DCHECK(this_.GetArena() == nullptr); |
1096 | 72.6k | this_._impl_.~Impl_(); |
1097 | 72.6k | } |
1098 | | |
1099 | | inline void* TagNumber::PlacementNew_(const void*, void* mem, |
1100 | 72.6k | ::google::protobuf::Arena* arena) { |
1101 | 72.6k | return ::new (mem) TagNumber(arena); |
1102 | 72.6k | } |
1103 | 0 | constexpr auto TagNumber::InternalNewImpl_() { |
1104 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TagNumber), |
1105 | 0 | alignof(TagNumber)); |
1106 | 0 | } |
1107 | | PROTOBUF_CONSTINIT |
1108 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1109 | | const ::google::protobuf::internal::ClassDataFull TagNumber::_class_data_ = { |
1110 | | ::google::protobuf::internal::ClassData{ |
1111 | | &_TagNumber_default_instance_._instance, |
1112 | | &_table_.header, |
1113 | | nullptr, // OnDemandRegisterArenaDtor |
1114 | | TagNumber::IsInitializedImpl, |
1115 | | &TagNumber::MergeImpl, |
1116 | | ::google::protobuf::Message::GetNewImpl<TagNumber>(), |
1117 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1118 | | &TagNumber::SharedDtor, |
1119 | | ::google::protobuf::Message::GetClearImpl<TagNumber>(), &TagNumber::ByteSizeLong, |
1120 | | &TagNumber::_InternalSerialize, |
1121 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1122 | | PROTOBUF_FIELD_OFFSET(TagNumber, _impl_._cached_size_), |
1123 | | false, |
1124 | | }, |
1125 | | &TagNumber::kDescriptorMethods, |
1126 | | &descriptor_table_asn1_5fpdu_2eproto, |
1127 | | nullptr, // tracker |
1128 | | }; |
1129 | 645k | const ::google::protobuf::internal::ClassData* TagNumber::GetClassData() const { |
1130 | 645k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
1131 | 645k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
1132 | 645k | return _class_data_.base(); |
1133 | 645k | } |
1134 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1135 | | const ::_pbi::TcParseTable<1, 2, 1, 0, 2> TagNumber::_table_ = { |
1136 | | { |
1137 | | PROTOBUF_FIELD_OFFSET(TagNumber, _impl_._has_bits_), |
1138 | | 0, // no _extensions_ |
1139 | | 2, 8, // max_field_number, fast_idx_mask |
1140 | | offsetof(decltype(_table_), field_lookup_table), |
1141 | | 4294967292, // skipmap |
1142 | | offsetof(decltype(_table_), field_entries), |
1143 | | 2, // num_field_entries |
1144 | | 1, // num_aux_entries |
1145 | | offsetof(decltype(_table_), aux_entries), |
1146 | | _class_data_.base(), |
1147 | | nullptr, // post_loop_handler |
1148 | | ::_pbi::TcParser::GenericFallback, // fallback |
1149 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
1150 | | ::_pbi::TcParser::GetTable<::asn1_pdu::TagNumber>(), // to_prefetch |
1151 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
1152 | | }, {{ |
1153 | | // required .asn1_pdu.LowTagNumber low_tag_num = 2; |
1154 | | {::_pbi::TcParser::FastEr0S1, |
1155 | | {16, 1, 30, PROTOBUF_FIELD_OFFSET(TagNumber, _impl_.low_tag_num_)}}, |
1156 | | // optional uint32 high_tag_num = 1; |
1157 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TagNumber, _impl_.high_tag_num_), 0>(), |
1158 | | {8, 0, 0, PROTOBUF_FIELD_OFFSET(TagNumber, _impl_.high_tag_num_)}}, |
1159 | | }}, {{ |
1160 | | 65535, 65535 |
1161 | | }}, {{ |
1162 | | // optional uint32 high_tag_num = 1; |
1163 | | {PROTOBUF_FIELD_OFFSET(TagNumber, _impl_.high_tag_num_), _Internal::kHasBitsOffset + 0, 0, |
1164 | | (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, |
1165 | | // required .asn1_pdu.LowTagNumber low_tag_num = 2; |
1166 | | {PROTOBUF_FIELD_OFFSET(TagNumber, _impl_.low_tag_num_), _Internal::kHasBitsOffset + 1, 0, |
1167 | | (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, |
1168 | | }}, {{ |
1169 | | {0, 31}, |
1170 | | }}, {{ |
1171 | | }}, |
1172 | | }; |
1173 | | |
1174 | 15.6k | PROTOBUF_NOINLINE void TagNumber::Clear() { |
1175 | | // @@protoc_insertion_point(message_clear_start:asn1_pdu.TagNumber) |
1176 | 15.6k | ::google::protobuf::internal::TSanWrite(&_impl_); |
1177 | 15.6k | ::uint32_t cached_has_bits = 0; |
1178 | | // Prevent compiler warnings about cached_has_bits being unused |
1179 | 15.6k | (void) cached_has_bits; |
1180 | | |
1181 | 15.6k | cached_has_bits = _impl_._has_bits_[0]; |
1182 | 15.6k | if (cached_has_bits & 0x00000003u) { |
1183 | 3.17k | ::memset(&_impl_.high_tag_num_, 0, static_cast<::size_t>( |
1184 | 3.17k | reinterpret_cast<char*>(&_impl_.low_tag_num_) - |
1185 | 3.17k | reinterpret_cast<char*>(&_impl_.high_tag_num_)) + sizeof(_impl_.low_tag_num_)); |
1186 | 3.17k | } |
1187 | 15.6k | _impl_._has_bits_.Clear(); |
1188 | 15.6k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
1189 | 15.6k | } |
1190 | | |
1191 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1192 | | ::uint8_t* TagNumber::_InternalSerialize( |
1193 | | const MessageLite& base, ::uint8_t* target, |
1194 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
1195 | | const TagNumber& this_ = static_cast<const TagNumber&>(base); |
1196 | | #else // PROTOBUF_CUSTOM_VTABLE |
1197 | | ::uint8_t* TagNumber::_InternalSerialize( |
1198 | | ::uint8_t* target, |
1199 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1200 | 0 | const TagNumber& this_ = *this; |
1201 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1202 | | // @@protoc_insertion_point(serialize_to_array_start:asn1_pdu.TagNumber) |
1203 | 0 | ::uint32_t cached_has_bits = 0; |
1204 | 0 | (void)cached_has_bits; |
1205 | |
|
1206 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
1207 | | // optional uint32 high_tag_num = 1; |
1208 | 0 | if (cached_has_bits & 0x00000001u) { |
1209 | 0 | target = stream->EnsureSpace(target); |
1210 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
1211 | 0 | 1, this_._internal_high_tag_num(), target); |
1212 | 0 | } |
1213 | | |
1214 | | // required .asn1_pdu.LowTagNumber low_tag_num = 2; |
1215 | 0 | if (cached_has_bits & 0x00000002u) { |
1216 | 0 | target = stream->EnsureSpace(target); |
1217 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
1218 | 0 | 2, this_._internal_low_tag_num(), target); |
1219 | 0 | } |
1220 | |
|
1221 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
1222 | 0 | target = |
1223 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1224 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
1225 | 0 | } |
1226 | | // @@protoc_insertion_point(serialize_to_array_end:asn1_pdu.TagNumber) |
1227 | 0 | return target; |
1228 | 0 | } |
1229 | | |
1230 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1231 | | ::size_t TagNumber::ByteSizeLong(const MessageLite& base) { |
1232 | | const TagNumber& this_ = static_cast<const TagNumber&>(base); |
1233 | | #else // PROTOBUF_CUSTOM_VTABLE |
1234 | 0 | ::size_t TagNumber::ByteSizeLong() const { |
1235 | 0 | const TagNumber& this_ = *this; |
1236 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1237 | | // @@protoc_insertion_point(message_byte_size_start:asn1_pdu.TagNumber) |
1238 | 0 | ::size_t total_size = 0; |
1239 | |
|
1240 | 0 | ::uint32_t cached_has_bits = 0; |
1241 | | // Prevent compiler warnings about cached_has_bits being unused |
1242 | 0 | (void)cached_has_bits; |
1243 | |
|
1244 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
1245 | 0 | { |
1246 | | // optional uint32 high_tag_num = 1; |
1247 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
1248 | 0 | if (cached_has_bits & 0x00000001u) { |
1249 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
1250 | 0 | this_._internal_high_tag_num()); |
1251 | 0 | } |
1252 | 0 | } |
1253 | 0 | { |
1254 | | // required .asn1_pdu.LowTagNumber low_tag_num = 2; |
1255 | 0 | if (cached_has_bits & 0x00000002u) { |
1256 | 0 | total_size += 1 + |
1257 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_low_tag_num()); |
1258 | 0 | } |
1259 | 0 | } |
1260 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
1261 | 0 | &this_._impl_._cached_size_); |
1262 | 0 | } |
1263 | | |
1264 | 5.71k | void TagNumber::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
1265 | 5.71k | auto* const _this = static_cast<TagNumber*>(&to_msg); |
1266 | 5.71k | auto& from = static_cast<const TagNumber&>(from_msg); |
1267 | | // @@protoc_insertion_point(class_specific_merge_from_start:asn1_pdu.TagNumber) |
1268 | 5.71k | ABSL_DCHECK_NE(&from, _this); |
1269 | 5.71k | ::uint32_t cached_has_bits = 0; |
1270 | 5.71k | (void) cached_has_bits; |
1271 | | |
1272 | 5.71k | cached_has_bits = from._impl_._has_bits_[0]; |
1273 | 5.71k | if (cached_has_bits & 0x00000003u) { |
1274 | 0 | if (cached_has_bits & 0x00000001u) { |
1275 | 0 | _this->_impl_.high_tag_num_ = from._impl_.high_tag_num_; |
1276 | 0 | } |
1277 | 0 | if (cached_has_bits & 0x00000002u) { |
1278 | 0 | _this->_impl_.low_tag_num_ = from._impl_.low_tag_num_; |
1279 | 0 | } |
1280 | 0 | } |
1281 | 5.71k | _this->_impl_._has_bits_[0] |= cached_has_bits; |
1282 | 5.71k | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
1283 | 5.71k | } |
1284 | | |
1285 | 0 | void TagNumber::CopyFrom(const TagNumber& from) { |
1286 | | // @@protoc_insertion_point(class_specific_copy_from_start:asn1_pdu.TagNumber) |
1287 | 0 | if (&from == this) return; |
1288 | 0 | Clear(); |
1289 | 0 | MergeFrom(from); |
1290 | 0 | } |
1291 | | |
1292 | | PROTOBUF_NOINLINE bool TagNumber::IsInitializedImpl( |
1293 | 0 | const MessageLite& msg) { |
1294 | 0 | auto& this_ = static_cast<const TagNumber&>(msg); |
1295 | 0 | if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { |
1296 | 0 | return false; |
1297 | 0 | } |
1298 | 0 | return true; |
1299 | 0 | } |
1300 | | |
1301 | 0 | void TagNumber::InternalSwap(TagNumber* PROTOBUF_RESTRICT other) { |
1302 | 0 | using std::swap; |
1303 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1304 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
1305 | 0 | ::google::protobuf::internal::memswap< |
1306 | 0 | PROTOBUF_FIELD_OFFSET(TagNumber, _impl_.low_tag_num_) |
1307 | 0 | + sizeof(TagNumber::_impl_.low_tag_num_) |
1308 | 0 | - PROTOBUF_FIELD_OFFSET(TagNumber, _impl_.high_tag_num_)>( |
1309 | 0 | reinterpret_cast<char*>(&_impl_.high_tag_num_), |
1310 | 0 | reinterpret_cast<char*>(&other->_impl_.high_tag_num_)); |
1311 | 0 | } |
1312 | | |
1313 | 0 | ::google::protobuf::Metadata TagNumber::GetMetadata() const { |
1314 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
1315 | 0 | } |
1316 | | // =================================================================== |
1317 | | |
1318 | | class Length::_Internal { |
1319 | | public: |
1320 | | static constexpr ::int32_t kOneofCaseOffset = |
1321 | | PROTOBUF_FIELD_OFFSET(::asn1_pdu::Length, _impl_._oneof_case_); |
1322 | | }; |
1323 | | |
1324 | | Length::Length(::google::protobuf::Arena* arena) |
1325 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1326 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1327 | | #else // PROTOBUF_CUSTOM_VTABLE |
1328 | 74.2k | : ::google::protobuf::Message(arena) { |
1329 | 74.2k | #endif // PROTOBUF_CUSTOM_VTABLE |
1330 | 74.2k | SharedCtor(arena); |
1331 | | // @@protoc_insertion_point(arena_constructor:asn1_pdu.Length) |
1332 | 74.2k | } |
1333 | | inline PROTOBUF_NDEBUG_INLINE Length::Impl_::Impl_( |
1334 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
1335 | | const Impl_& from, const ::asn1_pdu::Length& from_msg) |
1336 | 0 | : types_{}, |
1337 | 0 | _cached_size_{0}, |
1338 | 0 | _oneof_case_{from._oneof_case_[0]} {} |
1339 | | |
1340 | | Length::Length( |
1341 | | ::google::protobuf::Arena* arena, |
1342 | | const Length& from) |
1343 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1344 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1345 | | #else // PROTOBUF_CUSTOM_VTABLE |
1346 | 0 | : ::google::protobuf::Message(arena) { |
1347 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1348 | 0 | Length* const _this = this; |
1349 | 0 | (void)_this; |
1350 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
1351 | 0 | from._internal_metadata_); |
1352 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
1353 | 0 | switch (types_case()) { |
1354 | 0 | case TYPES_NOT_SET: |
1355 | 0 | break; |
1356 | 0 | case kIndefiniteForm: |
1357 | 0 | _impl_.types_.indefinite_form_ = from._impl_.types_.indefinite_form_; |
1358 | 0 | break; |
1359 | 0 | case kLengthOverride: |
1360 | 0 | new (&_impl_.types_.length_override_) decltype(_impl_.types_.length_override_){arena, from._impl_.types_.length_override_}; |
1361 | 0 | break; |
1362 | 0 | } |
1363 | | |
1364 | | // @@protoc_insertion_point(copy_constructor:asn1_pdu.Length) |
1365 | 0 | } |
1366 | | inline PROTOBUF_NDEBUG_INLINE Length::Impl_::Impl_( |
1367 | | ::google::protobuf::internal::InternalVisibility visibility, |
1368 | | ::google::protobuf::Arena* arena) |
1369 | 74.2k | : types_{}, |
1370 | 74.2k | _cached_size_{0}, |
1371 | 74.2k | _oneof_case_{} {} |
1372 | | |
1373 | 74.2k | inline void Length::SharedCtor(::_pb::Arena* arena) { |
1374 | 74.2k | new (&_impl_) Impl_(internal_visibility(), arena); |
1375 | 74.2k | } |
1376 | 74.2k | Length::~Length() { |
1377 | | // @@protoc_insertion_point(destructor:asn1_pdu.Length) |
1378 | 74.2k | SharedDtor(*this); |
1379 | 74.2k | } |
1380 | 74.2k | inline void Length::SharedDtor(MessageLite& self) { |
1381 | 74.2k | Length& this_ = static_cast<Length&>(self); |
1382 | 74.2k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
1383 | 74.2k | ABSL_DCHECK(this_.GetArena() == nullptr); |
1384 | 74.2k | if (this_.has_types()) { |
1385 | 13.9k | this_.clear_types(); |
1386 | 13.9k | } |
1387 | 74.2k | this_._impl_.~Impl_(); |
1388 | 74.2k | } |
1389 | | |
1390 | 29.8k | void Length::clear_types() { |
1391 | | // @@protoc_insertion_point(one_of_clear_start:asn1_pdu.Length) |
1392 | 29.8k | ::google::protobuf::internal::TSanWrite(&_impl_); |
1393 | 29.8k | switch (types_case()) { |
1394 | 6.57k | case kIndefiniteForm: { |
1395 | | // No need to clear |
1396 | 6.57k | break; |
1397 | 0 | } |
1398 | 10.7k | case kLengthOverride: { |
1399 | 10.7k | _impl_.types_.length_override_.Destroy(); |
1400 | 10.7k | break; |
1401 | 0 | } |
1402 | 12.5k | case TYPES_NOT_SET: { |
1403 | 12.5k | break; |
1404 | 0 | } |
1405 | 29.8k | } |
1406 | 29.8k | _impl_._oneof_case_[0] = TYPES_NOT_SET; |
1407 | 29.8k | } |
1408 | | |
1409 | | |
1410 | | inline void* Length::PlacementNew_(const void*, void* mem, |
1411 | 74.2k | ::google::protobuf::Arena* arena) { |
1412 | 74.2k | return ::new (mem) Length(arena); |
1413 | 74.2k | } |
1414 | 0 | constexpr auto Length::InternalNewImpl_() { |
1415 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Length), |
1416 | 0 | alignof(Length)); |
1417 | 0 | } |
1418 | | PROTOBUF_CONSTINIT |
1419 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1420 | | const ::google::protobuf::internal::ClassDataFull Length::_class_data_ = { |
1421 | | ::google::protobuf::internal::ClassData{ |
1422 | | &_Length_default_instance_._instance, |
1423 | | &_table_.header, |
1424 | | nullptr, // OnDemandRegisterArenaDtor |
1425 | | nullptr, // IsInitialized |
1426 | | &Length::MergeImpl, |
1427 | | ::google::protobuf::Message::GetNewImpl<Length>(), |
1428 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1429 | | &Length::SharedDtor, |
1430 | | ::google::protobuf::Message::GetClearImpl<Length>(), &Length::ByteSizeLong, |
1431 | | &Length::_InternalSerialize, |
1432 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1433 | | PROTOBUF_FIELD_OFFSET(Length, _impl_._cached_size_), |
1434 | | false, |
1435 | | }, |
1436 | | &Length::kDescriptorMethods, |
1437 | | &descriptor_table_asn1_5fpdu_2eproto, |
1438 | | nullptr, // tracker |
1439 | | }; |
1440 | 501k | const ::google::protobuf::internal::ClassData* Length::GetClassData() const { |
1441 | 501k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
1442 | 501k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
1443 | 501k | return _class_data_.base(); |
1444 | 501k | } |
1445 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1446 | | const ::_pbi::TcParseTable<0, 2, 0, 0, 2> Length::_table_ = { |
1447 | | { |
1448 | | 0, // no _has_bits_ |
1449 | | 0, // no _extensions_ |
1450 | | 2, 0, // max_field_number, fast_idx_mask |
1451 | | offsetof(decltype(_table_), field_lookup_table), |
1452 | | 4294967292, // skipmap |
1453 | | offsetof(decltype(_table_), field_entries), |
1454 | | 2, // num_field_entries |
1455 | | 0, // num_aux_entries |
1456 | | offsetof(decltype(_table_), field_names), // no aux_entries |
1457 | | _class_data_.base(), |
1458 | | nullptr, // post_loop_handler |
1459 | | ::_pbi::TcParser::GenericFallback, // fallback |
1460 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
1461 | | ::_pbi::TcParser::GetTable<::asn1_pdu::Length>(), // to_prefetch |
1462 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
1463 | | }, {{ |
1464 | | {::_pbi::TcParser::MiniParse, {}}, |
1465 | | }}, {{ |
1466 | | 65535, 65535 |
1467 | | }}, {{ |
1468 | | // bool indefinite_form = 1; |
1469 | | {PROTOBUF_FIELD_OFFSET(Length, _impl_.types_.indefinite_form_), _Internal::kOneofCaseOffset + 0, 0, |
1470 | | (0 | ::_fl::kFcOneof | ::_fl::kBool)}, |
1471 | | // bytes length_override = 2; |
1472 | | {PROTOBUF_FIELD_OFFSET(Length, _impl_.types_.length_override_), _Internal::kOneofCaseOffset + 0, 0, |
1473 | | (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)}, |
1474 | | }}, |
1475 | | // no aux_entries |
1476 | | {{ |
1477 | | }}, |
1478 | | }; |
1479 | | |
1480 | 15.9k | PROTOBUF_NOINLINE void Length::Clear() { |
1481 | | // @@protoc_insertion_point(message_clear_start:asn1_pdu.Length) |
1482 | 15.9k | ::google::protobuf::internal::TSanWrite(&_impl_); |
1483 | 15.9k | ::uint32_t cached_has_bits = 0; |
1484 | | // Prevent compiler warnings about cached_has_bits being unused |
1485 | 15.9k | (void) cached_has_bits; |
1486 | | |
1487 | 15.9k | clear_types(); |
1488 | 15.9k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
1489 | 15.9k | } |
1490 | | |
1491 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1492 | | ::uint8_t* Length::_InternalSerialize( |
1493 | | const MessageLite& base, ::uint8_t* target, |
1494 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
1495 | | const Length& this_ = static_cast<const Length&>(base); |
1496 | | #else // PROTOBUF_CUSTOM_VTABLE |
1497 | | ::uint8_t* Length::_InternalSerialize( |
1498 | | ::uint8_t* target, |
1499 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1500 | 0 | const Length& this_ = *this; |
1501 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1502 | | // @@protoc_insertion_point(serialize_to_array_start:asn1_pdu.Length) |
1503 | 0 | ::uint32_t cached_has_bits = 0; |
1504 | 0 | (void)cached_has_bits; |
1505 | |
|
1506 | 0 | switch (this_.types_case()) { |
1507 | 0 | case kIndefiniteForm: { |
1508 | 0 | target = stream->EnsureSpace(target); |
1509 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray( |
1510 | 0 | 1, this_._internal_indefinite_form(), target); |
1511 | 0 | break; |
1512 | 0 | } |
1513 | 0 | case kLengthOverride: { |
1514 | 0 | const std::string& _s = this_._internal_length_override(); |
1515 | 0 | target = stream->WriteBytesMaybeAliased(2, _s, target); |
1516 | 0 | break; |
1517 | 0 | } |
1518 | 0 | default: |
1519 | 0 | break; |
1520 | 0 | } |
1521 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
1522 | 0 | target = |
1523 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1524 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
1525 | 0 | } |
1526 | | // @@protoc_insertion_point(serialize_to_array_end:asn1_pdu.Length) |
1527 | 0 | return target; |
1528 | 0 | } |
1529 | | |
1530 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1531 | | ::size_t Length::ByteSizeLong(const MessageLite& base) { |
1532 | | const Length& this_ = static_cast<const Length&>(base); |
1533 | | #else // PROTOBUF_CUSTOM_VTABLE |
1534 | 0 | ::size_t Length::ByteSizeLong() const { |
1535 | 0 | const Length& this_ = *this; |
1536 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1537 | | // @@protoc_insertion_point(message_byte_size_start:asn1_pdu.Length) |
1538 | 0 | ::size_t total_size = 0; |
1539 | |
|
1540 | 0 | ::uint32_t cached_has_bits = 0; |
1541 | | // Prevent compiler warnings about cached_has_bits being unused |
1542 | 0 | (void)cached_has_bits; |
1543 | |
|
1544 | 0 | switch (this_.types_case()) { |
1545 | | // bool indefinite_form = 1; |
1546 | 0 | case kIndefiniteForm: { |
1547 | 0 | total_size += 2; |
1548 | 0 | break; |
1549 | 0 | } |
1550 | | // bytes length_override = 2; |
1551 | 0 | case kLengthOverride: { |
1552 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
1553 | 0 | this_._internal_length_override()); |
1554 | 0 | break; |
1555 | 0 | } |
1556 | 0 | case TYPES_NOT_SET: { |
1557 | 0 | break; |
1558 | 0 | } |
1559 | 0 | } |
1560 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
1561 | 0 | &this_._impl_._cached_size_); |
1562 | 0 | } |
1563 | | |
1564 | 4.39k | void Length::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
1565 | 4.39k | auto* const _this = static_cast<Length*>(&to_msg); |
1566 | 4.39k | auto& from = static_cast<const Length&>(from_msg); |
1567 | 4.39k | ::google::protobuf::Arena* arena = _this->GetArena(); |
1568 | | // @@protoc_insertion_point(class_specific_merge_from_start:asn1_pdu.Length) |
1569 | 4.39k | ABSL_DCHECK_NE(&from, _this); |
1570 | 4.39k | ::uint32_t cached_has_bits = 0; |
1571 | 4.39k | (void) cached_has_bits; |
1572 | | |
1573 | 4.39k | if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { |
1574 | 0 | const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; |
1575 | 0 | const bool oneof_needs_init = oneof_to_case != oneof_from_case; |
1576 | 0 | if (oneof_needs_init) { |
1577 | 0 | if (oneof_to_case != 0) { |
1578 | 0 | _this->clear_types(); |
1579 | 0 | } |
1580 | 0 | _this->_impl_._oneof_case_[0] = oneof_from_case; |
1581 | 0 | } |
1582 | |
|
1583 | 0 | switch (oneof_from_case) { |
1584 | 0 | case kIndefiniteForm: { |
1585 | 0 | _this->_impl_.types_.indefinite_form_ = from._impl_.types_.indefinite_form_; |
1586 | 0 | break; |
1587 | 0 | } |
1588 | 0 | case kLengthOverride: { |
1589 | 0 | if (oneof_needs_init) { |
1590 | 0 | _this->_impl_.types_.length_override_.InitDefault(); |
1591 | 0 | } |
1592 | 0 | _this->_impl_.types_.length_override_.Set(from._internal_length_override(), arena); |
1593 | 0 | break; |
1594 | 0 | } |
1595 | 0 | case TYPES_NOT_SET: |
1596 | 0 | break; |
1597 | 0 | } |
1598 | 0 | } |
1599 | 4.39k | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
1600 | 4.39k | } |
1601 | | |
1602 | 0 | void Length::CopyFrom(const Length& from) { |
1603 | | // @@protoc_insertion_point(class_specific_copy_from_start:asn1_pdu.Length) |
1604 | 0 | if (&from == this) return; |
1605 | 0 | Clear(); |
1606 | 0 | MergeFrom(from); |
1607 | 0 | } |
1608 | | |
1609 | | |
1610 | 0 | void Length::InternalSwap(Length* PROTOBUF_RESTRICT other) { |
1611 | 0 | using std::swap; |
1612 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1613 | 0 | swap(_impl_.types_, other->_impl_.types_); |
1614 | 0 | swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); |
1615 | 0 | } |
1616 | | |
1617 | 0 | ::google::protobuf::Metadata Length::GetMetadata() const { |
1618 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
1619 | 0 | } |
1620 | | // =================================================================== |
1621 | | |
1622 | | class ValueElement::_Internal { |
1623 | | public: |
1624 | | using HasBits = |
1625 | | decltype(std::declval<ValueElement>()._impl_._has_bits_); |
1626 | | static constexpr ::int32_t kHasBitsOffset = |
1627 | | 8 * PROTOBUF_FIELD_OFFSET(ValueElement, _impl_._has_bits_); |
1628 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
1629 | 0 | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
1630 | 0 | } |
1631 | | }; |
1632 | | |
1633 | | ValueElement::ValueElement(::google::protobuf::Arena* arena) |
1634 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1635 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1636 | | #else // PROTOBUF_CUSTOM_VTABLE |
1637 | 145k | : ::google::protobuf::Message(arena) { |
1638 | 145k | #endif // PROTOBUF_CUSTOM_VTABLE |
1639 | 145k | SharedCtor(arena); |
1640 | | // @@protoc_insertion_point(arena_constructor:asn1_pdu.ValueElement) |
1641 | 145k | } |
1642 | | inline PROTOBUF_NDEBUG_INLINE ValueElement::Impl_::Impl_( |
1643 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
1644 | | const Impl_& from, const ::asn1_pdu::ValueElement& from_msg) |
1645 | 0 | : _has_bits_{from._has_bits_}, |
1646 | 0 | _cached_size_{0}, |
1647 | 0 | val_bits_(arena, from.val_bits_) {} |
1648 | | |
1649 | | ValueElement::ValueElement( |
1650 | | ::google::protobuf::Arena* arena, |
1651 | | const ValueElement& from) |
1652 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1653 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1654 | | #else // PROTOBUF_CUSTOM_VTABLE |
1655 | 0 | : ::google::protobuf::Message(arena) { |
1656 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1657 | 0 | ValueElement* const _this = this; |
1658 | 0 | (void)_this; |
1659 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
1660 | 0 | from._internal_metadata_); |
1661 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
1662 | 0 | ::uint32_t cached_has_bits = _impl_._has_bits_[0]; |
1663 | 0 | _impl_.pdu_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::asn1_pdu::PDU>( |
1664 | 0 | arena, *from._impl_.pdu_) |
1665 | 0 | : nullptr; |
1666 | | |
1667 | | // @@protoc_insertion_point(copy_constructor:asn1_pdu.ValueElement) |
1668 | 0 | } |
1669 | | inline PROTOBUF_NDEBUG_INLINE ValueElement::Impl_::Impl_( |
1670 | | ::google::protobuf::internal::InternalVisibility visibility, |
1671 | | ::google::protobuf::Arena* arena) |
1672 | 145k | : _cached_size_{0}, |
1673 | 145k | val_bits_(arena) {} |
1674 | | |
1675 | 145k | inline void ValueElement::SharedCtor(::_pb::Arena* arena) { |
1676 | 145k | new (&_impl_) Impl_(internal_visibility(), arena); |
1677 | 145k | _impl_.pdu_ = {}; |
1678 | 145k | } |
1679 | 145k | ValueElement::~ValueElement() { |
1680 | | // @@protoc_insertion_point(destructor:asn1_pdu.ValueElement) |
1681 | 145k | SharedDtor(*this); |
1682 | 145k | } |
1683 | 145k | inline void ValueElement::SharedDtor(MessageLite& self) { |
1684 | 145k | ValueElement& this_ = static_cast<ValueElement&>(self); |
1685 | 145k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
1686 | 145k | ABSL_DCHECK(this_.GetArena() == nullptr); |
1687 | 145k | this_._impl_.val_bits_.Destroy(); |
1688 | 145k | delete this_._impl_.pdu_; |
1689 | 145k | this_._impl_.~Impl_(); |
1690 | 145k | } |
1691 | | |
1692 | | inline void* ValueElement::PlacementNew_(const void*, void* mem, |
1693 | 145k | ::google::protobuf::Arena* arena) { |
1694 | 145k | return ::new (mem) ValueElement(arena); |
1695 | 145k | } |
1696 | 0 | constexpr auto ValueElement::InternalNewImpl_() { |
1697 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ValueElement), |
1698 | 0 | alignof(ValueElement)); |
1699 | 0 | } |
1700 | | PROTOBUF_CONSTINIT |
1701 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1702 | | const ::google::protobuf::internal::ClassDataFull ValueElement::_class_data_ = { |
1703 | | ::google::protobuf::internal::ClassData{ |
1704 | | &_ValueElement_default_instance_._instance, |
1705 | | &_table_.header, |
1706 | | nullptr, // OnDemandRegisterArenaDtor |
1707 | | ValueElement::IsInitializedImpl, |
1708 | | &ValueElement::MergeImpl, |
1709 | | ::google::protobuf::Message::GetNewImpl<ValueElement>(), |
1710 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1711 | | &ValueElement::SharedDtor, |
1712 | | ::google::protobuf::Message::GetClearImpl<ValueElement>(), &ValueElement::ByteSizeLong, |
1713 | | &ValueElement::_InternalSerialize, |
1714 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1715 | | PROTOBUF_FIELD_OFFSET(ValueElement, _impl_._cached_size_), |
1716 | | false, |
1717 | | }, |
1718 | | &ValueElement::kDescriptorMethods, |
1719 | | &descriptor_table_asn1_5fpdu_2eproto, |
1720 | | nullptr, // tracker |
1721 | | }; |
1722 | 1.47M | const ::google::protobuf::internal::ClassData* ValueElement::GetClassData() const { |
1723 | 1.47M | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
1724 | 1.47M | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
1725 | 1.47M | return _class_data_.base(); |
1726 | 1.47M | } |
1727 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1728 | | const ::_pbi::TcParseTable<1, 2, 1, 0, 2> ValueElement::_table_ = { |
1729 | | { |
1730 | | PROTOBUF_FIELD_OFFSET(ValueElement, _impl_._has_bits_), |
1731 | | 0, // no _extensions_ |
1732 | | 2, 8, // max_field_number, fast_idx_mask |
1733 | | offsetof(decltype(_table_), field_lookup_table), |
1734 | | 4294967292, // skipmap |
1735 | | offsetof(decltype(_table_), field_entries), |
1736 | | 2, // num_field_entries |
1737 | | 1, // num_aux_entries |
1738 | | offsetof(decltype(_table_), aux_entries), |
1739 | | _class_data_.base(), |
1740 | | nullptr, // post_loop_handler |
1741 | | ::_pbi::TcParser::GenericFallback, // fallback |
1742 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
1743 | | ::_pbi::TcParser::GetTable<::asn1_pdu::ValueElement>(), // to_prefetch |
1744 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
1745 | | }, {{ |
1746 | | // required bytes val_bits = 2; |
1747 | | {::_pbi::TcParser::FastBS1, |
1748 | | {18, 0, 0, PROTOBUF_FIELD_OFFSET(ValueElement, _impl_.val_bits_)}}, |
1749 | | // optional .asn1_pdu.PDU pdu = 1; |
1750 | | {::_pbi::TcParser::FastMtS1, |
1751 | | {10, 1, 0, PROTOBUF_FIELD_OFFSET(ValueElement, _impl_.pdu_)}}, |
1752 | | }}, {{ |
1753 | | 65535, 65535 |
1754 | | }}, {{ |
1755 | | // optional .asn1_pdu.PDU pdu = 1; |
1756 | | {PROTOBUF_FIELD_OFFSET(ValueElement, _impl_.pdu_), _Internal::kHasBitsOffset + 1, 0, |
1757 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
1758 | | // required bytes val_bits = 2; |
1759 | | {PROTOBUF_FIELD_OFFSET(ValueElement, _impl_.val_bits_), _Internal::kHasBitsOffset + 0, 0, |
1760 | | (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, |
1761 | | }}, {{ |
1762 | | {::_pbi::TcParser::GetTable<::asn1_pdu::PDU>()}, |
1763 | | }}, {{ |
1764 | | }}, |
1765 | | }; |
1766 | | |
1767 | 19.5k | PROTOBUF_NOINLINE void ValueElement::Clear() { |
1768 | | // @@protoc_insertion_point(message_clear_start:asn1_pdu.ValueElement) |
1769 | 19.5k | ::google::protobuf::internal::TSanWrite(&_impl_); |
1770 | 19.5k | ::uint32_t cached_has_bits = 0; |
1771 | | // Prevent compiler warnings about cached_has_bits being unused |
1772 | 19.5k | (void) cached_has_bits; |
1773 | | |
1774 | 19.5k | cached_has_bits = _impl_._has_bits_[0]; |
1775 | 19.5k | if (cached_has_bits & 0x00000003u) { |
1776 | 17.7k | if (cached_has_bits & 0x00000001u) { |
1777 | 5.46k | _impl_.val_bits_.ClearNonDefaultToEmpty(); |
1778 | 5.46k | } |
1779 | 17.7k | if (cached_has_bits & 0x00000002u) { |
1780 | 14.3k | ABSL_DCHECK(_impl_.pdu_ != nullptr); |
1781 | 14.3k | _impl_.pdu_->Clear(); |
1782 | 14.3k | } |
1783 | 17.7k | } |
1784 | 19.5k | _impl_._has_bits_.Clear(); |
1785 | 19.5k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
1786 | 19.5k | } |
1787 | | |
1788 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1789 | | ::uint8_t* ValueElement::_InternalSerialize( |
1790 | | const MessageLite& base, ::uint8_t* target, |
1791 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
1792 | | const ValueElement& this_ = static_cast<const ValueElement&>(base); |
1793 | | #else // PROTOBUF_CUSTOM_VTABLE |
1794 | | ::uint8_t* ValueElement::_InternalSerialize( |
1795 | | ::uint8_t* target, |
1796 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1797 | 0 | const ValueElement& this_ = *this; |
1798 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1799 | | // @@protoc_insertion_point(serialize_to_array_start:asn1_pdu.ValueElement) |
1800 | 0 | ::uint32_t cached_has_bits = 0; |
1801 | 0 | (void)cached_has_bits; |
1802 | |
|
1803 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
1804 | | // optional .asn1_pdu.PDU pdu = 1; |
1805 | 0 | if (cached_has_bits & 0x00000002u) { |
1806 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
1807 | 0 | 1, *this_._impl_.pdu_, this_._impl_.pdu_->GetCachedSize(), target, |
1808 | 0 | stream); |
1809 | 0 | } |
1810 | | |
1811 | | // required bytes val_bits = 2; |
1812 | 0 | if (cached_has_bits & 0x00000001u) { |
1813 | 0 | const std::string& _s = this_._internal_val_bits(); |
1814 | 0 | target = stream->WriteBytesMaybeAliased(2, _s, target); |
1815 | 0 | } |
1816 | |
|
1817 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
1818 | 0 | target = |
1819 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1820 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
1821 | 0 | } |
1822 | | // @@protoc_insertion_point(serialize_to_array_end:asn1_pdu.ValueElement) |
1823 | 0 | return target; |
1824 | 0 | } |
1825 | | |
1826 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1827 | | ::size_t ValueElement::ByteSizeLong(const MessageLite& base) { |
1828 | | const ValueElement& this_ = static_cast<const ValueElement&>(base); |
1829 | | #else // PROTOBUF_CUSTOM_VTABLE |
1830 | 0 | ::size_t ValueElement::ByteSizeLong() const { |
1831 | 0 | const ValueElement& this_ = *this; |
1832 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1833 | | // @@protoc_insertion_point(message_byte_size_start:asn1_pdu.ValueElement) |
1834 | 0 | ::size_t total_size = 0; |
1835 | |
|
1836 | 0 | ::uint32_t cached_has_bits = 0; |
1837 | | // Prevent compiler warnings about cached_has_bits being unused |
1838 | 0 | (void)cached_has_bits; |
1839 | |
|
1840 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
1841 | 0 | { |
1842 | | // required bytes val_bits = 2; |
1843 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
1844 | 0 | if (cached_has_bits & 0x00000001u) { |
1845 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
1846 | 0 | this_._internal_val_bits()); |
1847 | 0 | } |
1848 | 0 | } |
1849 | 0 | { |
1850 | | // optional .asn1_pdu.PDU pdu = 1; |
1851 | 0 | if (cached_has_bits & 0x00000002u) { |
1852 | 0 | total_size += 1 + |
1853 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.pdu_); |
1854 | 0 | } |
1855 | 0 | } |
1856 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
1857 | 0 | &this_._impl_._cached_size_); |
1858 | 0 | } |
1859 | | |
1860 | 0 | void ValueElement::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
1861 | 0 | auto* const _this = static_cast<ValueElement*>(&to_msg); |
1862 | 0 | auto& from = static_cast<const ValueElement&>(from_msg); |
1863 | 0 | ::google::protobuf::Arena* arena = _this->GetArena(); |
1864 | | // @@protoc_insertion_point(class_specific_merge_from_start:asn1_pdu.ValueElement) |
1865 | 0 | ABSL_DCHECK_NE(&from, _this); |
1866 | 0 | ::uint32_t cached_has_bits = 0; |
1867 | 0 | (void) cached_has_bits; |
1868 | |
|
1869 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
1870 | 0 | if (cached_has_bits & 0x00000003u) { |
1871 | 0 | if (cached_has_bits & 0x00000001u) { |
1872 | 0 | _this->_internal_set_val_bits(from._internal_val_bits()); |
1873 | 0 | } |
1874 | 0 | if (cached_has_bits & 0x00000002u) { |
1875 | 0 | ABSL_DCHECK(from._impl_.pdu_ != nullptr); |
1876 | 0 | if (_this->_impl_.pdu_ == nullptr) { |
1877 | 0 | _this->_impl_.pdu_ = |
1878 | 0 | ::google::protobuf::Message::CopyConstruct<::asn1_pdu::PDU>(arena, *from._impl_.pdu_); |
1879 | 0 | } else { |
1880 | 0 | _this->_impl_.pdu_->MergeFrom(*from._impl_.pdu_); |
1881 | 0 | } |
1882 | 0 | } |
1883 | 0 | } |
1884 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
1885 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
1886 | 0 | } |
1887 | | |
1888 | 0 | void ValueElement::CopyFrom(const ValueElement& from) { |
1889 | | // @@protoc_insertion_point(class_specific_copy_from_start:asn1_pdu.ValueElement) |
1890 | 0 | if (&from == this) return; |
1891 | 0 | Clear(); |
1892 | 0 | MergeFrom(from); |
1893 | 0 | } |
1894 | | |
1895 | | PROTOBUF_NOINLINE bool ValueElement::IsInitializedImpl( |
1896 | 0 | const MessageLite& msg) { |
1897 | 0 | auto& this_ = static_cast<const ValueElement&>(msg); |
1898 | 0 | if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { |
1899 | 0 | return false; |
1900 | 0 | } |
1901 | 0 | if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { |
1902 | 0 | if (!this_._impl_.pdu_->IsInitialized()) return false; |
1903 | 0 | } |
1904 | 0 | return true; |
1905 | 0 | } |
1906 | | |
1907 | 0 | void ValueElement::InternalSwap(ValueElement* PROTOBUF_RESTRICT other) { |
1908 | 0 | using std::swap; |
1909 | 0 | auto* arena = GetArena(); |
1910 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
1911 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1912 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
1913 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.val_bits_, &other->_impl_.val_bits_, arena); |
1914 | 0 | swap(_impl_.pdu_, other->_impl_.pdu_); |
1915 | 0 | } |
1916 | | |
1917 | 0 | ::google::protobuf::Metadata ValueElement::GetMetadata() const { |
1918 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
1919 | 0 | } |
1920 | | // =================================================================== |
1921 | | |
1922 | | class Value::_Internal { |
1923 | | public: |
1924 | | }; |
1925 | | |
1926 | | Value::Value(::google::protobuf::Arena* arena) |
1927 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1928 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1929 | | #else // PROTOBUF_CUSTOM_VTABLE |
1930 | 74.4k | : ::google::protobuf::Message(arena) { |
1931 | 74.4k | #endif // PROTOBUF_CUSTOM_VTABLE |
1932 | 74.4k | SharedCtor(arena); |
1933 | | // @@protoc_insertion_point(arena_constructor:asn1_pdu.Value) |
1934 | 74.4k | } |
1935 | | inline PROTOBUF_NDEBUG_INLINE Value::Impl_::Impl_( |
1936 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
1937 | | const Impl_& from, const ::asn1_pdu::Value& from_msg) |
1938 | 0 | : val_array_{visibility, arena, from.val_array_}, |
1939 | 0 | _cached_size_{0} {} |
1940 | | |
1941 | | Value::Value( |
1942 | | ::google::protobuf::Arena* arena, |
1943 | | const Value& from) |
1944 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1945 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1946 | | #else // PROTOBUF_CUSTOM_VTABLE |
1947 | 0 | : ::google::protobuf::Message(arena) { |
1948 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1949 | 0 | Value* const _this = this; |
1950 | 0 | (void)_this; |
1951 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
1952 | 0 | from._internal_metadata_); |
1953 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
1954 | | |
1955 | | // @@protoc_insertion_point(copy_constructor:asn1_pdu.Value) |
1956 | 0 | } |
1957 | | inline PROTOBUF_NDEBUG_INLINE Value::Impl_::Impl_( |
1958 | | ::google::protobuf::internal::InternalVisibility visibility, |
1959 | | ::google::protobuf::Arena* arena) |
1960 | 74.4k | : val_array_{visibility, arena}, |
1961 | 74.4k | _cached_size_{0} {} |
1962 | | |
1963 | 74.4k | inline void Value::SharedCtor(::_pb::Arena* arena) { |
1964 | 74.4k | new (&_impl_) Impl_(internal_visibility(), arena); |
1965 | 74.4k | } |
1966 | 74.4k | Value::~Value() { |
1967 | | // @@protoc_insertion_point(destructor:asn1_pdu.Value) |
1968 | 74.4k | SharedDtor(*this); |
1969 | 74.4k | } |
1970 | 74.4k | inline void Value::SharedDtor(MessageLite& self) { |
1971 | 74.4k | Value& this_ = static_cast<Value&>(self); |
1972 | 74.4k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
1973 | 74.4k | ABSL_DCHECK(this_.GetArena() == nullptr); |
1974 | 74.4k | this_._impl_.~Impl_(); |
1975 | 74.4k | } |
1976 | | |
1977 | | inline void* Value::PlacementNew_(const void*, void* mem, |
1978 | 74.4k | ::google::protobuf::Arena* arena) { |
1979 | 74.4k | return ::new (mem) Value(arena); |
1980 | 74.4k | } |
1981 | 0 | constexpr auto Value::InternalNewImpl_() { |
1982 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
1983 | 0 | PROTOBUF_FIELD_OFFSET(Value, _impl_.val_array_) + |
1984 | 0 | decltype(Value::_impl_.val_array_):: |
1985 | 0 | InternalGetArenaOffset( |
1986 | 0 | ::google::protobuf::Message::internal_visibility()), |
1987 | 0 | }); |
1988 | 0 | if (arena_bits.has_value()) { |
1989 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit( |
1990 | 0 | sizeof(Value), alignof(Value), *arena_bits); |
1991 | 0 | } else { |
1992 | 0 | return ::google::protobuf::internal::MessageCreator(&Value::PlacementNew_, |
1993 | 0 | sizeof(Value), |
1994 | 0 | alignof(Value)); |
1995 | 0 | } |
1996 | 0 | } |
1997 | | PROTOBUF_CONSTINIT |
1998 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1999 | | const ::google::protobuf::internal::ClassDataFull Value::_class_data_ = { |
2000 | | ::google::protobuf::internal::ClassData{ |
2001 | | &_Value_default_instance_._instance, |
2002 | | &_table_.header, |
2003 | | nullptr, // OnDemandRegisterArenaDtor |
2004 | | Value::IsInitializedImpl, |
2005 | | &Value::MergeImpl, |
2006 | | ::google::protobuf::Message::GetNewImpl<Value>(), |
2007 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2008 | | &Value::SharedDtor, |
2009 | | ::google::protobuf::Message::GetClearImpl<Value>(), &Value::ByteSizeLong, |
2010 | | &Value::_InternalSerialize, |
2011 | | #endif // PROTOBUF_CUSTOM_VTABLE |
2012 | | PROTOBUF_FIELD_OFFSET(Value, _impl_._cached_size_), |
2013 | | false, |
2014 | | }, |
2015 | | &Value::kDescriptorMethods, |
2016 | | &descriptor_table_asn1_5fpdu_2eproto, |
2017 | | nullptr, // tracker |
2018 | | }; |
2019 | 887k | const ::google::protobuf::internal::ClassData* Value::GetClassData() const { |
2020 | 887k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
2021 | 887k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
2022 | 887k | return _class_data_.base(); |
2023 | 887k | } |
2024 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2025 | | const ::_pbi::TcParseTable<0, 1, 1, 0, 2> Value::_table_ = { |
2026 | | { |
2027 | | 0, // no _has_bits_ |
2028 | | 0, // no _extensions_ |
2029 | | 1, 0, // max_field_number, fast_idx_mask |
2030 | | offsetof(decltype(_table_), field_lookup_table), |
2031 | | 4294967294, // skipmap |
2032 | | offsetof(decltype(_table_), field_entries), |
2033 | | 1, // num_field_entries |
2034 | | 1, // num_aux_entries |
2035 | | offsetof(decltype(_table_), aux_entries), |
2036 | | _class_data_.base(), |
2037 | | nullptr, // post_loop_handler |
2038 | | ::_pbi::TcParser::GenericFallback, // fallback |
2039 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
2040 | | ::_pbi::TcParser::GetTable<::asn1_pdu::Value>(), // to_prefetch |
2041 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
2042 | | }, {{ |
2043 | | // repeated .asn1_pdu.ValueElement val_array = 1; |
2044 | | {::_pbi::TcParser::FastMtR1, |
2045 | | {10, 63, 0, PROTOBUF_FIELD_OFFSET(Value, _impl_.val_array_)}}, |
2046 | | }}, {{ |
2047 | | 65535, 65535 |
2048 | | }}, {{ |
2049 | | // repeated .asn1_pdu.ValueElement val_array = 1; |
2050 | | {PROTOBUF_FIELD_OFFSET(Value, _impl_.val_array_), 0, 0, |
2051 | | (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
2052 | | }}, {{ |
2053 | | {::_pbi::TcParser::GetTable<::asn1_pdu::ValueElement>()}, |
2054 | | }}, {{ |
2055 | | }}, |
2056 | | }; |
2057 | | |
2058 | 16.1k | PROTOBUF_NOINLINE void Value::Clear() { |
2059 | | // @@protoc_insertion_point(message_clear_start:asn1_pdu.Value) |
2060 | 16.1k | ::google::protobuf::internal::TSanWrite(&_impl_); |
2061 | 16.1k | ::uint32_t cached_has_bits = 0; |
2062 | | // Prevent compiler warnings about cached_has_bits being unused |
2063 | 16.1k | (void) cached_has_bits; |
2064 | | |
2065 | 16.1k | _impl_.val_array_.Clear(); |
2066 | 16.1k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
2067 | 16.1k | } |
2068 | | |
2069 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2070 | | ::uint8_t* Value::_InternalSerialize( |
2071 | | const MessageLite& base, ::uint8_t* target, |
2072 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
2073 | | const Value& this_ = static_cast<const Value&>(base); |
2074 | | #else // PROTOBUF_CUSTOM_VTABLE |
2075 | | ::uint8_t* Value::_InternalSerialize( |
2076 | | ::uint8_t* target, |
2077 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
2078 | 0 | const Value& this_ = *this; |
2079 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2080 | | // @@protoc_insertion_point(serialize_to_array_start:asn1_pdu.Value) |
2081 | 0 | ::uint32_t cached_has_bits = 0; |
2082 | 0 | (void)cached_has_bits; |
2083 | | |
2084 | | // repeated .asn1_pdu.ValueElement val_array = 1; |
2085 | 0 | for (unsigned i = 0, n = static_cast<unsigned>( |
2086 | 0 | this_._internal_val_array_size()); |
2087 | 0 | i < n; i++) { |
2088 | 0 | const auto& repfield = this_._internal_val_array().Get(i); |
2089 | 0 | target = |
2090 | 0 | ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
2091 | 0 | 1, repfield, repfield.GetCachedSize(), |
2092 | 0 | target, stream); |
2093 | 0 | } |
2094 | |
|
2095 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
2096 | 0 | target = |
2097 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
2098 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
2099 | 0 | } |
2100 | | // @@protoc_insertion_point(serialize_to_array_end:asn1_pdu.Value) |
2101 | 0 | return target; |
2102 | 0 | } |
2103 | | |
2104 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2105 | | ::size_t Value::ByteSizeLong(const MessageLite& base) { |
2106 | | const Value& this_ = static_cast<const Value&>(base); |
2107 | | #else // PROTOBUF_CUSTOM_VTABLE |
2108 | 0 | ::size_t Value::ByteSizeLong() const { |
2109 | 0 | const Value& this_ = *this; |
2110 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2111 | | // @@protoc_insertion_point(message_byte_size_start:asn1_pdu.Value) |
2112 | 0 | ::size_t total_size = 0; |
2113 | |
|
2114 | 0 | ::uint32_t cached_has_bits = 0; |
2115 | | // Prevent compiler warnings about cached_has_bits being unused |
2116 | 0 | (void)cached_has_bits; |
2117 | |
|
2118 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
2119 | 0 | { |
2120 | | // repeated .asn1_pdu.ValueElement val_array = 1; |
2121 | 0 | { |
2122 | 0 | total_size += 1UL * this_._internal_val_array_size(); |
2123 | 0 | for (const auto& msg : this_._internal_val_array()) { |
2124 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); |
2125 | 0 | } |
2126 | 0 | } |
2127 | 0 | } |
2128 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
2129 | 0 | &this_._impl_._cached_size_); |
2130 | 0 | } |
2131 | | |
2132 | 4.32k | void Value::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
2133 | 4.32k | auto* const _this = static_cast<Value*>(&to_msg); |
2134 | 4.32k | auto& from = static_cast<const Value&>(from_msg); |
2135 | | // @@protoc_insertion_point(class_specific_merge_from_start:asn1_pdu.Value) |
2136 | 4.32k | ABSL_DCHECK_NE(&from, _this); |
2137 | 4.32k | ::uint32_t cached_has_bits = 0; |
2138 | 4.32k | (void) cached_has_bits; |
2139 | | |
2140 | 4.32k | _this->_internal_mutable_val_array()->MergeFrom( |
2141 | 4.32k | from._internal_val_array()); |
2142 | 4.32k | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
2143 | 4.32k | } |
2144 | | |
2145 | 0 | void Value::CopyFrom(const Value& from) { |
2146 | | // @@protoc_insertion_point(class_specific_copy_from_start:asn1_pdu.Value) |
2147 | 0 | if (&from == this) return; |
2148 | 0 | Clear(); |
2149 | 0 | MergeFrom(from); |
2150 | 0 | } |
2151 | | |
2152 | | PROTOBUF_NOINLINE bool Value::IsInitializedImpl( |
2153 | 0 | const MessageLite& msg) { |
2154 | 0 | auto& this_ = static_cast<const Value&>(msg); |
2155 | 0 | if (!::google::protobuf::internal::AllAreInitialized(this_._internal_val_array())) |
2156 | 0 | return false; |
2157 | 0 | return true; |
2158 | 0 | } |
2159 | | |
2160 | 0 | void Value::InternalSwap(Value* PROTOBUF_RESTRICT other) { |
2161 | 0 | using std::swap; |
2162 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
2163 | 0 | _impl_.val_array_.InternalSwap(&other->_impl_.val_array_); |
2164 | 0 | } |
2165 | | |
2166 | 0 | ::google::protobuf::Metadata Value::GetMetadata() const { |
2167 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
2168 | 0 | } |
2169 | | // @@protoc_insertion_point(namespace_scope) |
2170 | | } // namespace asn1_pdu |
2171 | | namespace google { |
2172 | | namespace protobuf { |
2173 | | } // namespace protobuf |
2174 | | } // namespace google |
2175 | | // @@protoc_insertion_point(global_scope) |
2176 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type |
2177 | | _static_init2_ PROTOBUF_UNUSED = |
2178 | | (::_pbi::AddDescriptors(&descriptor_table_asn1_5fpdu_2eproto), |
2179 | | ::std::false_type{}); |
2180 | | #include "google/protobuf/port_undef.inc" |