/src/genfiles/png_fuzz_proto.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: png_fuzz_proto.proto |
4 | | // Protobuf C++ Version: 5.29.3 |
5 | | |
6 | | #include "png_fuzz_proto.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 | | |
28 | | inline constexpr iCCP::Impl_::Impl_( |
29 | | ::_pbi::ConstantInitialized) noexcept |
30 | | : _cached_size_{0}, |
31 | | data_( |
32 | | &::google::protobuf::internal::fixed_address_empty_string, |
33 | | ::_pbi::ConstantInitialized()) {} |
34 | | |
35 | | template <typename> |
36 | | PROTOBUF_CONSTEXPR iCCP::iCCP(::_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 iCCPDefaultTypeInternal { |
45 | 0 | PROTOBUF_CONSTEXPR iCCPDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
46 | 0 | ~iCCPDefaultTypeInternal() {} |
47 | | union { |
48 | | iCCP _instance; |
49 | | }; |
50 | | }; |
51 | | |
52 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
53 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 iCCPDefaultTypeInternal _iCCP_default_instance_; |
54 | | |
55 | | inline constexpr PLTE::Impl_::Impl_( |
56 | | ::_pbi::ConstantInitialized) noexcept |
57 | | : _cached_size_{0}, |
58 | | data_( |
59 | | &::google::protobuf::internal::fixed_address_empty_string, |
60 | | ::_pbi::ConstantInitialized()) {} |
61 | | |
62 | | template <typename> |
63 | | PROTOBUF_CONSTEXPR PLTE::PLTE(::_pbi::ConstantInitialized) |
64 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
65 | | : ::google::protobuf::Message(_class_data_.base()), |
66 | | #else // PROTOBUF_CUSTOM_VTABLE |
67 | | : ::google::protobuf::Message(), |
68 | | #endif // PROTOBUF_CUSTOM_VTABLE |
69 | | _impl_(::_pbi::ConstantInitialized()) { |
70 | | } |
71 | | struct PLTEDefaultTypeInternal { |
72 | 0 | PROTOBUF_CONSTEXPR PLTEDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
73 | 0 | ~PLTEDefaultTypeInternal() {} |
74 | | union { |
75 | | PLTE _instance; |
76 | | }; |
77 | | }; |
78 | | |
79 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
80 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PLTEDefaultTypeInternal _PLTE_default_instance_; |
81 | | |
82 | | inline constexpr OtherChunk::Impl_::Impl_( |
83 | | ::_pbi::ConstantInitialized) noexcept |
84 | | : _cached_size_{0}, |
85 | | data_( |
86 | | &::google::protobuf::internal::fixed_address_empty_string, |
87 | | ::_pbi::ConstantInitialized()), |
88 | | type_{}, |
89 | | _oneof_case_{} {} |
90 | | |
91 | | template <typename> |
92 | | PROTOBUF_CONSTEXPR OtherChunk::OtherChunk(::_pbi::ConstantInitialized) |
93 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
94 | | : ::google::protobuf::Message(_class_data_.base()), |
95 | | #else // PROTOBUF_CUSTOM_VTABLE |
96 | | : ::google::protobuf::Message(), |
97 | | #endif // PROTOBUF_CUSTOM_VTABLE |
98 | | _impl_(::_pbi::ConstantInitialized()) { |
99 | | } |
100 | | struct OtherChunkDefaultTypeInternal { |
101 | 0 | PROTOBUF_CONSTEXPR OtherChunkDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
102 | 0 | ~OtherChunkDefaultTypeInternal() {} |
103 | | union { |
104 | | OtherChunk _instance; |
105 | | }; |
106 | | }; |
107 | | |
108 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
109 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OtherChunkDefaultTypeInternal _OtherChunk_default_instance_; |
110 | | |
111 | | inline constexpr IHDR::Impl_::Impl_( |
112 | | ::_pbi::ConstantInitialized) noexcept |
113 | | : _cached_size_{0}, |
114 | | width_{0u}, |
115 | | height_{0u}, |
116 | | other1_{0u}, |
117 | | other2_{0u} {} |
118 | | |
119 | | template <typename> |
120 | | PROTOBUF_CONSTEXPR IHDR::IHDR(::_pbi::ConstantInitialized) |
121 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
122 | | : ::google::protobuf::Message(_class_data_.base()), |
123 | | #else // PROTOBUF_CUSTOM_VTABLE |
124 | | : ::google::protobuf::Message(), |
125 | | #endif // PROTOBUF_CUSTOM_VTABLE |
126 | | _impl_(::_pbi::ConstantInitialized()) { |
127 | | } |
128 | | struct IHDRDefaultTypeInternal { |
129 | 0 | PROTOBUF_CONSTEXPR IHDRDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
130 | 0 | ~IHDRDefaultTypeInternal() {} |
131 | | union { |
132 | | IHDR _instance; |
133 | | }; |
134 | | }; |
135 | | |
136 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
137 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IHDRDefaultTypeInternal _IHDR_default_instance_; |
138 | | |
139 | | inline constexpr IDAT::Impl_::Impl_( |
140 | | ::_pbi::ConstantInitialized) noexcept |
141 | | : _cached_size_{0}, |
142 | | data_( |
143 | | &::google::protobuf::internal::fixed_address_empty_string, |
144 | | ::_pbi::ConstantInitialized()) {} |
145 | | |
146 | | template <typename> |
147 | | PROTOBUF_CONSTEXPR IDAT::IDAT(::_pbi::ConstantInitialized) |
148 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
149 | | : ::google::protobuf::Message(_class_data_.base()), |
150 | | #else // PROTOBUF_CUSTOM_VTABLE |
151 | | : ::google::protobuf::Message(), |
152 | | #endif // PROTOBUF_CUSTOM_VTABLE |
153 | | _impl_(::_pbi::ConstantInitialized()) { |
154 | | } |
155 | | struct IDATDefaultTypeInternal { |
156 | 0 | PROTOBUF_CONSTEXPR IDATDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
157 | 0 | ~IDATDefaultTypeInternal() {} |
158 | | union { |
159 | | IDAT _instance; |
160 | | }; |
161 | | }; |
162 | | |
163 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
164 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IDATDefaultTypeInternal _IDAT_default_instance_; |
165 | | |
166 | | inline constexpr PngChunk::Impl_::Impl_( |
167 | | ::_pbi::ConstantInitialized) noexcept |
168 | | : chunk_{}, |
169 | | _cached_size_{0}, |
170 | | _oneof_case_{} {} |
171 | | |
172 | | template <typename> |
173 | | PROTOBUF_CONSTEXPR PngChunk::PngChunk(::_pbi::ConstantInitialized) |
174 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
175 | | : ::google::protobuf::Message(_class_data_.base()), |
176 | | #else // PROTOBUF_CUSTOM_VTABLE |
177 | | : ::google::protobuf::Message(), |
178 | | #endif // PROTOBUF_CUSTOM_VTABLE |
179 | | _impl_(::_pbi::ConstantInitialized()) { |
180 | | } |
181 | | struct PngChunkDefaultTypeInternal { |
182 | 0 | PROTOBUF_CONSTEXPR PngChunkDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
183 | 0 | ~PngChunkDefaultTypeInternal() {} |
184 | | union { |
185 | | PngChunk _instance; |
186 | | }; |
187 | | }; |
188 | | |
189 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
190 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PngChunkDefaultTypeInternal _PngChunk_default_instance_; |
191 | | |
192 | | inline constexpr PngProto::Impl_::Impl_( |
193 | | ::_pbi::ConstantInitialized) noexcept |
194 | | : _cached_size_{0}, |
195 | | chunks_{}, |
196 | | ihdr_{nullptr} {} |
197 | | |
198 | | template <typename> |
199 | | PROTOBUF_CONSTEXPR PngProto::PngProto(::_pbi::ConstantInitialized) |
200 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
201 | | : ::google::protobuf::Message(_class_data_.base()), |
202 | | #else // PROTOBUF_CUSTOM_VTABLE |
203 | | : ::google::protobuf::Message(), |
204 | | #endif // PROTOBUF_CUSTOM_VTABLE |
205 | | _impl_(::_pbi::ConstantInitialized()) { |
206 | | } |
207 | | struct PngProtoDefaultTypeInternal { |
208 | 0 | PROTOBUF_CONSTEXPR PngProtoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
209 | 0 | ~PngProtoDefaultTypeInternal() {} |
210 | | union { |
211 | | PngProto _instance; |
212 | | }; |
213 | | }; |
214 | | |
215 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
216 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PngProtoDefaultTypeInternal _PngProto_default_instance_; |
217 | | static constexpr const ::_pb::EnumDescriptor** |
218 | | file_level_enum_descriptors_png_5ffuzz_5fproto_2eproto = nullptr; |
219 | | static constexpr const ::_pb::ServiceDescriptor** |
220 | | file_level_service_descriptors_png_5ffuzz_5fproto_2eproto = nullptr; |
221 | | const ::uint32_t |
222 | | TableStruct_png_5ffuzz_5fproto_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( |
223 | | protodesc_cold) = { |
224 | | PROTOBUF_FIELD_OFFSET(::IHDR, _impl_._has_bits_), |
225 | | PROTOBUF_FIELD_OFFSET(::IHDR, _internal_metadata_), |
226 | | ~0u, // no _extensions_ |
227 | | ~0u, // no _oneof_case_ |
228 | | ~0u, // no _weak_field_map_ |
229 | | ~0u, // no _inlined_string_donated_ |
230 | | ~0u, // no _split_ |
231 | | ~0u, // no sizeof(Split) |
232 | | PROTOBUF_FIELD_OFFSET(::IHDR, _impl_.width_), |
233 | | PROTOBUF_FIELD_OFFSET(::IHDR, _impl_.height_), |
234 | | PROTOBUF_FIELD_OFFSET(::IHDR, _impl_.other1_), |
235 | | PROTOBUF_FIELD_OFFSET(::IHDR, _impl_.other2_), |
236 | | 0, |
237 | | 1, |
238 | | 2, |
239 | | 3, |
240 | | PROTOBUF_FIELD_OFFSET(::PLTE, _impl_._has_bits_), |
241 | | PROTOBUF_FIELD_OFFSET(::PLTE, _internal_metadata_), |
242 | | ~0u, // no _extensions_ |
243 | | ~0u, // no _oneof_case_ |
244 | | ~0u, // no _weak_field_map_ |
245 | | ~0u, // no _inlined_string_donated_ |
246 | | ~0u, // no _split_ |
247 | | ~0u, // no sizeof(Split) |
248 | | PROTOBUF_FIELD_OFFSET(::PLTE, _impl_.data_), |
249 | | 0, |
250 | | PROTOBUF_FIELD_OFFSET(::IDAT, _impl_._has_bits_), |
251 | | PROTOBUF_FIELD_OFFSET(::IDAT, _internal_metadata_), |
252 | | ~0u, // no _extensions_ |
253 | | ~0u, // no _oneof_case_ |
254 | | ~0u, // no _weak_field_map_ |
255 | | ~0u, // no _inlined_string_donated_ |
256 | | ~0u, // no _split_ |
257 | | ~0u, // no sizeof(Split) |
258 | | PROTOBUF_FIELD_OFFSET(::IDAT, _impl_.data_), |
259 | | 0, |
260 | | PROTOBUF_FIELD_OFFSET(::iCCP, _impl_._has_bits_), |
261 | | PROTOBUF_FIELD_OFFSET(::iCCP, _internal_metadata_), |
262 | | ~0u, // no _extensions_ |
263 | | ~0u, // no _oneof_case_ |
264 | | ~0u, // no _weak_field_map_ |
265 | | ~0u, // no _inlined_string_donated_ |
266 | | ~0u, // no _split_ |
267 | | ~0u, // no sizeof(Split) |
268 | | PROTOBUF_FIELD_OFFSET(::iCCP, _impl_.data_), |
269 | | 0, |
270 | | PROTOBUF_FIELD_OFFSET(::OtherChunk, _impl_._has_bits_), |
271 | | PROTOBUF_FIELD_OFFSET(::OtherChunk, _internal_metadata_), |
272 | | ~0u, // no _extensions_ |
273 | | PROTOBUF_FIELD_OFFSET(::OtherChunk, _impl_._oneof_case_[0]), |
274 | | ~0u, // no _weak_field_map_ |
275 | | ~0u, // no _inlined_string_donated_ |
276 | | ~0u, // no _split_ |
277 | | ~0u, // no sizeof(Split) |
278 | | ::_pbi::kInvalidFieldOffsetTag, |
279 | | ::_pbi::kInvalidFieldOffsetTag, |
280 | | PROTOBUF_FIELD_OFFSET(::OtherChunk, _impl_.data_), |
281 | | PROTOBUF_FIELD_OFFSET(::OtherChunk, _impl_.type_), |
282 | | ~0u, |
283 | | ~0u, |
284 | | 0, |
285 | | ~0u, // no _has_bits_ |
286 | | PROTOBUF_FIELD_OFFSET(::PngChunk, _internal_metadata_), |
287 | | ~0u, // no _extensions_ |
288 | | PROTOBUF_FIELD_OFFSET(::PngChunk, _impl_._oneof_case_[0]), |
289 | | ~0u, // no _weak_field_map_ |
290 | | ~0u, // no _inlined_string_donated_ |
291 | | ~0u, // no _split_ |
292 | | ~0u, // no sizeof(Split) |
293 | | ::_pbi::kInvalidFieldOffsetTag, |
294 | | ::_pbi::kInvalidFieldOffsetTag, |
295 | | ::_pbi::kInvalidFieldOffsetTag, |
296 | | ::_pbi::kInvalidFieldOffsetTag, |
297 | | PROTOBUF_FIELD_OFFSET(::PngChunk, _impl_.chunk_), |
298 | | PROTOBUF_FIELD_OFFSET(::PngProto, _impl_._has_bits_), |
299 | | PROTOBUF_FIELD_OFFSET(::PngProto, _internal_metadata_), |
300 | | ~0u, // no _extensions_ |
301 | | ~0u, // no _oneof_case_ |
302 | | ~0u, // no _weak_field_map_ |
303 | | ~0u, // no _inlined_string_donated_ |
304 | | ~0u, // no _split_ |
305 | | ~0u, // no sizeof(Split) |
306 | | PROTOBUF_FIELD_OFFSET(::PngProto, _impl_.ihdr_), |
307 | | PROTOBUF_FIELD_OFFSET(::PngProto, _impl_.chunks_), |
308 | | 0, |
309 | | ~0u, |
310 | | }; |
311 | | |
312 | | static const ::_pbi::MigrationSchema |
313 | | schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
314 | | {0, 12, -1, sizeof(::IHDR)}, |
315 | | {16, 25, -1, sizeof(::PLTE)}, |
316 | | {26, 35, -1, sizeof(::IDAT)}, |
317 | | {36, 45, -1, sizeof(::iCCP)}, |
318 | | {46, 58, -1, sizeof(::OtherChunk)}, |
319 | | {61, -1, -1, sizeof(::PngChunk)}, |
320 | | {74, 84, -1, sizeof(::PngProto)}, |
321 | | }; |
322 | | static const ::_pb::Message* const file_default_instances[] = { |
323 | | &::_IHDR_default_instance_._instance, |
324 | | &::_PLTE_default_instance_._instance, |
325 | | &::_IDAT_default_instance_._instance, |
326 | | &::_iCCP_default_instance_._instance, |
327 | | &::_OtherChunk_default_instance_._instance, |
328 | | &::_PngChunk_default_instance_._instance, |
329 | | &::_PngProto_default_instance_._instance, |
330 | | }; |
331 | | const char descriptor_table_protodef_png_5ffuzz_5fproto_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( |
332 | | protodesc_cold) = { |
333 | | "\n\024png_fuzz_proto.proto\"E\n\004IHDR\022\r\n\005width\030" |
334 | | "\001 \002(\r\022\016\n\006height\030\002 \002(\r\022\016\n\006other1\030\003 \002(\r\022\016\n" |
335 | | "\006other2\030\004 \002(\r\"\024\n\004PLTE\022\014\n\004data\030\001 \002(\014\"\024\n\004I" |
336 | | "DAT\022\014\n\004data\030\001 \002(\014\"\024\n\004iCCP\022\014\n\004data\030\002 \002(\014\"" |
337 | | "P\n\nOtherChunk\022\024\n\nknown_type\030\001 \001(\rH\000\022\026\n\014u" |
338 | | "nknown_type\030\002 \001(\rH\000\022\014\n\004data\030\003 \002(\014B\006\n\004typ" |
339 | | "e\"}\n\010PngChunk\022\025\n\004plte\030\001 \001(\0132\005.PLTEH\000\022\025\n\004" |
340 | | "idat\030\002 \001(\0132\005.IDATH\000\022\025\n\004iccp\030\003 \001(\0132\005.iCCP" |
341 | | "H\000\022#\n\013other_chunk\030\220N \001(\0132\013.OtherChunkH\000B" |
342 | | "\007\n\005chunk\":\n\010PngProto\022\023\n\004ihdr\030\001 \002(\0132\005.IHD" |
343 | | "R\022\031\n\006chunks\030\002 \003(\0132\t.PngChunk" |
344 | | }; |
345 | | static ::absl::once_flag descriptor_table_png_5ffuzz_5fproto_2eproto_once; |
346 | | PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_png_5ffuzz_5fproto_2eproto = { |
347 | | false, |
348 | | false, |
349 | | 428, |
350 | | descriptor_table_protodef_png_5ffuzz_5fproto_2eproto, |
351 | | "png_fuzz_proto.proto", |
352 | | &descriptor_table_png_5ffuzz_5fproto_2eproto_once, |
353 | | nullptr, |
354 | | 0, |
355 | | 7, |
356 | | schemas, |
357 | | file_default_instances, |
358 | | TableStruct_png_5ffuzz_5fproto_2eproto::offsets, |
359 | | file_level_enum_descriptors_png_5ffuzz_5fproto_2eproto, |
360 | | file_level_service_descriptors_png_5ffuzz_5fproto_2eproto, |
361 | | }; |
362 | | // =================================================================== |
363 | | |
364 | | class IHDR::_Internal { |
365 | | public: |
366 | | using HasBits = |
367 | | decltype(std::declval<IHDR>()._impl_._has_bits_); |
368 | | static constexpr ::int32_t kHasBitsOffset = |
369 | | 8 * PROTOBUF_FIELD_OFFSET(IHDR, _impl_._has_bits_); |
370 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
371 | 0 | return ((has_bits[0] & 0x0000000f) ^ 0x0000000f) != 0; |
372 | 0 | } |
373 | | }; |
374 | | |
375 | | IHDR::IHDR(::google::protobuf::Arena* arena) |
376 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
377 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
378 | | #else // PROTOBUF_CUSTOM_VTABLE |
379 | 18.3k | : ::google::protobuf::Message(arena) { |
380 | 18.3k | #endif // PROTOBUF_CUSTOM_VTABLE |
381 | 18.3k | SharedCtor(arena); |
382 | | // @@protoc_insertion_point(arena_constructor:IHDR) |
383 | 18.3k | } |
384 | | IHDR::IHDR( |
385 | | ::google::protobuf::Arena* arena, const IHDR& from) |
386 | 0 | : IHDR(arena) { |
387 | 0 | MergeFrom(from); |
388 | 0 | } |
389 | | inline PROTOBUF_NDEBUG_INLINE IHDR::Impl_::Impl_( |
390 | | ::google::protobuf::internal::InternalVisibility visibility, |
391 | | ::google::protobuf::Arena* arena) |
392 | 18.3k | : _cached_size_{0} {} |
393 | | |
394 | 18.3k | inline void IHDR::SharedCtor(::_pb::Arena* arena) { |
395 | 18.3k | new (&_impl_) Impl_(internal_visibility(), arena); |
396 | 18.3k | ::memset(reinterpret_cast<char *>(&_impl_) + |
397 | 18.3k | offsetof(Impl_, width_), |
398 | 18.3k | 0, |
399 | 18.3k | offsetof(Impl_, other2_) - |
400 | 18.3k | offsetof(Impl_, width_) + |
401 | 18.3k | sizeof(Impl_::other2_)); |
402 | 18.3k | } |
403 | 18.3k | IHDR::~IHDR() { |
404 | | // @@protoc_insertion_point(destructor:IHDR) |
405 | 18.3k | SharedDtor(*this); |
406 | 18.3k | } |
407 | 18.3k | inline void IHDR::SharedDtor(MessageLite& self) { |
408 | 18.3k | IHDR& this_ = static_cast<IHDR&>(self); |
409 | 18.3k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
410 | 18.3k | ABSL_DCHECK(this_.GetArena() == nullptr); |
411 | 18.3k | this_._impl_.~Impl_(); |
412 | 18.3k | } |
413 | | |
414 | | inline void* IHDR::PlacementNew_(const void*, void* mem, |
415 | 18.3k | ::google::protobuf::Arena* arena) { |
416 | 18.3k | return ::new (mem) IHDR(arena); |
417 | 18.3k | } |
418 | 0 | constexpr auto IHDR::InternalNewImpl_() { |
419 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(IHDR), |
420 | 0 | alignof(IHDR)); |
421 | 0 | } |
422 | | PROTOBUF_CONSTINIT |
423 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
424 | | const ::google::protobuf::internal::ClassDataFull IHDR::_class_data_ = { |
425 | | ::google::protobuf::internal::ClassData{ |
426 | | &_IHDR_default_instance_._instance, |
427 | | &_table_.header, |
428 | | nullptr, // OnDemandRegisterArenaDtor |
429 | | IHDR::IsInitializedImpl, |
430 | | &IHDR::MergeImpl, |
431 | | ::google::protobuf::Message::GetNewImpl<IHDR>(), |
432 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
433 | | &IHDR::SharedDtor, |
434 | | ::google::protobuf::Message::GetClearImpl<IHDR>(), &IHDR::ByteSizeLong, |
435 | | &IHDR::_InternalSerialize, |
436 | | #endif // PROTOBUF_CUSTOM_VTABLE |
437 | | PROTOBUF_FIELD_OFFSET(IHDR, _impl_._cached_size_), |
438 | | false, |
439 | | }, |
440 | | &IHDR::kDescriptorMethods, |
441 | | &descriptor_table_png_5ffuzz_5fproto_2eproto, |
442 | | nullptr, // tracker |
443 | | }; |
444 | 348k | const ::google::protobuf::internal::ClassData* IHDR::GetClassData() const { |
445 | 348k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
446 | 348k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
447 | 348k | return _class_data_.base(); |
448 | 348k | } |
449 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
450 | | const ::_pbi::TcParseTable<2, 4, 0, 0, 2> IHDR::_table_ = { |
451 | | { |
452 | | PROTOBUF_FIELD_OFFSET(IHDR, _impl_._has_bits_), |
453 | | 0, // no _extensions_ |
454 | | 4, 24, // max_field_number, fast_idx_mask |
455 | | offsetof(decltype(_table_), field_lookup_table), |
456 | | 4294967280, // skipmap |
457 | | offsetof(decltype(_table_), field_entries), |
458 | | 4, // num_field_entries |
459 | | 0, // num_aux_entries |
460 | | offsetof(decltype(_table_), field_names), // no aux_entries |
461 | | _class_data_.base(), |
462 | | nullptr, // post_loop_handler |
463 | | ::_pbi::TcParser::GenericFallback, // fallback |
464 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
465 | | ::_pbi::TcParser::GetTable<::IHDR>(), // to_prefetch |
466 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
467 | | }, {{ |
468 | | // required uint32 other2 = 4; |
469 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(IHDR, _impl_.other2_), 3>(), |
470 | | {32, 3, 0, PROTOBUF_FIELD_OFFSET(IHDR, _impl_.other2_)}}, |
471 | | // required uint32 width = 1; |
472 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(IHDR, _impl_.width_), 0>(), |
473 | | {8, 0, 0, PROTOBUF_FIELD_OFFSET(IHDR, _impl_.width_)}}, |
474 | | // required uint32 height = 2; |
475 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(IHDR, _impl_.height_), 1>(), |
476 | | {16, 1, 0, PROTOBUF_FIELD_OFFSET(IHDR, _impl_.height_)}}, |
477 | | // required uint32 other1 = 3; |
478 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(IHDR, _impl_.other1_), 2>(), |
479 | | {24, 2, 0, PROTOBUF_FIELD_OFFSET(IHDR, _impl_.other1_)}}, |
480 | | }}, {{ |
481 | | 65535, 65535 |
482 | | }}, {{ |
483 | | // required uint32 width = 1; |
484 | | {PROTOBUF_FIELD_OFFSET(IHDR, _impl_.width_), _Internal::kHasBitsOffset + 0, 0, |
485 | | (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, |
486 | | // required uint32 height = 2; |
487 | | {PROTOBUF_FIELD_OFFSET(IHDR, _impl_.height_), _Internal::kHasBitsOffset + 1, 0, |
488 | | (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, |
489 | | // required uint32 other1 = 3; |
490 | | {PROTOBUF_FIELD_OFFSET(IHDR, _impl_.other1_), _Internal::kHasBitsOffset + 2, 0, |
491 | | (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, |
492 | | // required uint32 other2 = 4; |
493 | | {PROTOBUF_FIELD_OFFSET(IHDR, _impl_.other2_), _Internal::kHasBitsOffset + 3, 0, |
494 | | (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, |
495 | | }}, |
496 | | // no aux_entries |
497 | | {{ |
498 | | }}, |
499 | | }; |
500 | | |
501 | 10 | PROTOBUF_NOINLINE void IHDR::Clear() { |
502 | | // @@protoc_insertion_point(message_clear_start:IHDR) |
503 | 10 | ::google::protobuf::internal::TSanWrite(&_impl_); |
504 | 10 | ::uint32_t cached_has_bits = 0; |
505 | | // Prevent compiler warnings about cached_has_bits being unused |
506 | 10 | (void) cached_has_bits; |
507 | | |
508 | 10 | cached_has_bits = _impl_._has_bits_[0]; |
509 | 10 | if (cached_has_bits & 0x0000000fu) { |
510 | 6 | ::memset(&_impl_.width_, 0, static_cast<::size_t>( |
511 | 6 | reinterpret_cast<char*>(&_impl_.other2_) - |
512 | 6 | reinterpret_cast<char*>(&_impl_.width_)) + sizeof(_impl_.other2_)); |
513 | 6 | } |
514 | 10 | _impl_._has_bits_.Clear(); |
515 | 10 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
516 | 10 | } |
517 | | |
518 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
519 | | ::uint8_t* IHDR::_InternalSerialize( |
520 | | const MessageLite& base, ::uint8_t* target, |
521 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
522 | | const IHDR& this_ = static_cast<const IHDR&>(base); |
523 | | #else // PROTOBUF_CUSTOM_VTABLE |
524 | | ::uint8_t* IHDR::_InternalSerialize( |
525 | | ::uint8_t* target, |
526 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
527 | 0 | const IHDR& this_ = *this; |
528 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
529 | | // @@protoc_insertion_point(serialize_to_array_start:IHDR) |
530 | 0 | ::uint32_t cached_has_bits = 0; |
531 | 0 | (void)cached_has_bits; |
532 | |
|
533 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
534 | | // required uint32 width = 1; |
535 | 0 | if (cached_has_bits & 0x00000001u) { |
536 | 0 | target = stream->EnsureSpace(target); |
537 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
538 | 0 | 1, this_._internal_width(), target); |
539 | 0 | } |
540 | | |
541 | | // required uint32 height = 2; |
542 | 0 | if (cached_has_bits & 0x00000002u) { |
543 | 0 | target = stream->EnsureSpace(target); |
544 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
545 | 0 | 2, this_._internal_height(), target); |
546 | 0 | } |
547 | | |
548 | | // required uint32 other1 = 3; |
549 | 0 | if (cached_has_bits & 0x00000004u) { |
550 | 0 | target = stream->EnsureSpace(target); |
551 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
552 | 0 | 3, this_._internal_other1(), target); |
553 | 0 | } |
554 | | |
555 | | // required uint32 other2 = 4; |
556 | 0 | if (cached_has_bits & 0x00000008u) { |
557 | 0 | target = stream->EnsureSpace(target); |
558 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
559 | 0 | 4, this_._internal_other2(), target); |
560 | 0 | } |
561 | |
|
562 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
563 | 0 | target = |
564 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
565 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
566 | 0 | } |
567 | | // @@protoc_insertion_point(serialize_to_array_end:IHDR) |
568 | 0 | return target; |
569 | 0 | } |
570 | | |
571 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
572 | | ::size_t IHDR::ByteSizeLong(const MessageLite& base) { |
573 | | const IHDR& this_ = static_cast<const IHDR&>(base); |
574 | | #else // PROTOBUF_CUSTOM_VTABLE |
575 | 0 | ::size_t IHDR::ByteSizeLong() const { |
576 | 0 | const IHDR& this_ = *this; |
577 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
578 | | // @@protoc_insertion_point(message_byte_size_start:IHDR) |
579 | 0 | ::size_t total_size = 0; |
580 | |
|
581 | 0 | ::uint32_t cached_has_bits = 0; |
582 | | // Prevent compiler warnings about cached_has_bits being unused |
583 | 0 | (void)cached_has_bits; |
584 | |
|
585 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
586 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
587 | 0 | if (cached_has_bits & 0x0000000fu) { |
588 | | // required uint32 width = 1; |
589 | 0 | if (cached_has_bits & 0x00000001u) { |
590 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
591 | 0 | this_._internal_width()); |
592 | 0 | } |
593 | | // required uint32 height = 2; |
594 | 0 | if (cached_has_bits & 0x00000002u) { |
595 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
596 | 0 | this_._internal_height()); |
597 | 0 | } |
598 | | // required uint32 other1 = 3; |
599 | 0 | if (cached_has_bits & 0x00000004u) { |
600 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
601 | 0 | this_._internal_other1()); |
602 | 0 | } |
603 | | // required uint32 other2 = 4; |
604 | 0 | if (cached_has_bits & 0x00000008u) { |
605 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
606 | 0 | this_._internal_other2()); |
607 | 0 | } |
608 | 0 | } |
609 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
610 | 0 | &this_._impl_._cached_size_); |
611 | 0 | } |
612 | | |
613 | 2 | void IHDR::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
614 | 2 | auto* const _this = static_cast<IHDR*>(&to_msg); |
615 | 2 | auto& from = static_cast<const IHDR&>(from_msg); |
616 | | // @@protoc_insertion_point(class_specific_merge_from_start:IHDR) |
617 | 2 | ABSL_DCHECK_NE(&from, _this); |
618 | 2 | ::uint32_t cached_has_bits = 0; |
619 | 2 | (void) cached_has_bits; |
620 | | |
621 | 2 | cached_has_bits = from._impl_._has_bits_[0]; |
622 | 2 | if (cached_has_bits & 0x0000000fu) { |
623 | 0 | if (cached_has_bits & 0x00000001u) { |
624 | 0 | _this->_impl_.width_ = from._impl_.width_; |
625 | 0 | } |
626 | 0 | if (cached_has_bits & 0x00000002u) { |
627 | 0 | _this->_impl_.height_ = from._impl_.height_; |
628 | 0 | } |
629 | 0 | if (cached_has_bits & 0x00000004u) { |
630 | 0 | _this->_impl_.other1_ = from._impl_.other1_; |
631 | 0 | } |
632 | 0 | if (cached_has_bits & 0x00000008u) { |
633 | 0 | _this->_impl_.other2_ = from._impl_.other2_; |
634 | 0 | } |
635 | 0 | } |
636 | 2 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
637 | 2 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
638 | 2 | } |
639 | | |
640 | 0 | void IHDR::CopyFrom(const IHDR& from) { |
641 | | // @@protoc_insertion_point(class_specific_copy_from_start:IHDR) |
642 | 0 | if (&from == this) return; |
643 | 0 | Clear(); |
644 | 0 | MergeFrom(from); |
645 | 0 | } |
646 | | |
647 | | PROTOBUF_NOINLINE bool IHDR::IsInitializedImpl( |
648 | 0 | const MessageLite& msg) { |
649 | 0 | auto& this_ = static_cast<const IHDR&>(msg); |
650 | 0 | if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { |
651 | 0 | return false; |
652 | 0 | } |
653 | 0 | return true; |
654 | 0 | } |
655 | | |
656 | 0 | void IHDR::InternalSwap(IHDR* PROTOBUF_RESTRICT other) { |
657 | 0 | using std::swap; |
658 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
659 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
660 | 0 | ::google::protobuf::internal::memswap< |
661 | 0 | PROTOBUF_FIELD_OFFSET(IHDR, _impl_.other2_) |
662 | 0 | + sizeof(IHDR::_impl_.other2_) |
663 | 0 | - PROTOBUF_FIELD_OFFSET(IHDR, _impl_.width_)>( |
664 | 0 | reinterpret_cast<char*>(&_impl_.width_), |
665 | 0 | reinterpret_cast<char*>(&other->_impl_.width_)); |
666 | 0 | } |
667 | | |
668 | 0 | ::google::protobuf::Metadata IHDR::GetMetadata() const { |
669 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
670 | 0 | } |
671 | | // =================================================================== |
672 | | |
673 | | class PLTE::_Internal { |
674 | | public: |
675 | | using HasBits = |
676 | | decltype(std::declval<PLTE>()._impl_._has_bits_); |
677 | | static constexpr ::int32_t kHasBitsOffset = |
678 | | 8 * PROTOBUF_FIELD_OFFSET(PLTE, _impl_._has_bits_); |
679 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
680 | 0 | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
681 | 0 | } |
682 | | }; |
683 | | |
684 | | PLTE::PLTE(::google::protobuf::Arena* arena) |
685 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
686 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
687 | | #else // PROTOBUF_CUSTOM_VTABLE |
688 | 4.99k | : ::google::protobuf::Message(arena) { |
689 | 4.99k | #endif // PROTOBUF_CUSTOM_VTABLE |
690 | 4.99k | SharedCtor(arena); |
691 | | // @@protoc_insertion_point(arena_constructor:PLTE) |
692 | 4.99k | } |
693 | | inline PROTOBUF_NDEBUG_INLINE PLTE::Impl_::Impl_( |
694 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
695 | | const Impl_& from, const ::PLTE& from_msg) |
696 | 0 | : _has_bits_{from._has_bits_}, |
697 | 0 | _cached_size_{0}, |
698 | 0 | data_(arena, from.data_) {} |
699 | | |
700 | | PLTE::PLTE( |
701 | | ::google::protobuf::Arena* arena, |
702 | | const PLTE& from) |
703 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
704 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
705 | | #else // PROTOBUF_CUSTOM_VTABLE |
706 | 0 | : ::google::protobuf::Message(arena) { |
707 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
708 | 0 | PLTE* const _this = this; |
709 | 0 | (void)_this; |
710 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
711 | 0 | from._internal_metadata_); |
712 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
713 | | |
714 | | // @@protoc_insertion_point(copy_constructor:PLTE) |
715 | 0 | } |
716 | | inline PROTOBUF_NDEBUG_INLINE PLTE::Impl_::Impl_( |
717 | | ::google::protobuf::internal::InternalVisibility visibility, |
718 | | ::google::protobuf::Arena* arena) |
719 | 4.99k | : _cached_size_{0}, |
720 | 4.99k | data_(arena) {} |
721 | | |
722 | 4.99k | inline void PLTE::SharedCtor(::_pb::Arena* arena) { |
723 | 4.99k | new (&_impl_) Impl_(internal_visibility(), arena); |
724 | 4.99k | } |
725 | 4.99k | PLTE::~PLTE() { |
726 | | // @@protoc_insertion_point(destructor:PLTE) |
727 | 4.99k | SharedDtor(*this); |
728 | 4.99k | } |
729 | 4.99k | inline void PLTE::SharedDtor(MessageLite& self) { |
730 | 4.99k | PLTE& this_ = static_cast<PLTE&>(self); |
731 | 4.99k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
732 | 4.99k | ABSL_DCHECK(this_.GetArena() == nullptr); |
733 | 4.99k | this_._impl_.data_.Destroy(); |
734 | 4.99k | this_._impl_.~Impl_(); |
735 | 4.99k | } |
736 | | |
737 | | inline void* PLTE::PlacementNew_(const void*, void* mem, |
738 | 4.99k | ::google::protobuf::Arena* arena) { |
739 | 4.99k | return ::new (mem) PLTE(arena); |
740 | 4.99k | } |
741 | 0 | constexpr auto PLTE::InternalNewImpl_() { |
742 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PLTE), |
743 | 0 | alignof(PLTE)); |
744 | 0 | } |
745 | | PROTOBUF_CONSTINIT |
746 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
747 | | const ::google::protobuf::internal::ClassDataFull PLTE::_class_data_ = { |
748 | | ::google::protobuf::internal::ClassData{ |
749 | | &_PLTE_default_instance_._instance, |
750 | | &_table_.header, |
751 | | nullptr, // OnDemandRegisterArenaDtor |
752 | | PLTE::IsInitializedImpl, |
753 | | &PLTE::MergeImpl, |
754 | | ::google::protobuf::Message::GetNewImpl<PLTE>(), |
755 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
756 | | &PLTE::SharedDtor, |
757 | | ::google::protobuf::Message::GetClearImpl<PLTE>(), &PLTE::ByteSizeLong, |
758 | | &PLTE::_InternalSerialize, |
759 | | #endif // PROTOBUF_CUSTOM_VTABLE |
760 | | PROTOBUF_FIELD_OFFSET(PLTE, _impl_._cached_size_), |
761 | | false, |
762 | | }, |
763 | | &PLTE::kDescriptorMethods, |
764 | | &descriptor_table_png_5ffuzz_5fproto_2eproto, |
765 | | nullptr, // tracker |
766 | | }; |
767 | 49.9k | const ::google::protobuf::internal::ClassData* PLTE::GetClassData() const { |
768 | 49.9k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
769 | 49.9k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
770 | 49.9k | return _class_data_.base(); |
771 | 49.9k | } |
772 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
773 | | const ::_pbi::TcParseTable<0, 1, 0, 0, 2> PLTE::_table_ = { |
774 | | { |
775 | | PROTOBUF_FIELD_OFFSET(PLTE, _impl_._has_bits_), |
776 | | 0, // no _extensions_ |
777 | | 1, 0, // max_field_number, fast_idx_mask |
778 | | offsetof(decltype(_table_), field_lookup_table), |
779 | | 4294967294, // skipmap |
780 | | offsetof(decltype(_table_), field_entries), |
781 | | 1, // num_field_entries |
782 | | 0, // num_aux_entries |
783 | | offsetof(decltype(_table_), field_names), // no aux_entries |
784 | | _class_data_.base(), |
785 | | nullptr, // post_loop_handler |
786 | | ::_pbi::TcParser::GenericFallback, // fallback |
787 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
788 | | ::_pbi::TcParser::GetTable<::PLTE>(), // to_prefetch |
789 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
790 | | }, {{ |
791 | | // required bytes data = 1; |
792 | | {::_pbi::TcParser::FastBS1, |
793 | | {10, 0, 0, PROTOBUF_FIELD_OFFSET(PLTE, _impl_.data_)}}, |
794 | | }}, {{ |
795 | | 65535, 65535 |
796 | | }}, {{ |
797 | | // required bytes data = 1; |
798 | | {PROTOBUF_FIELD_OFFSET(PLTE, _impl_.data_), _Internal::kHasBitsOffset + 0, 0, |
799 | | (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, |
800 | | }}, |
801 | | // no aux_entries |
802 | | {{ |
803 | | }}, |
804 | | }; |
805 | | |
806 | 0 | PROTOBUF_NOINLINE void PLTE::Clear() { |
807 | | // @@protoc_insertion_point(message_clear_start:PLTE) |
808 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
809 | 0 | ::uint32_t cached_has_bits = 0; |
810 | | // Prevent compiler warnings about cached_has_bits being unused |
811 | 0 | (void) cached_has_bits; |
812 | |
|
813 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
814 | 0 | if (cached_has_bits & 0x00000001u) { |
815 | 0 | _impl_.data_.ClearNonDefaultToEmpty(); |
816 | 0 | } |
817 | 0 | _impl_._has_bits_.Clear(); |
818 | 0 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
819 | 0 | } |
820 | | |
821 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
822 | | ::uint8_t* PLTE::_InternalSerialize( |
823 | | const MessageLite& base, ::uint8_t* target, |
824 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
825 | | const PLTE& this_ = static_cast<const PLTE&>(base); |
826 | | #else // PROTOBUF_CUSTOM_VTABLE |
827 | | ::uint8_t* PLTE::_InternalSerialize( |
828 | | ::uint8_t* target, |
829 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
830 | 0 | const PLTE& this_ = *this; |
831 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
832 | | // @@protoc_insertion_point(serialize_to_array_start:PLTE) |
833 | 0 | ::uint32_t cached_has_bits = 0; |
834 | 0 | (void)cached_has_bits; |
835 | |
|
836 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
837 | | // required bytes data = 1; |
838 | 0 | if (cached_has_bits & 0x00000001u) { |
839 | 0 | const std::string& _s = this_._internal_data(); |
840 | 0 | target = stream->WriteBytesMaybeAliased(1, _s, target); |
841 | 0 | } |
842 | |
|
843 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
844 | 0 | target = |
845 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
846 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
847 | 0 | } |
848 | | // @@protoc_insertion_point(serialize_to_array_end:PLTE) |
849 | 0 | return target; |
850 | 0 | } |
851 | | |
852 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
853 | | ::size_t PLTE::ByteSizeLong(const MessageLite& base) { |
854 | | const PLTE& this_ = static_cast<const PLTE&>(base); |
855 | | #else // PROTOBUF_CUSTOM_VTABLE |
856 | 0 | ::size_t PLTE::ByteSizeLong() const { |
857 | 0 | const PLTE& this_ = *this; |
858 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
859 | | // @@protoc_insertion_point(message_byte_size_start:PLTE) |
860 | 0 | ::size_t total_size = 0; |
861 | |
|
862 | 0 | ::uint32_t cached_has_bits = 0; |
863 | | // Prevent compiler warnings about cached_has_bits being unused |
864 | 0 | (void)cached_has_bits; |
865 | |
|
866 | 0 | { |
867 | | // required bytes data = 1; |
868 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
869 | 0 | if (cached_has_bits & 0x00000001u) { |
870 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
871 | 0 | this_._internal_data()); |
872 | 0 | } |
873 | 0 | } |
874 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
875 | 0 | &this_._impl_._cached_size_); |
876 | 0 | } |
877 | | |
878 | 0 | void PLTE::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
879 | 0 | auto* const _this = static_cast<PLTE*>(&to_msg); |
880 | 0 | auto& from = static_cast<const PLTE&>(from_msg); |
881 | | // @@protoc_insertion_point(class_specific_merge_from_start:PLTE) |
882 | 0 | ABSL_DCHECK_NE(&from, _this); |
883 | 0 | ::uint32_t cached_has_bits = 0; |
884 | 0 | (void) cached_has_bits; |
885 | |
|
886 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
887 | 0 | if (cached_has_bits & 0x00000001u) { |
888 | 0 | _this->_internal_set_data(from._internal_data()); |
889 | 0 | } |
890 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
891 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
892 | 0 | } |
893 | | |
894 | 0 | void PLTE::CopyFrom(const PLTE& from) { |
895 | | // @@protoc_insertion_point(class_specific_copy_from_start:PLTE) |
896 | 0 | if (&from == this) return; |
897 | 0 | Clear(); |
898 | 0 | MergeFrom(from); |
899 | 0 | } |
900 | | |
901 | | PROTOBUF_NOINLINE bool PLTE::IsInitializedImpl( |
902 | 0 | const MessageLite& msg) { |
903 | 0 | auto& this_ = static_cast<const PLTE&>(msg); |
904 | 0 | if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { |
905 | 0 | return false; |
906 | 0 | } |
907 | 0 | return true; |
908 | 0 | } |
909 | | |
910 | 0 | void PLTE::InternalSwap(PLTE* PROTOBUF_RESTRICT other) { |
911 | 0 | using std::swap; |
912 | 0 | auto* arena = GetArena(); |
913 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
914 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
915 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
916 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena); |
917 | 0 | } |
918 | | |
919 | 0 | ::google::protobuf::Metadata PLTE::GetMetadata() const { |
920 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
921 | 0 | } |
922 | | // =================================================================== |
923 | | |
924 | | class IDAT::_Internal { |
925 | | public: |
926 | | using HasBits = |
927 | | decltype(std::declval<IDAT>()._impl_._has_bits_); |
928 | | static constexpr ::int32_t kHasBitsOffset = |
929 | | 8 * PROTOBUF_FIELD_OFFSET(IDAT, _impl_._has_bits_); |
930 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
931 | 0 | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
932 | 0 | } |
933 | | }; |
934 | | |
935 | | IDAT::IDAT(::google::protobuf::Arena* arena) |
936 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
937 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
938 | | #else // PROTOBUF_CUSTOM_VTABLE |
939 | 9.69k | : ::google::protobuf::Message(arena) { |
940 | 9.69k | #endif // PROTOBUF_CUSTOM_VTABLE |
941 | 9.69k | SharedCtor(arena); |
942 | | // @@protoc_insertion_point(arena_constructor:IDAT) |
943 | 9.69k | } |
944 | | inline PROTOBUF_NDEBUG_INLINE IDAT::Impl_::Impl_( |
945 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
946 | | const Impl_& from, const ::IDAT& from_msg) |
947 | 0 | : _has_bits_{from._has_bits_}, |
948 | 0 | _cached_size_{0}, |
949 | 0 | data_(arena, from.data_) {} |
950 | | |
951 | | IDAT::IDAT( |
952 | | ::google::protobuf::Arena* arena, |
953 | | const IDAT& from) |
954 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
955 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
956 | | #else // PROTOBUF_CUSTOM_VTABLE |
957 | 0 | : ::google::protobuf::Message(arena) { |
958 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
959 | 0 | IDAT* const _this = this; |
960 | 0 | (void)_this; |
961 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
962 | 0 | from._internal_metadata_); |
963 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
964 | | |
965 | | // @@protoc_insertion_point(copy_constructor:IDAT) |
966 | 0 | } |
967 | | inline PROTOBUF_NDEBUG_INLINE IDAT::Impl_::Impl_( |
968 | | ::google::protobuf::internal::InternalVisibility visibility, |
969 | | ::google::protobuf::Arena* arena) |
970 | 9.69k | : _cached_size_{0}, |
971 | 9.69k | data_(arena) {} |
972 | | |
973 | 9.69k | inline void IDAT::SharedCtor(::_pb::Arena* arena) { |
974 | 9.69k | new (&_impl_) Impl_(internal_visibility(), arena); |
975 | 9.69k | } |
976 | 9.69k | IDAT::~IDAT() { |
977 | | // @@protoc_insertion_point(destructor:IDAT) |
978 | 9.69k | SharedDtor(*this); |
979 | 9.69k | } |
980 | 9.69k | inline void IDAT::SharedDtor(MessageLite& self) { |
981 | 9.69k | IDAT& this_ = static_cast<IDAT&>(self); |
982 | 9.69k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
983 | 9.69k | ABSL_DCHECK(this_.GetArena() == nullptr); |
984 | 9.69k | this_._impl_.data_.Destroy(); |
985 | 9.69k | this_._impl_.~Impl_(); |
986 | 9.69k | } |
987 | | |
988 | | inline void* IDAT::PlacementNew_(const void*, void* mem, |
989 | 9.69k | ::google::protobuf::Arena* arena) { |
990 | 9.69k | return ::new (mem) IDAT(arena); |
991 | 9.69k | } |
992 | 0 | constexpr auto IDAT::InternalNewImpl_() { |
993 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(IDAT), |
994 | 0 | alignof(IDAT)); |
995 | 0 | } |
996 | | PROTOBUF_CONSTINIT |
997 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
998 | | const ::google::protobuf::internal::ClassDataFull IDAT::_class_data_ = { |
999 | | ::google::protobuf::internal::ClassData{ |
1000 | | &_IDAT_default_instance_._instance, |
1001 | | &_table_.header, |
1002 | | nullptr, // OnDemandRegisterArenaDtor |
1003 | | IDAT::IsInitializedImpl, |
1004 | | &IDAT::MergeImpl, |
1005 | | ::google::protobuf::Message::GetNewImpl<IDAT>(), |
1006 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1007 | | &IDAT::SharedDtor, |
1008 | | ::google::protobuf::Message::GetClearImpl<IDAT>(), &IDAT::ByteSizeLong, |
1009 | | &IDAT::_InternalSerialize, |
1010 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1011 | | PROTOBUF_FIELD_OFFSET(IDAT, _impl_._cached_size_), |
1012 | | false, |
1013 | | }, |
1014 | | &IDAT::kDescriptorMethods, |
1015 | | &descriptor_table_png_5ffuzz_5fproto_2eproto, |
1016 | | nullptr, // tracker |
1017 | | }; |
1018 | 96.9k | const ::google::protobuf::internal::ClassData* IDAT::GetClassData() const { |
1019 | 96.9k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
1020 | 96.9k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
1021 | 96.9k | return _class_data_.base(); |
1022 | 96.9k | } |
1023 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1024 | | const ::_pbi::TcParseTable<0, 1, 0, 0, 2> IDAT::_table_ = { |
1025 | | { |
1026 | | PROTOBUF_FIELD_OFFSET(IDAT, _impl_._has_bits_), |
1027 | | 0, // no _extensions_ |
1028 | | 1, 0, // max_field_number, fast_idx_mask |
1029 | | offsetof(decltype(_table_), field_lookup_table), |
1030 | | 4294967294, // skipmap |
1031 | | offsetof(decltype(_table_), field_entries), |
1032 | | 1, // num_field_entries |
1033 | | 0, // num_aux_entries |
1034 | | offsetof(decltype(_table_), field_names), // no aux_entries |
1035 | | _class_data_.base(), |
1036 | | nullptr, // post_loop_handler |
1037 | | ::_pbi::TcParser::GenericFallback, // fallback |
1038 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
1039 | | ::_pbi::TcParser::GetTable<::IDAT>(), // to_prefetch |
1040 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
1041 | | }, {{ |
1042 | | // required bytes data = 1; |
1043 | | {::_pbi::TcParser::FastBS1, |
1044 | | {10, 0, 0, PROTOBUF_FIELD_OFFSET(IDAT, _impl_.data_)}}, |
1045 | | }}, {{ |
1046 | | 65535, 65535 |
1047 | | }}, {{ |
1048 | | // required bytes data = 1; |
1049 | | {PROTOBUF_FIELD_OFFSET(IDAT, _impl_.data_), _Internal::kHasBitsOffset + 0, 0, |
1050 | | (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, |
1051 | | }}, |
1052 | | // no aux_entries |
1053 | | {{ |
1054 | | }}, |
1055 | | }; |
1056 | | |
1057 | 0 | PROTOBUF_NOINLINE void IDAT::Clear() { |
1058 | | // @@protoc_insertion_point(message_clear_start:IDAT) |
1059 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1060 | 0 | ::uint32_t cached_has_bits = 0; |
1061 | | // Prevent compiler warnings about cached_has_bits being unused |
1062 | 0 | (void) cached_has_bits; |
1063 | |
|
1064 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
1065 | 0 | if (cached_has_bits & 0x00000001u) { |
1066 | 0 | _impl_.data_.ClearNonDefaultToEmpty(); |
1067 | 0 | } |
1068 | 0 | _impl_._has_bits_.Clear(); |
1069 | 0 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
1070 | 0 | } |
1071 | | |
1072 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1073 | | ::uint8_t* IDAT::_InternalSerialize( |
1074 | | const MessageLite& base, ::uint8_t* target, |
1075 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
1076 | | const IDAT& this_ = static_cast<const IDAT&>(base); |
1077 | | #else // PROTOBUF_CUSTOM_VTABLE |
1078 | | ::uint8_t* IDAT::_InternalSerialize( |
1079 | | ::uint8_t* target, |
1080 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1081 | 0 | const IDAT& this_ = *this; |
1082 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1083 | | // @@protoc_insertion_point(serialize_to_array_start:IDAT) |
1084 | 0 | ::uint32_t cached_has_bits = 0; |
1085 | 0 | (void)cached_has_bits; |
1086 | |
|
1087 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
1088 | | // required bytes data = 1; |
1089 | 0 | if (cached_has_bits & 0x00000001u) { |
1090 | 0 | const std::string& _s = this_._internal_data(); |
1091 | 0 | target = stream->WriteBytesMaybeAliased(1, _s, target); |
1092 | 0 | } |
1093 | |
|
1094 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
1095 | 0 | target = |
1096 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1097 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
1098 | 0 | } |
1099 | | // @@protoc_insertion_point(serialize_to_array_end:IDAT) |
1100 | 0 | return target; |
1101 | 0 | } |
1102 | | |
1103 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1104 | | ::size_t IDAT::ByteSizeLong(const MessageLite& base) { |
1105 | | const IDAT& this_ = static_cast<const IDAT&>(base); |
1106 | | #else // PROTOBUF_CUSTOM_VTABLE |
1107 | 0 | ::size_t IDAT::ByteSizeLong() const { |
1108 | 0 | const IDAT& this_ = *this; |
1109 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1110 | | // @@protoc_insertion_point(message_byte_size_start:IDAT) |
1111 | 0 | ::size_t total_size = 0; |
1112 | |
|
1113 | 0 | ::uint32_t cached_has_bits = 0; |
1114 | | // Prevent compiler warnings about cached_has_bits being unused |
1115 | 0 | (void)cached_has_bits; |
1116 | |
|
1117 | 0 | { |
1118 | | // required bytes data = 1; |
1119 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
1120 | 0 | if (cached_has_bits & 0x00000001u) { |
1121 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
1122 | 0 | this_._internal_data()); |
1123 | 0 | } |
1124 | 0 | } |
1125 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
1126 | 0 | &this_._impl_._cached_size_); |
1127 | 0 | } |
1128 | | |
1129 | 0 | void IDAT::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
1130 | 0 | auto* const _this = static_cast<IDAT*>(&to_msg); |
1131 | 0 | auto& from = static_cast<const IDAT&>(from_msg); |
1132 | | // @@protoc_insertion_point(class_specific_merge_from_start:IDAT) |
1133 | 0 | ABSL_DCHECK_NE(&from, _this); |
1134 | 0 | ::uint32_t cached_has_bits = 0; |
1135 | 0 | (void) cached_has_bits; |
1136 | |
|
1137 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
1138 | 0 | if (cached_has_bits & 0x00000001u) { |
1139 | 0 | _this->_internal_set_data(from._internal_data()); |
1140 | 0 | } |
1141 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
1142 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
1143 | 0 | } |
1144 | | |
1145 | 0 | void IDAT::CopyFrom(const IDAT& from) { |
1146 | | // @@protoc_insertion_point(class_specific_copy_from_start:IDAT) |
1147 | 0 | if (&from == this) return; |
1148 | 0 | Clear(); |
1149 | 0 | MergeFrom(from); |
1150 | 0 | } |
1151 | | |
1152 | | PROTOBUF_NOINLINE bool IDAT::IsInitializedImpl( |
1153 | 0 | const MessageLite& msg) { |
1154 | 0 | auto& this_ = static_cast<const IDAT&>(msg); |
1155 | 0 | if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { |
1156 | 0 | return false; |
1157 | 0 | } |
1158 | 0 | return true; |
1159 | 0 | } |
1160 | | |
1161 | 0 | void IDAT::InternalSwap(IDAT* PROTOBUF_RESTRICT other) { |
1162 | 0 | using std::swap; |
1163 | 0 | auto* arena = GetArena(); |
1164 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
1165 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1166 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
1167 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena); |
1168 | 0 | } |
1169 | | |
1170 | 0 | ::google::protobuf::Metadata IDAT::GetMetadata() const { |
1171 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
1172 | 0 | } |
1173 | | // =================================================================== |
1174 | | |
1175 | | class iCCP::_Internal { |
1176 | | public: |
1177 | | using HasBits = |
1178 | | decltype(std::declval<iCCP>()._impl_._has_bits_); |
1179 | | static constexpr ::int32_t kHasBitsOffset = |
1180 | | 8 * PROTOBUF_FIELD_OFFSET(iCCP, _impl_._has_bits_); |
1181 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
1182 | 0 | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
1183 | 0 | } |
1184 | | }; |
1185 | | |
1186 | | iCCP::iCCP(::google::protobuf::Arena* arena) |
1187 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1188 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1189 | | #else // PROTOBUF_CUSTOM_VTABLE |
1190 | 8.58k | : ::google::protobuf::Message(arena) { |
1191 | 8.58k | #endif // PROTOBUF_CUSTOM_VTABLE |
1192 | 8.58k | SharedCtor(arena); |
1193 | | // @@protoc_insertion_point(arena_constructor:iCCP) |
1194 | 8.58k | } |
1195 | | inline PROTOBUF_NDEBUG_INLINE iCCP::Impl_::Impl_( |
1196 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
1197 | | const Impl_& from, const ::iCCP& from_msg) |
1198 | 0 | : _has_bits_{from._has_bits_}, |
1199 | 0 | _cached_size_{0}, |
1200 | 0 | data_(arena, from.data_) {} |
1201 | | |
1202 | | iCCP::iCCP( |
1203 | | ::google::protobuf::Arena* arena, |
1204 | | const iCCP& from) |
1205 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1206 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1207 | | #else // PROTOBUF_CUSTOM_VTABLE |
1208 | 0 | : ::google::protobuf::Message(arena) { |
1209 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1210 | 0 | iCCP* const _this = this; |
1211 | 0 | (void)_this; |
1212 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
1213 | 0 | from._internal_metadata_); |
1214 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
1215 | | |
1216 | | // @@protoc_insertion_point(copy_constructor:iCCP) |
1217 | 0 | } |
1218 | | inline PROTOBUF_NDEBUG_INLINE iCCP::Impl_::Impl_( |
1219 | | ::google::protobuf::internal::InternalVisibility visibility, |
1220 | | ::google::protobuf::Arena* arena) |
1221 | 8.58k | : _cached_size_{0}, |
1222 | 8.58k | data_(arena) {} |
1223 | | |
1224 | 8.58k | inline void iCCP::SharedCtor(::_pb::Arena* arena) { |
1225 | 8.58k | new (&_impl_) Impl_(internal_visibility(), arena); |
1226 | 8.58k | } |
1227 | 8.58k | iCCP::~iCCP() { |
1228 | | // @@protoc_insertion_point(destructor:iCCP) |
1229 | 8.58k | SharedDtor(*this); |
1230 | 8.58k | } |
1231 | 8.58k | inline void iCCP::SharedDtor(MessageLite& self) { |
1232 | 8.58k | iCCP& this_ = static_cast<iCCP&>(self); |
1233 | 8.58k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
1234 | 8.58k | ABSL_DCHECK(this_.GetArena() == nullptr); |
1235 | 8.58k | this_._impl_.data_.Destroy(); |
1236 | 8.58k | this_._impl_.~Impl_(); |
1237 | 8.58k | } |
1238 | | |
1239 | | inline void* iCCP::PlacementNew_(const void*, void* mem, |
1240 | 8.58k | ::google::protobuf::Arena* arena) { |
1241 | 8.58k | return ::new (mem) iCCP(arena); |
1242 | 8.58k | } |
1243 | 0 | constexpr auto iCCP::InternalNewImpl_() { |
1244 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(iCCP), |
1245 | 0 | alignof(iCCP)); |
1246 | 0 | } |
1247 | | PROTOBUF_CONSTINIT |
1248 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1249 | | const ::google::protobuf::internal::ClassDataFull iCCP::_class_data_ = { |
1250 | | ::google::protobuf::internal::ClassData{ |
1251 | | &_iCCP_default_instance_._instance, |
1252 | | &_table_.header, |
1253 | | nullptr, // OnDemandRegisterArenaDtor |
1254 | | iCCP::IsInitializedImpl, |
1255 | | &iCCP::MergeImpl, |
1256 | | ::google::protobuf::Message::GetNewImpl<iCCP>(), |
1257 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1258 | | &iCCP::SharedDtor, |
1259 | | ::google::protobuf::Message::GetClearImpl<iCCP>(), &iCCP::ByteSizeLong, |
1260 | | &iCCP::_InternalSerialize, |
1261 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1262 | | PROTOBUF_FIELD_OFFSET(iCCP, _impl_._cached_size_), |
1263 | | false, |
1264 | | }, |
1265 | | &iCCP::kDescriptorMethods, |
1266 | | &descriptor_table_png_5ffuzz_5fproto_2eproto, |
1267 | | nullptr, // tracker |
1268 | | }; |
1269 | 85.8k | const ::google::protobuf::internal::ClassData* iCCP::GetClassData() const { |
1270 | 85.8k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
1271 | 85.8k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
1272 | 85.8k | return _class_data_.base(); |
1273 | 85.8k | } |
1274 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1275 | | const ::_pbi::TcParseTable<0, 1, 0, 0, 2> iCCP::_table_ = { |
1276 | | { |
1277 | | PROTOBUF_FIELD_OFFSET(iCCP, _impl_._has_bits_), |
1278 | | 0, // no _extensions_ |
1279 | | 2, 0, // max_field_number, fast_idx_mask |
1280 | | offsetof(decltype(_table_), field_lookup_table), |
1281 | | 4294967293, // skipmap |
1282 | | offsetof(decltype(_table_), field_entries), |
1283 | | 1, // num_field_entries |
1284 | | 0, // num_aux_entries |
1285 | | offsetof(decltype(_table_), field_names), // no aux_entries |
1286 | | _class_data_.base(), |
1287 | | nullptr, // post_loop_handler |
1288 | | ::_pbi::TcParser::GenericFallback, // fallback |
1289 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
1290 | | ::_pbi::TcParser::GetTable<::iCCP>(), // to_prefetch |
1291 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
1292 | | }, {{ |
1293 | | // required bytes data = 2; |
1294 | | {::_pbi::TcParser::FastBS1, |
1295 | | {18, 0, 0, PROTOBUF_FIELD_OFFSET(iCCP, _impl_.data_)}}, |
1296 | | }}, {{ |
1297 | | 65535, 65535 |
1298 | | }}, {{ |
1299 | | // required bytes data = 2; |
1300 | | {PROTOBUF_FIELD_OFFSET(iCCP, _impl_.data_), _Internal::kHasBitsOffset + 0, 0, |
1301 | | (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, |
1302 | | }}, |
1303 | | // no aux_entries |
1304 | | {{ |
1305 | | }}, |
1306 | | }; |
1307 | | |
1308 | 0 | PROTOBUF_NOINLINE void iCCP::Clear() { |
1309 | | // @@protoc_insertion_point(message_clear_start:iCCP) |
1310 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1311 | 0 | ::uint32_t cached_has_bits = 0; |
1312 | | // Prevent compiler warnings about cached_has_bits being unused |
1313 | 0 | (void) cached_has_bits; |
1314 | |
|
1315 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
1316 | 0 | if (cached_has_bits & 0x00000001u) { |
1317 | 0 | _impl_.data_.ClearNonDefaultToEmpty(); |
1318 | 0 | } |
1319 | 0 | _impl_._has_bits_.Clear(); |
1320 | 0 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
1321 | 0 | } |
1322 | | |
1323 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1324 | | ::uint8_t* iCCP::_InternalSerialize( |
1325 | | const MessageLite& base, ::uint8_t* target, |
1326 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
1327 | | const iCCP& this_ = static_cast<const iCCP&>(base); |
1328 | | #else // PROTOBUF_CUSTOM_VTABLE |
1329 | | ::uint8_t* iCCP::_InternalSerialize( |
1330 | | ::uint8_t* target, |
1331 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1332 | 0 | const iCCP& this_ = *this; |
1333 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1334 | | // @@protoc_insertion_point(serialize_to_array_start:iCCP) |
1335 | 0 | ::uint32_t cached_has_bits = 0; |
1336 | 0 | (void)cached_has_bits; |
1337 | |
|
1338 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
1339 | | // required bytes data = 2; |
1340 | 0 | if (cached_has_bits & 0x00000001u) { |
1341 | 0 | const std::string& _s = this_._internal_data(); |
1342 | 0 | target = stream->WriteBytesMaybeAliased(2, _s, target); |
1343 | 0 | } |
1344 | |
|
1345 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
1346 | 0 | target = |
1347 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1348 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
1349 | 0 | } |
1350 | | // @@protoc_insertion_point(serialize_to_array_end:iCCP) |
1351 | 0 | return target; |
1352 | 0 | } |
1353 | | |
1354 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1355 | | ::size_t iCCP::ByteSizeLong(const MessageLite& base) { |
1356 | | const iCCP& this_ = static_cast<const iCCP&>(base); |
1357 | | #else // PROTOBUF_CUSTOM_VTABLE |
1358 | 0 | ::size_t iCCP::ByteSizeLong() const { |
1359 | 0 | const iCCP& this_ = *this; |
1360 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1361 | | // @@protoc_insertion_point(message_byte_size_start:iCCP) |
1362 | 0 | ::size_t total_size = 0; |
1363 | |
|
1364 | 0 | ::uint32_t cached_has_bits = 0; |
1365 | | // Prevent compiler warnings about cached_has_bits being unused |
1366 | 0 | (void)cached_has_bits; |
1367 | |
|
1368 | 0 | { |
1369 | | // required bytes data = 2; |
1370 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
1371 | 0 | if (cached_has_bits & 0x00000001u) { |
1372 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
1373 | 0 | this_._internal_data()); |
1374 | 0 | } |
1375 | 0 | } |
1376 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
1377 | 0 | &this_._impl_._cached_size_); |
1378 | 0 | } |
1379 | | |
1380 | 0 | void iCCP::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
1381 | 0 | auto* const _this = static_cast<iCCP*>(&to_msg); |
1382 | 0 | auto& from = static_cast<const iCCP&>(from_msg); |
1383 | | // @@protoc_insertion_point(class_specific_merge_from_start:iCCP) |
1384 | 0 | ABSL_DCHECK_NE(&from, _this); |
1385 | 0 | ::uint32_t cached_has_bits = 0; |
1386 | 0 | (void) cached_has_bits; |
1387 | |
|
1388 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
1389 | 0 | if (cached_has_bits & 0x00000001u) { |
1390 | 0 | _this->_internal_set_data(from._internal_data()); |
1391 | 0 | } |
1392 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
1393 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
1394 | 0 | } |
1395 | | |
1396 | 0 | void iCCP::CopyFrom(const iCCP& from) { |
1397 | | // @@protoc_insertion_point(class_specific_copy_from_start:iCCP) |
1398 | 0 | if (&from == this) return; |
1399 | 0 | Clear(); |
1400 | 0 | MergeFrom(from); |
1401 | 0 | } |
1402 | | |
1403 | | PROTOBUF_NOINLINE bool iCCP::IsInitializedImpl( |
1404 | 0 | const MessageLite& msg) { |
1405 | 0 | auto& this_ = static_cast<const iCCP&>(msg); |
1406 | 0 | if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { |
1407 | 0 | return false; |
1408 | 0 | } |
1409 | 0 | return true; |
1410 | 0 | } |
1411 | | |
1412 | 0 | void iCCP::InternalSwap(iCCP* PROTOBUF_RESTRICT other) { |
1413 | 0 | using std::swap; |
1414 | 0 | auto* arena = GetArena(); |
1415 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
1416 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1417 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
1418 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena); |
1419 | 0 | } |
1420 | | |
1421 | 0 | ::google::protobuf::Metadata iCCP::GetMetadata() const { |
1422 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
1423 | 0 | } |
1424 | | // =================================================================== |
1425 | | |
1426 | | class OtherChunk::_Internal { |
1427 | | public: |
1428 | | using HasBits = |
1429 | | decltype(std::declval<OtherChunk>()._impl_._has_bits_); |
1430 | | static constexpr ::int32_t kHasBitsOffset = |
1431 | | 8 * PROTOBUF_FIELD_OFFSET(OtherChunk, _impl_._has_bits_); |
1432 | | static constexpr ::int32_t kOneofCaseOffset = |
1433 | | PROTOBUF_FIELD_OFFSET(::OtherChunk, _impl_._oneof_case_); |
1434 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
1435 | 0 | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
1436 | 0 | } |
1437 | | }; |
1438 | | |
1439 | | OtherChunk::OtherChunk(::google::protobuf::Arena* arena) |
1440 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1441 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1442 | | #else // PROTOBUF_CUSTOM_VTABLE |
1443 | 35.7k | : ::google::protobuf::Message(arena) { |
1444 | 35.7k | #endif // PROTOBUF_CUSTOM_VTABLE |
1445 | 35.7k | SharedCtor(arena); |
1446 | | // @@protoc_insertion_point(arena_constructor:OtherChunk) |
1447 | 35.7k | } |
1448 | | inline PROTOBUF_NDEBUG_INLINE OtherChunk::Impl_::Impl_( |
1449 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
1450 | | const Impl_& from, const ::OtherChunk& from_msg) |
1451 | 0 | : _has_bits_{from._has_bits_}, |
1452 | 0 | _cached_size_{0}, |
1453 | 0 | data_(arena, from.data_), |
1454 | 0 | type_{}, |
1455 | 0 | _oneof_case_{from._oneof_case_[0]} {} |
1456 | | |
1457 | | OtherChunk::OtherChunk( |
1458 | | ::google::protobuf::Arena* arena, |
1459 | | const OtherChunk& from) |
1460 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1461 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1462 | | #else // PROTOBUF_CUSTOM_VTABLE |
1463 | 0 | : ::google::protobuf::Message(arena) { |
1464 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1465 | 0 | OtherChunk* const _this = this; |
1466 | 0 | (void)_this; |
1467 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
1468 | 0 | from._internal_metadata_); |
1469 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
1470 | 0 | switch (type_case()) { |
1471 | 0 | case TYPE_NOT_SET: |
1472 | 0 | break; |
1473 | 0 | case kKnownType: |
1474 | 0 | _impl_.type_.known_type_ = from._impl_.type_.known_type_; |
1475 | 0 | break; |
1476 | 0 | case kUnknownType: |
1477 | 0 | _impl_.type_.unknown_type_ = from._impl_.type_.unknown_type_; |
1478 | 0 | break; |
1479 | 0 | } |
1480 | | |
1481 | | // @@protoc_insertion_point(copy_constructor:OtherChunk) |
1482 | 0 | } |
1483 | | inline PROTOBUF_NDEBUG_INLINE OtherChunk::Impl_::Impl_( |
1484 | | ::google::protobuf::internal::InternalVisibility visibility, |
1485 | | ::google::protobuf::Arena* arena) |
1486 | 35.7k | : _cached_size_{0}, |
1487 | 35.7k | data_(arena), |
1488 | 35.7k | type_{}, |
1489 | 35.7k | _oneof_case_{} {} |
1490 | | |
1491 | 35.7k | inline void OtherChunk::SharedCtor(::_pb::Arena* arena) { |
1492 | 35.7k | new (&_impl_) Impl_(internal_visibility(), arena); |
1493 | 35.7k | } |
1494 | 35.7k | OtherChunk::~OtherChunk() { |
1495 | | // @@protoc_insertion_point(destructor:OtherChunk) |
1496 | 35.7k | SharedDtor(*this); |
1497 | 35.7k | } |
1498 | 35.7k | inline void OtherChunk::SharedDtor(MessageLite& self) { |
1499 | 35.7k | OtherChunk& this_ = static_cast<OtherChunk&>(self); |
1500 | 35.7k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
1501 | 35.7k | ABSL_DCHECK(this_.GetArena() == nullptr); |
1502 | 35.7k | this_._impl_.data_.Destroy(); |
1503 | 35.7k | if (this_.has_type()) { |
1504 | 35.1k | this_.clear_type(); |
1505 | 35.1k | } |
1506 | 35.7k | this_._impl_.~Impl_(); |
1507 | 35.7k | } |
1508 | | |
1509 | 35.1k | void OtherChunk::clear_type() { |
1510 | | // @@protoc_insertion_point(one_of_clear_start:OtherChunk) |
1511 | 35.1k | ::google::protobuf::internal::TSanWrite(&_impl_); |
1512 | 35.1k | switch (type_case()) { |
1513 | 30.2k | case kKnownType: { |
1514 | | // No need to clear |
1515 | 30.2k | break; |
1516 | 0 | } |
1517 | 4.86k | case kUnknownType: { |
1518 | | // No need to clear |
1519 | 4.86k | break; |
1520 | 0 | } |
1521 | 0 | case TYPE_NOT_SET: { |
1522 | 0 | break; |
1523 | 0 | } |
1524 | 35.1k | } |
1525 | 35.1k | _impl_._oneof_case_[0] = TYPE_NOT_SET; |
1526 | 35.1k | } |
1527 | | |
1528 | | |
1529 | | inline void* OtherChunk::PlacementNew_(const void*, void* mem, |
1530 | 35.7k | ::google::protobuf::Arena* arena) { |
1531 | 35.7k | return ::new (mem) OtherChunk(arena); |
1532 | 35.7k | } |
1533 | 0 | constexpr auto OtherChunk::InternalNewImpl_() { |
1534 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(OtherChunk), |
1535 | 0 | alignof(OtherChunk)); |
1536 | 0 | } |
1537 | | PROTOBUF_CONSTINIT |
1538 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1539 | | const ::google::protobuf::internal::ClassDataFull OtherChunk::_class_data_ = { |
1540 | | ::google::protobuf::internal::ClassData{ |
1541 | | &_OtherChunk_default_instance_._instance, |
1542 | | &_table_.header, |
1543 | | nullptr, // OnDemandRegisterArenaDtor |
1544 | | OtherChunk::IsInitializedImpl, |
1545 | | &OtherChunk::MergeImpl, |
1546 | | ::google::protobuf::Message::GetNewImpl<OtherChunk>(), |
1547 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1548 | | &OtherChunk::SharedDtor, |
1549 | | ::google::protobuf::Message::GetClearImpl<OtherChunk>(), &OtherChunk::ByteSizeLong, |
1550 | | &OtherChunk::_InternalSerialize, |
1551 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1552 | | PROTOBUF_FIELD_OFFSET(OtherChunk, _impl_._cached_size_), |
1553 | | false, |
1554 | | }, |
1555 | | &OtherChunk::kDescriptorMethods, |
1556 | | &descriptor_table_png_5ffuzz_5fproto_2eproto, |
1557 | | nullptr, // tracker |
1558 | | }; |
1559 | 462k | const ::google::protobuf::internal::ClassData* OtherChunk::GetClassData() const { |
1560 | 462k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
1561 | 462k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
1562 | 462k | return _class_data_.base(); |
1563 | 462k | } |
1564 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1565 | | const ::_pbi::TcParseTable<0, 3, 0, 0, 2> OtherChunk::_table_ = { |
1566 | | { |
1567 | | PROTOBUF_FIELD_OFFSET(OtherChunk, _impl_._has_bits_), |
1568 | | 0, // no _extensions_ |
1569 | | 3, 0, // max_field_number, fast_idx_mask |
1570 | | offsetof(decltype(_table_), field_lookup_table), |
1571 | | 4294967288, // skipmap |
1572 | | offsetof(decltype(_table_), field_entries), |
1573 | | 3, // num_field_entries |
1574 | | 0, // num_aux_entries |
1575 | | offsetof(decltype(_table_), field_names), // no aux_entries |
1576 | | _class_data_.base(), |
1577 | | nullptr, // post_loop_handler |
1578 | | ::_pbi::TcParser::GenericFallback, // fallback |
1579 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
1580 | | ::_pbi::TcParser::GetTable<::OtherChunk>(), // to_prefetch |
1581 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
1582 | | }, {{ |
1583 | | // required bytes data = 3; |
1584 | | {::_pbi::TcParser::FastBS1, |
1585 | | {26, 0, 0, PROTOBUF_FIELD_OFFSET(OtherChunk, _impl_.data_)}}, |
1586 | | }}, {{ |
1587 | | 65535, 65535 |
1588 | | }}, {{ |
1589 | | // uint32 known_type = 1; |
1590 | | {PROTOBUF_FIELD_OFFSET(OtherChunk, _impl_.type_.known_type_), _Internal::kOneofCaseOffset + 0, 0, |
1591 | | (0 | ::_fl::kFcOneof | ::_fl::kUInt32)}, |
1592 | | // uint32 unknown_type = 2; |
1593 | | {PROTOBUF_FIELD_OFFSET(OtherChunk, _impl_.type_.unknown_type_), _Internal::kOneofCaseOffset + 0, 0, |
1594 | | (0 | ::_fl::kFcOneof | ::_fl::kUInt32)}, |
1595 | | // required bytes data = 3; |
1596 | | {PROTOBUF_FIELD_OFFSET(OtherChunk, _impl_.data_), _Internal::kHasBitsOffset + 0, 0, |
1597 | | (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, |
1598 | | }}, |
1599 | | // no aux_entries |
1600 | | {{ |
1601 | | }}, |
1602 | | }; |
1603 | | |
1604 | 0 | PROTOBUF_NOINLINE void OtherChunk::Clear() { |
1605 | | // @@protoc_insertion_point(message_clear_start:OtherChunk) |
1606 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1607 | 0 | ::uint32_t cached_has_bits = 0; |
1608 | | // Prevent compiler warnings about cached_has_bits being unused |
1609 | 0 | (void) cached_has_bits; |
1610 | |
|
1611 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
1612 | 0 | if (cached_has_bits & 0x00000001u) { |
1613 | 0 | _impl_.data_.ClearNonDefaultToEmpty(); |
1614 | 0 | } |
1615 | 0 | clear_type(); |
1616 | 0 | _impl_._has_bits_.Clear(); |
1617 | 0 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
1618 | 0 | } |
1619 | | |
1620 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1621 | | ::uint8_t* OtherChunk::_InternalSerialize( |
1622 | | const MessageLite& base, ::uint8_t* target, |
1623 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
1624 | | const OtherChunk& this_ = static_cast<const OtherChunk&>(base); |
1625 | | #else // PROTOBUF_CUSTOM_VTABLE |
1626 | | ::uint8_t* OtherChunk::_InternalSerialize( |
1627 | | ::uint8_t* target, |
1628 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1629 | 0 | const OtherChunk& this_ = *this; |
1630 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1631 | | // @@protoc_insertion_point(serialize_to_array_start:OtherChunk) |
1632 | 0 | ::uint32_t cached_has_bits = 0; |
1633 | 0 | (void)cached_has_bits; |
1634 | |
|
1635 | 0 | switch (this_.type_case()) { |
1636 | 0 | case kKnownType: { |
1637 | 0 | target = stream->EnsureSpace(target); |
1638 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
1639 | 0 | 1, this_._internal_known_type(), target); |
1640 | 0 | break; |
1641 | 0 | } |
1642 | 0 | case kUnknownType: { |
1643 | 0 | target = stream->EnsureSpace(target); |
1644 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
1645 | 0 | 2, this_._internal_unknown_type(), target); |
1646 | 0 | break; |
1647 | 0 | } |
1648 | 0 | default: |
1649 | 0 | break; |
1650 | 0 | } |
1651 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
1652 | | // required bytes data = 3; |
1653 | 0 | if (cached_has_bits & 0x00000001u) { |
1654 | 0 | const std::string& _s = this_._internal_data(); |
1655 | 0 | target = stream->WriteBytesMaybeAliased(3, _s, target); |
1656 | 0 | } |
1657 | |
|
1658 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
1659 | 0 | target = |
1660 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1661 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
1662 | 0 | } |
1663 | | // @@protoc_insertion_point(serialize_to_array_end:OtherChunk) |
1664 | 0 | return target; |
1665 | 0 | } |
1666 | | |
1667 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1668 | | ::size_t OtherChunk::ByteSizeLong(const MessageLite& base) { |
1669 | | const OtherChunk& this_ = static_cast<const OtherChunk&>(base); |
1670 | | #else // PROTOBUF_CUSTOM_VTABLE |
1671 | 0 | ::size_t OtherChunk::ByteSizeLong() const { |
1672 | 0 | const OtherChunk& this_ = *this; |
1673 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1674 | | // @@protoc_insertion_point(message_byte_size_start:OtherChunk) |
1675 | 0 | ::size_t total_size = 0; |
1676 | |
|
1677 | 0 | ::uint32_t cached_has_bits = 0; |
1678 | | // Prevent compiler warnings about cached_has_bits being unused |
1679 | 0 | (void)cached_has_bits; |
1680 | |
|
1681 | 0 | { |
1682 | | // required bytes data = 3; |
1683 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
1684 | 0 | if (cached_has_bits & 0x00000001u) { |
1685 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
1686 | 0 | this_._internal_data()); |
1687 | 0 | } |
1688 | 0 | } |
1689 | 0 | switch (this_.type_case()) { |
1690 | | // uint32 known_type = 1; |
1691 | 0 | case kKnownType: { |
1692 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
1693 | 0 | this_._internal_known_type()); |
1694 | 0 | break; |
1695 | 0 | } |
1696 | | // uint32 unknown_type = 2; |
1697 | 0 | case kUnknownType: { |
1698 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
1699 | 0 | this_._internal_unknown_type()); |
1700 | 0 | break; |
1701 | 0 | } |
1702 | 0 | case TYPE_NOT_SET: { |
1703 | 0 | break; |
1704 | 0 | } |
1705 | 0 | } |
1706 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
1707 | 0 | &this_._impl_._cached_size_); |
1708 | 0 | } |
1709 | | |
1710 | 0 | void OtherChunk::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
1711 | 0 | auto* const _this = static_cast<OtherChunk*>(&to_msg); |
1712 | 0 | auto& from = static_cast<const OtherChunk&>(from_msg); |
1713 | | // @@protoc_insertion_point(class_specific_merge_from_start:OtherChunk) |
1714 | 0 | ABSL_DCHECK_NE(&from, _this); |
1715 | 0 | ::uint32_t cached_has_bits = 0; |
1716 | 0 | (void) cached_has_bits; |
1717 | |
|
1718 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
1719 | 0 | if (cached_has_bits & 0x00000001u) { |
1720 | 0 | _this->_internal_set_data(from._internal_data()); |
1721 | 0 | } |
1722 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
1723 | 0 | if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { |
1724 | 0 | const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; |
1725 | 0 | const bool oneof_needs_init = oneof_to_case != oneof_from_case; |
1726 | 0 | if (oneof_needs_init) { |
1727 | 0 | if (oneof_to_case != 0) { |
1728 | 0 | _this->clear_type(); |
1729 | 0 | } |
1730 | 0 | _this->_impl_._oneof_case_[0] = oneof_from_case; |
1731 | 0 | } |
1732 | |
|
1733 | 0 | switch (oneof_from_case) { |
1734 | 0 | case kKnownType: { |
1735 | 0 | _this->_impl_.type_.known_type_ = from._impl_.type_.known_type_; |
1736 | 0 | break; |
1737 | 0 | } |
1738 | 0 | case kUnknownType: { |
1739 | 0 | _this->_impl_.type_.unknown_type_ = from._impl_.type_.unknown_type_; |
1740 | 0 | break; |
1741 | 0 | } |
1742 | 0 | case TYPE_NOT_SET: |
1743 | 0 | break; |
1744 | 0 | } |
1745 | 0 | } |
1746 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
1747 | 0 | } |
1748 | | |
1749 | 0 | void OtherChunk::CopyFrom(const OtherChunk& from) { |
1750 | | // @@protoc_insertion_point(class_specific_copy_from_start:OtherChunk) |
1751 | 0 | if (&from == this) return; |
1752 | 0 | Clear(); |
1753 | 0 | MergeFrom(from); |
1754 | 0 | } |
1755 | | |
1756 | | PROTOBUF_NOINLINE bool OtherChunk::IsInitializedImpl( |
1757 | 0 | const MessageLite& msg) { |
1758 | 0 | auto& this_ = static_cast<const OtherChunk&>(msg); |
1759 | 0 | if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { |
1760 | 0 | return false; |
1761 | 0 | } |
1762 | 0 | return true; |
1763 | 0 | } |
1764 | | |
1765 | 0 | void OtherChunk::InternalSwap(OtherChunk* PROTOBUF_RESTRICT other) { |
1766 | 0 | using std::swap; |
1767 | 0 | auto* arena = GetArena(); |
1768 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
1769 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1770 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
1771 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena); |
1772 | 0 | swap(_impl_.type_, other->_impl_.type_); |
1773 | 0 | swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); |
1774 | 0 | } |
1775 | | |
1776 | 2 | ::google::protobuf::Metadata OtherChunk::GetMetadata() const { |
1777 | 2 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
1778 | 2 | } |
1779 | | // =================================================================== |
1780 | | |
1781 | | class PngChunk::_Internal { |
1782 | | public: |
1783 | | static constexpr ::int32_t kOneofCaseOffset = |
1784 | | PROTOBUF_FIELD_OFFSET(::PngChunk, _impl_._oneof_case_); |
1785 | | }; |
1786 | | |
1787 | 0 | void PngChunk::set_allocated_plte(::PLTE* plte) { |
1788 | 0 | ::google::protobuf::Arena* message_arena = GetArena(); |
1789 | 0 | clear_chunk(); |
1790 | 0 | if (plte) { |
1791 | 0 | ::google::protobuf::Arena* submessage_arena = plte->GetArena(); |
1792 | 0 | if (message_arena != submessage_arena) { |
1793 | 0 | plte = ::google::protobuf::internal::GetOwnedMessage(message_arena, plte, submessage_arena); |
1794 | 0 | } |
1795 | 0 | set_has_plte(); |
1796 | 0 | _impl_.chunk_.plte_ = plte; |
1797 | 0 | } |
1798 | | // @@protoc_insertion_point(field_set_allocated:PngChunk.plte) |
1799 | 0 | } |
1800 | 0 | void PngChunk::set_allocated_idat(::IDAT* idat) { |
1801 | 0 | ::google::protobuf::Arena* message_arena = GetArena(); |
1802 | 0 | clear_chunk(); |
1803 | 0 | if (idat) { |
1804 | 0 | ::google::protobuf::Arena* submessage_arena = idat->GetArena(); |
1805 | 0 | if (message_arena != submessage_arena) { |
1806 | 0 | idat = ::google::protobuf::internal::GetOwnedMessage(message_arena, idat, submessage_arena); |
1807 | 0 | } |
1808 | 0 | set_has_idat(); |
1809 | 0 | _impl_.chunk_.idat_ = idat; |
1810 | 0 | } |
1811 | | // @@protoc_insertion_point(field_set_allocated:PngChunk.idat) |
1812 | 0 | } |
1813 | 0 | void PngChunk::set_allocated_iccp(::iCCP* iccp) { |
1814 | 0 | ::google::protobuf::Arena* message_arena = GetArena(); |
1815 | 0 | clear_chunk(); |
1816 | 0 | if (iccp) { |
1817 | 0 | ::google::protobuf::Arena* submessage_arena = iccp->GetArena(); |
1818 | 0 | if (message_arena != submessage_arena) { |
1819 | 0 | iccp = ::google::protobuf::internal::GetOwnedMessage(message_arena, iccp, submessage_arena); |
1820 | 0 | } |
1821 | 0 | set_has_iccp(); |
1822 | 0 | _impl_.chunk_.iccp_ = iccp; |
1823 | 0 | } |
1824 | | // @@protoc_insertion_point(field_set_allocated:PngChunk.iccp) |
1825 | 0 | } |
1826 | 0 | void PngChunk::set_allocated_other_chunk(::OtherChunk* other_chunk) { |
1827 | 0 | ::google::protobuf::Arena* message_arena = GetArena(); |
1828 | 0 | clear_chunk(); |
1829 | 0 | if (other_chunk) { |
1830 | 0 | ::google::protobuf::Arena* submessage_arena = other_chunk->GetArena(); |
1831 | 0 | if (message_arena != submessage_arena) { |
1832 | 0 | other_chunk = ::google::protobuf::internal::GetOwnedMessage(message_arena, other_chunk, submessage_arena); |
1833 | 0 | } |
1834 | 0 | set_has_other_chunk(); |
1835 | 0 | _impl_.chunk_.other_chunk_ = other_chunk; |
1836 | 0 | } |
1837 | | // @@protoc_insertion_point(field_set_allocated:PngChunk.other_chunk) |
1838 | 0 | } |
1839 | | PngChunk::PngChunk(::google::protobuf::Arena* arena) |
1840 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1841 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1842 | | #else // PROTOBUF_CUSTOM_VTABLE |
1843 | 61.7k | : ::google::protobuf::Message(arena) { |
1844 | 61.7k | #endif // PROTOBUF_CUSTOM_VTABLE |
1845 | 61.7k | SharedCtor(arena); |
1846 | | // @@protoc_insertion_point(arena_constructor:PngChunk) |
1847 | 61.7k | } |
1848 | | inline PROTOBUF_NDEBUG_INLINE PngChunk::Impl_::Impl_( |
1849 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
1850 | | const Impl_& from, const ::PngChunk& from_msg) |
1851 | 0 | : chunk_{}, |
1852 | 0 | _cached_size_{0}, |
1853 | 0 | _oneof_case_{from._oneof_case_[0]} {} |
1854 | | |
1855 | | PngChunk::PngChunk( |
1856 | | ::google::protobuf::Arena* arena, |
1857 | | const PngChunk& from) |
1858 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1859 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1860 | | #else // PROTOBUF_CUSTOM_VTABLE |
1861 | 0 | : ::google::protobuf::Message(arena) { |
1862 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1863 | 0 | PngChunk* const _this = this; |
1864 | 0 | (void)_this; |
1865 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
1866 | 0 | from._internal_metadata_); |
1867 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
1868 | 0 | switch (chunk_case()) { |
1869 | 0 | case CHUNK_NOT_SET: |
1870 | 0 | break; |
1871 | 0 | case kPlte: |
1872 | 0 | _impl_.chunk_.plte_ = ::google::protobuf::Message::CopyConstruct<::PLTE>(arena, *from._impl_.chunk_.plte_); |
1873 | 0 | break; |
1874 | 0 | case kIdat: |
1875 | 0 | _impl_.chunk_.idat_ = ::google::protobuf::Message::CopyConstruct<::IDAT>(arena, *from._impl_.chunk_.idat_); |
1876 | 0 | break; |
1877 | 0 | case kIccp: |
1878 | 0 | _impl_.chunk_.iccp_ = ::google::protobuf::Message::CopyConstruct<::iCCP>(arena, *from._impl_.chunk_.iccp_); |
1879 | 0 | break; |
1880 | 0 | case kOtherChunk: |
1881 | 0 | _impl_.chunk_.other_chunk_ = ::google::protobuf::Message::CopyConstruct<::OtherChunk>(arena, *from._impl_.chunk_.other_chunk_); |
1882 | 0 | break; |
1883 | 0 | } |
1884 | | |
1885 | | // @@protoc_insertion_point(copy_constructor:PngChunk) |
1886 | 0 | } |
1887 | | inline PROTOBUF_NDEBUG_INLINE PngChunk::Impl_::Impl_( |
1888 | | ::google::protobuf::internal::InternalVisibility visibility, |
1889 | | ::google::protobuf::Arena* arena) |
1890 | 61.7k | : chunk_{}, |
1891 | 61.7k | _cached_size_{0}, |
1892 | 61.7k | _oneof_case_{} {} |
1893 | | |
1894 | 61.7k | inline void PngChunk::SharedCtor(::_pb::Arena* arena) { |
1895 | 61.7k | new (&_impl_) Impl_(internal_visibility(), arena); |
1896 | 61.7k | } |
1897 | 61.7k | PngChunk::~PngChunk() { |
1898 | | // @@protoc_insertion_point(destructor:PngChunk) |
1899 | 61.7k | SharedDtor(*this); |
1900 | 61.7k | } |
1901 | 61.7k | inline void PngChunk::SharedDtor(MessageLite& self) { |
1902 | 61.7k | PngChunk& this_ = static_cast<PngChunk&>(self); |
1903 | 61.7k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
1904 | 61.7k | ABSL_DCHECK(this_.GetArena() == nullptr); |
1905 | 61.7k | if (this_.has_chunk()) { |
1906 | 58.9k | this_.clear_chunk(); |
1907 | 58.9k | } |
1908 | 61.7k | this_._impl_.~Impl_(); |
1909 | 61.7k | } |
1910 | | |
1911 | 59.5k | void PngChunk::clear_chunk() { |
1912 | | // @@protoc_insertion_point(one_of_clear_start:PngChunk) |
1913 | 59.5k | ::google::protobuf::internal::TSanWrite(&_impl_); |
1914 | 59.5k | switch (chunk_case()) { |
1915 | 4.99k | case kPlte: { |
1916 | 4.99k | if (GetArena() == nullptr) { |
1917 | 4.99k | delete _impl_.chunk_.plte_; |
1918 | 4.99k | } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { |
1919 | 0 | ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.chunk_.plte_); |
1920 | 0 | } |
1921 | 4.99k | break; |
1922 | 0 | } |
1923 | 9.69k | case kIdat: { |
1924 | 9.69k | if (GetArena() == nullptr) { |
1925 | 9.69k | delete _impl_.chunk_.idat_; |
1926 | 9.69k | } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { |
1927 | 0 | ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.chunk_.idat_); |
1928 | 0 | } |
1929 | 9.69k | break; |
1930 | 0 | } |
1931 | 8.58k | case kIccp: { |
1932 | 8.58k | if (GetArena() == nullptr) { |
1933 | 8.58k | delete _impl_.chunk_.iccp_; |
1934 | 8.58k | } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { |
1935 | 0 | ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.chunk_.iccp_); |
1936 | 0 | } |
1937 | 8.58k | break; |
1938 | 0 | } |
1939 | 35.7k | case kOtherChunk: { |
1940 | 35.7k | if (GetArena() == nullptr) { |
1941 | 35.7k | delete _impl_.chunk_.other_chunk_; |
1942 | 35.7k | } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { |
1943 | 0 | ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.chunk_.other_chunk_); |
1944 | 0 | } |
1945 | 35.7k | break; |
1946 | 0 | } |
1947 | 619 | case CHUNK_NOT_SET: { |
1948 | 619 | break; |
1949 | 0 | } |
1950 | 59.5k | } |
1951 | 59.5k | _impl_._oneof_case_[0] = CHUNK_NOT_SET; |
1952 | 59.5k | } |
1953 | | |
1954 | | |
1955 | | inline void* PngChunk::PlacementNew_(const void*, void* mem, |
1956 | 61.7k | ::google::protobuf::Arena* arena) { |
1957 | 61.7k | return ::new (mem) PngChunk(arena); |
1958 | 61.7k | } |
1959 | 0 | constexpr auto PngChunk::InternalNewImpl_() { |
1960 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(PngChunk), |
1961 | 0 | alignof(PngChunk)); |
1962 | 0 | } |
1963 | | PROTOBUF_CONSTINIT |
1964 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1965 | | const ::google::protobuf::internal::ClassDataFull PngChunk::_class_data_ = { |
1966 | | ::google::protobuf::internal::ClassData{ |
1967 | | &_PngChunk_default_instance_._instance, |
1968 | | &_table_.header, |
1969 | | nullptr, // OnDemandRegisterArenaDtor |
1970 | | PngChunk::IsInitializedImpl, |
1971 | | &PngChunk::MergeImpl, |
1972 | | ::google::protobuf::Message::GetNewImpl<PngChunk>(), |
1973 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1974 | | &PngChunk::SharedDtor, |
1975 | | ::google::protobuf::Message::GetClearImpl<PngChunk>(), &PngChunk::ByteSizeLong, |
1976 | | &PngChunk::_InternalSerialize, |
1977 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1978 | | PROTOBUF_FIELD_OFFSET(PngChunk, _impl_._cached_size_), |
1979 | | false, |
1980 | | }, |
1981 | | &PngChunk::kDescriptorMethods, |
1982 | | &descriptor_table_png_5ffuzz_5fproto_2eproto, |
1983 | | nullptr, // tracker |
1984 | | }; |
1985 | 605k | const ::google::protobuf::internal::ClassData* PngChunk::GetClassData() const { |
1986 | 605k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
1987 | 605k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
1988 | 605k | return _class_data_.base(); |
1989 | 605k | } |
1990 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1991 | | const ::_pbi::TcParseTable<0, 4, 4, 0, 7> PngChunk::_table_ = { |
1992 | | { |
1993 | | 0, // no _has_bits_ |
1994 | | 0, // no _extensions_ |
1995 | | 10000, 0, // max_field_number, fast_idx_mask |
1996 | | offsetof(decltype(_table_), field_lookup_table), |
1997 | | 4294967288, // skipmap |
1998 | | offsetof(decltype(_table_), field_entries), |
1999 | | 4, // num_field_entries |
2000 | | 4, // num_aux_entries |
2001 | | offsetof(decltype(_table_), aux_entries), |
2002 | | _class_data_.base(), |
2003 | | nullptr, // post_loop_handler |
2004 | | ::_pbi::TcParser::GenericFallback, // fallback |
2005 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
2006 | | ::_pbi::TcParser::GetTable<::PngChunk>(), // to_prefetch |
2007 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
2008 | | }, {{ |
2009 | | {::_pbi::TcParser::MiniParse, {}}, |
2010 | | }}, {{ |
2011 | | 10000, 0, 1, |
2012 | | 65534, 3, |
2013 | | 65535, 65535 |
2014 | | }}, {{ |
2015 | | // .PLTE plte = 1; |
2016 | | {PROTOBUF_FIELD_OFFSET(PngChunk, _impl_.chunk_.plte_), _Internal::kOneofCaseOffset + 0, 0, |
2017 | | (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, |
2018 | | // .IDAT idat = 2; |
2019 | | {PROTOBUF_FIELD_OFFSET(PngChunk, _impl_.chunk_.idat_), _Internal::kOneofCaseOffset + 0, 1, |
2020 | | (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, |
2021 | | // .iCCP iccp = 3; |
2022 | | {PROTOBUF_FIELD_OFFSET(PngChunk, _impl_.chunk_.iccp_), _Internal::kOneofCaseOffset + 0, 2, |
2023 | | (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, |
2024 | | // .OtherChunk other_chunk = 10000; |
2025 | | {PROTOBUF_FIELD_OFFSET(PngChunk, _impl_.chunk_.other_chunk_), _Internal::kOneofCaseOffset + 0, 3, |
2026 | | (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, |
2027 | | }}, {{ |
2028 | | {::_pbi::TcParser::GetTable<::PLTE>()}, |
2029 | | {::_pbi::TcParser::GetTable<::IDAT>()}, |
2030 | | {::_pbi::TcParser::GetTable<::iCCP>()}, |
2031 | | {::_pbi::TcParser::GetTable<::OtherChunk>()}, |
2032 | | }}, {{ |
2033 | | }}, |
2034 | | }; |
2035 | | |
2036 | 621 | PROTOBUF_NOINLINE void PngChunk::Clear() { |
2037 | | // @@protoc_insertion_point(message_clear_start:PngChunk) |
2038 | 621 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2039 | 621 | ::uint32_t cached_has_bits = 0; |
2040 | | // Prevent compiler warnings about cached_has_bits being unused |
2041 | 621 | (void) cached_has_bits; |
2042 | | |
2043 | 621 | clear_chunk(); |
2044 | 621 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
2045 | 621 | } |
2046 | | |
2047 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2048 | | ::uint8_t* PngChunk::_InternalSerialize( |
2049 | | const MessageLite& base, ::uint8_t* target, |
2050 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
2051 | | const PngChunk& this_ = static_cast<const PngChunk&>(base); |
2052 | | #else // PROTOBUF_CUSTOM_VTABLE |
2053 | | ::uint8_t* PngChunk::_InternalSerialize( |
2054 | | ::uint8_t* target, |
2055 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
2056 | 0 | const PngChunk& this_ = *this; |
2057 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2058 | | // @@protoc_insertion_point(serialize_to_array_start:PngChunk) |
2059 | 0 | ::uint32_t cached_has_bits = 0; |
2060 | 0 | (void)cached_has_bits; |
2061 | |
|
2062 | 0 | switch (this_.chunk_case()) { |
2063 | 0 | case kPlte: { |
2064 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
2065 | 0 | 1, *this_._impl_.chunk_.plte_, this_._impl_.chunk_.plte_->GetCachedSize(), target, |
2066 | 0 | stream); |
2067 | 0 | break; |
2068 | 0 | } |
2069 | 0 | case kIdat: { |
2070 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
2071 | 0 | 2, *this_._impl_.chunk_.idat_, this_._impl_.chunk_.idat_->GetCachedSize(), target, |
2072 | 0 | stream); |
2073 | 0 | break; |
2074 | 0 | } |
2075 | 0 | case kIccp: { |
2076 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
2077 | 0 | 3, *this_._impl_.chunk_.iccp_, this_._impl_.chunk_.iccp_->GetCachedSize(), target, |
2078 | 0 | stream); |
2079 | 0 | break; |
2080 | 0 | } |
2081 | 0 | case kOtherChunk: { |
2082 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
2083 | 0 | 10000, *this_._impl_.chunk_.other_chunk_, this_._impl_.chunk_.other_chunk_->GetCachedSize(), target, |
2084 | 0 | stream); |
2085 | 0 | break; |
2086 | 0 | } |
2087 | 0 | default: |
2088 | 0 | break; |
2089 | 0 | } |
2090 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
2091 | 0 | target = |
2092 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
2093 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
2094 | 0 | } |
2095 | | // @@protoc_insertion_point(serialize_to_array_end:PngChunk) |
2096 | 0 | return target; |
2097 | 0 | } |
2098 | | |
2099 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2100 | | ::size_t PngChunk::ByteSizeLong(const MessageLite& base) { |
2101 | | const PngChunk& this_ = static_cast<const PngChunk&>(base); |
2102 | | #else // PROTOBUF_CUSTOM_VTABLE |
2103 | 0 | ::size_t PngChunk::ByteSizeLong() const { |
2104 | 0 | const PngChunk& this_ = *this; |
2105 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2106 | | // @@protoc_insertion_point(message_byte_size_start:PngChunk) |
2107 | 0 | ::size_t total_size = 0; |
2108 | |
|
2109 | 0 | ::uint32_t cached_has_bits = 0; |
2110 | | // Prevent compiler warnings about cached_has_bits being unused |
2111 | 0 | (void)cached_has_bits; |
2112 | |
|
2113 | 0 | switch (this_.chunk_case()) { |
2114 | | // .PLTE plte = 1; |
2115 | 0 | case kPlte: { |
2116 | 0 | total_size += 1 + |
2117 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.chunk_.plte_); |
2118 | 0 | break; |
2119 | 0 | } |
2120 | | // .IDAT idat = 2; |
2121 | 0 | case kIdat: { |
2122 | 0 | total_size += 1 + |
2123 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.chunk_.idat_); |
2124 | 0 | break; |
2125 | 0 | } |
2126 | | // .iCCP iccp = 3; |
2127 | 0 | case kIccp: { |
2128 | 0 | total_size += 1 + |
2129 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.chunk_.iccp_); |
2130 | 0 | break; |
2131 | 0 | } |
2132 | | // .OtherChunk other_chunk = 10000; |
2133 | 0 | case kOtherChunk: { |
2134 | 0 | total_size += 3 + |
2135 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.chunk_.other_chunk_); |
2136 | 0 | break; |
2137 | 0 | } |
2138 | 0 | case CHUNK_NOT_SET: { |
2139 | 0 | break; |
2140 | 0 | } |
2141 | 0 | } |
2142 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
2143 | 0 | &this_._impl_._cached_size_); |
2144 | 0 | } |
2145 | | |
2146 | 0 | void PngChunk::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
2147 | 0 | auto* const _this = static_cast<PngChunk*>(&to_msg); |
2148 | 0 | auto& from = static_cast<const PngChunk&>(from_msg); |
2149 | 0 | ::google::protobuf::Arena* arena = _this->GetArena(); |
2150 | | // @@protoc_insertion_point(class_specific_merge_from_start:PngChunk) |
2151 | 0 | ABSL_DCHECK_NE(&from, _this); |
2152 | 0 | ::uint32_t cached_has_bits = 0; |
2153 | 0 | (void) cached_has_bits; |
2154 | |
|
2155 | 0 | if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { |
2156 | 0 | const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; |
2157 | 0 | const bool oneof_needs_init = oneof_to_case != oneof_from_case; |
2158 | 0 | if (oneof_needs_init) { |
2159 | 0 | if (oneof_to_case != 0) { |
2160 | 0 | _this->clear_chunk(); |
2161 | 0 | } |
2162 | 0 | _this->_impl_._oneof_case_[0] = oneof_from_case; |
2163 | 0 | } |
2164 | |
|
2165 | 0 | switch (oneof_from_case) { |
2166 | 0 | case kPlte: { |
2167 | 0 | if (oneof_needs_init) { |
2168 | 0 | _this->_impl_.chunk_.plte_ = |
2169 | 0 | ::google::protobuf::Message::CopyConstruct<::PLTE>(arena, *from._impl_.chunk_.plte_); |
2170 | 0 | } else { |
2171 | 0 | _this->_impl_.chunk_.plte_->MergeFrom(from._internal_plte()); |
2172 | 0 | } |
2173 | 0 | break; |
2174 | 0 | } |
2175 | 0 | case kIdat: { |
2176 | 0 | if (oneof_needs_init) { |
2177 | 0 | _this->_impl_.chunk_.idat_ = |
2178 | 0 | ::google::protobuf::Message::CopyConstruct<::IDAT>(arena, *from._impl_.chunk_.idat_); |
2179 | 0 | } else { |
2180 | 0 | _this->_impl_.chunk_.idat_->MergeFrom(from._internal_idat()); |
2181 | 0 | } |
2182 | 0 | break; |
2183 | 0 | } |
2184 | 0 | case kIccp: { |
2185 | 0 | if (oneof_needs_init) { |
2186 | 0 | _this->_impl_.chunk_.iccp_ = |
2187 | 0 | ::google::protobuf::Message::CopyConstruct<::iCCP>(arena, *from._impl_.chunk_.iccp_); |
2188 | 0 | } else { |
2189 | 0 | _this->_impl_.chunk_.iccp_->MergeFrom(from._internal_iccp()); |
2190 | 0 | } |
2191 | 0 | break; |
2192 | 0 | } |
2193 | 0 | case kOtherChunk: { |
2194 | 0 | if (oneof_needs_init) { |
2195 | 0 | _this->_impl_.chunk_.other_chunk_ = |
2196 | 0 | ::google::protobuf::Message::CopyConstruct<::OtherChunk>(arena, *from._impl_.chunk_.other_chunk_); |
2197 | 0 | } else { |
2198 | 0 | _this->_impl_.chunk_.other_chunk_->MergeFrom(from._internal_other_chunk()); |
2199 | 0 | } |
2200 | 0 | break; |
2201 | 0 | } |
2202 | 0 | case CHUNK_NOT_SET: |
2203 | 0 | break; |
2204 | 0 | } |
2205 | 0 | } |
2206 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
2207 | 0 | } |
2208 | | |
2209 | 0 | void PngChunk::CopyFrom(const PngChunk& from) { |
2210 | | // @@protoc_insertion_point(class_specific_copy_from_start:PngChunk) |
2211 | 0 | if (&from == this) return; |
2212 | 0 | Clear(); |
2213 | 0 | MergeFrom(from); |
2214 | 0 | } |
2215 | | |
2216 | | PROTOBUF_NOINLINE bool PngChunk::IsInitializedImpl( |
2217 | 0 | const MessageLite& msg) { |
2218 | 0 | auto& this_ = static_cast<const PngChunk&>(msg); |
2219 | 0 | switch (this_.chunk_case()) { |
2220 | 0 | case kPlte: { |
2221 | 0 | if (this_.chunk_case() == kPlte && !this_._impl_.chunk_.plte_->IsInitialized()) |
2222 | 0 | return false; |
2223 | 0 | break; |
2224 | 0 | } |
2225 | 0 | case kIdat: { |
2226 | 0 | if (this_.chunk_case() == kIdat && !this_._impl_.chunk_.idat_->IsInitialized()) |
2227 | 0 | return false; |
2228 | 0 | break; |
2229 | 0 | } |
2230 | 0 | case kIccp: { |
2231 | 0 | if (this_.chunk_case() == kIccp && !this_._impl_.chunk_.iccp_->IsInitialized()) |
2232 | 0 | return false; |
2233 | 0 | break; |
2234 | 0 | } |
2235 | 0 | case kOtherChunk: { |
2236 | 0 | if (this_.chunk_case() == kOtherChunk && !this_._impl_.chunk_.other_chunk_->IsInitialized()) |
2237 | 0 | return false; |
2238 | 0 | break; |
2239 | 0 | } |
2240 | 0 | case CHUNK_NOT_SET: { |
2241 | 0 | break; |
2242 | 0 | } |
2243 | 0 | } |
2244 | 0 | return true; |
2245 | 0 | } |
2246 | | |
2247 | 0 | void PngChunk::InternalSwap(PngChunk* PROTOBUF_RESTRICT other) { |
2248 | 0 | using std::swap; |
2249 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
2250 | 0 | swap(_impl_.chunk_, other->_impl_.chunk_); |
2251 | 0 | swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); |
2252 | 0 | } |
2253 | | |
2254 | 0 | ::google::protobuf::Metadata PngChunk::GetMetadata() const { |
2255 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
2256 | 0 | } |
2257 | | // =================================================================== |
2258 | | |
2259 | | class PngProto::_Internal { |
2260 | | public: |
2261 | | using HasBits = |
2262 | | decltype(std::declval<PngProto>()._impl_._has_bits_); |
2263 | | static constexpr ::int32_t kHasBitsOffset = |
2264 | | 8 * PROTOBUF_FIELD_OFFSET(PngProto, _impl_._has_bits_); |
2265 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
2266 | 0 | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
2267 | 0 | } |
2268 | | }; |
2269 | | |
2270 | | PngProto::PngProto(::google::protobuf::Arena* arena) |
2271 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2272 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
2273 | | #else // PROTOBUF_CUSTOM_VTABLE |
2274 | 18.4k | : ::google::protobuf::Message(arena) { |
2275 | 18.4k | #endif // PROTOBUF_CUSTOM_VTABLE |
2276 | 18.4k | SharedCtor(arena); |
2277 | | // @@protoc_insertion_point(arena_constructor:PngProto) |
2278 | 18.4k | } |
2279 | | inline PROTOBUF_NDEBUG_INLINE PngProto::Impl_::Impl_( |
2280 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
2281 | | const Impl_& from, const ::PngProto& from_msg) |
2282 | 0 | : _has_bits_{from._has_bits_}, |
2283 | 0 | _cached_size_{0}, |
2284 | 0 | chunks_{visibility, arena, from.chunks_} {} |
2285 | | |
2286 | | PngProto::PngProto( |
2287 | | ::google::protobuf::Arena* arena, |
2288 | | const PngProto& from) |
2289 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2290 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
2291 | | #else // PROTOBUF_CUSTOM_VTABLE |
2292 | 0 | : ::google::protobuf::Message(arena) { |
2293 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2294 | 0 | PngProto* const _this = this; |
2295 | 0 | (void)_this; |
2296 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
2297 | 0 | from._internal_metadata_); |
2298 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
2299 | 0 | ::uint32_t cached_has_bits = _impl_._has_bits_[0]; |
2300 | 0 | _impl_.ihdr_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::IHDR>( |
2301 | 0 | arena, *from._impl_.ihdr_) |
2302 | 0 | : nullptr; |
2303 | | |
2304 | | // @@protoc_insertion_point(copy_constructor:PngProto) |
2305 | 0 | } |
2306 | | inline PROTOBUF_NDEBUG_INLINE PngProto::Impl_::Impl_( |
2307 | | ::google::protobuf::internal::InternalVisibility visibility, |
2308 | | ::google::protobuf::Arena* arena) |
2309 | 18.4k | : _cached_size_{0}, |
2310 | 18.4k | chunks_{visibility, arena} {} |
2311 | | |
2312 | 18.4k | inline void PngProto::SharedCtor(::_pb::Arena* arena) { |
2313 | 18.4k | new (&_impl_) Impl_(internal_visibility(), arena); |
2314 | 18.4k | _impl_.ihdr_ = {}; |
2315 | 18.4k | } |
2316 | 18.4k | PngProto::~PngProto() { |
2317 | | // @@protoc_insertion_point(destructor:PngProto) |
2318 | 18.4k | SharedDtor(*this); |
2319 | 18.4k | } |
2320 | 18.4k | inline void PngProto::SharedDtor(MessageLite& self) { |
2321 | 18.4k | PngProto& this_ = static_cast<PngProto&>(self); |
2322 | 18.4k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
2323 | 18.4k | ABSL_DCHECK(this_.GetArena() == nullptr); |
2324 | 18.4k | delete this_._impl_.ihdr_; |
2325 | 18.4k | this_._impl_.~Impl_(); |
2326 | 18.4k | } |
2327 | | |
2328 | | inline void* PngProto::PlacementNew_(const void*, void* mem, |
2329 | 0 | ::google::protobuf::Arena* arena) { |
2330 | 0 | return ::new (mem) PngProto(arena); |
2331 | 0 | } |
2332 | 0 | constexpr auto PngProto::InternalNewImpl_() { |
2333 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
2334 | 0 | PROTOBUF_FIELD_OFFSET(PngProto, _impl_.chunks_) + |
2335 | 0 | decltype(PngProto::_impl_.chunks_):: |
2336 | 0 | InternalGetArenaOffset( |
2337 | 0 | ::google::protobuf::Message::internal_visibility()), |
2338 | 0 | }); |
2339 | 0 | if (arena_bits.has_value()) { |
2340 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit( |
2341 | 0 | sizeof(PngProto), alignof(PngProto), *arena_bits); |
2342 | 0 | } else { |
2343 | 0 | return ::google::protobuf::internal::MessageCreator(&PngProto::PlacementNew_, |
2344 | 0 | sizeof(PngProto), |
2345 | 0 | alignof(PngProto)); |
2346 | 0 | } |
2347 | 0 | } |
2348 | | PROTOBUF_CONSTINIT |
2349 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2350 | | const ::google::protobuf::internal::ClassDataFull PngProto::_class_data_ = { |
2351 | | ::google::protobuf::internal::ClassData{ |
2352 | | &_PngProto_default_instance_._instance, |
2353 | | &_table_.header, |
2354 | | nullptr, // OnDemandRegisterArenaDtor |
2355 | | PngProto::IsInitializedImpl, |
2356 | | &PngProto::MergeImpl, |
2357 | | ::google::protobuf::Message::GetNewImpl<PngProto>(), |
2358 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2359 | | &PngProto::SharedDtor, |
2360 | | ::google::protobuf::Message::GetClearImpl<PngProto>(), &PngProto::ByteSizeLong, |
2361 | | &PngProto::_InternalSerialize, |
2362 | | #endif // PROTOBUF_CUSTOM_VTABLE |
2363 | | PROTOBUF_FIELD_OFFSET(PngProto, _impl_._cached_size_), |
2364 | | false, |
2365 | | }, |
2366 | | &PngProto::kDescriptorMethods, |
2367 | | &descriptor_table_png_5ffuzz_5fproto_2eproto, |
2368 | | nullptr, // tracker |
2369 | | }; |
2370 | 369k | const ::google::protobuf::internal::ClassData* PngProto::GetClassData() const { |
2371 | 369k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
2372 | 369k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
2373 | 369k | return _class_data_.base(); |
2374 | 369k | } |
2375 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2376 | | const ::_pbi::TcParseTable<1, 2, 2, 0, 2> PngProto::_table_ = { |
2377 | | { |
2378 | | PROTOBUF_FIELD_OFFSET(PngProto, _impl_._has_bits_), |
2379 | | 0, // no _extensions_ |
2380 | | 2, 8, // max_field_number, fast_idx_mask |
2381 | | offsetof(decltype(_table_), field_lookup_table), |
2382 | | 4294967292, // skipmap |
2383 | | offsetof(decltype(_table_), field_entries), |
2384 | | 2, // num_field_entries |
2385 | | 2, // num_aux_entries |
2386 | | offsetof(decltype(_table_), aux_entries), |
2387 | | _class_data_.base(), |
2388 | | nullptr, // post_loop_handler |
2389 | | ::_pbi::TcParser::GenericFallback, // fallback |
2390 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
2391 | | ::_pbi::TcParser::GetTable<::PngProto>(), // to_prefetch |
2392 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
2393 | | }, {{ |
2394 | | // repeated .PngChunk chunks = 2; |
2395 | | {::_pbi::TcParser::FastMtR1, |
2396 | | {18, 63, 1, PROTOBUF_FIELD_OFFSET(PngProto, _impl_.chunks_)}}, |
2397 | | // required .IHDR ihdr = 1; |
2398 | | {::_pbi::TcParser::FastMtS1, |
2399 | | {10, 0, 0, PROTOBUF_FIELD_OFFSET(PngProto, _impl_.ihdr_)}}, |
2400 | | }}, {{ |
2401 | | 65535, 65535 |
2402 | | }}, {{ |
2403 | | // required .IHDR ihdr = 1; |
2404 | | {PROTOBUF_FIELD_OFFSET(PngProto, _impl_.ihdr_), _Internal::kHasBitsOffset + 0, 0, |
2405 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
2406 | | // repeated .PngChunk chunks = 2; |
2407 | | {PROTOBUF_FIELD_OFFSET(PngProto, _impl_.chunks_), -1, 1, |
2408 | | (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
2409 | | }}, {{ |
2410 | | {::_pbi::TcParser::GetTable<::IHDR>()}, |
2411 | | {::_pbi::TcParser::GetTable<::PngChunk>()}, |
2412 | | }}, {{ |
2413 | | }}, |
2414 | | }; |
2415 | | |
2416 | 37.0k | PROTOBUF_NOINLINE void PngProto::Clear() { |
2417 | | // @@protoc_insertion_point(message_clear_start:PngProto) |
2418 | 37.0k | ::google::protobuf::internal::TSanWrite(&_impl_); |
2419 | 37.0k | ::uint32_t cached_has_bits = 0; |
2420 | | // Prevent compiler warnings about cached_has_bits being unused |
2421 | 37.0k | (void) cached_has_bits; |
2422 | | |
2423 | 37.0k | _impl_.chunks_.Clear(); |
2424 | 37.0k | cached_has_bits = _impl_._has_bits_[0]; |
2425 | 37.0k | if (cached_has_bits & 0x00000001u) { |
2426 | 6 | ABSL_DCHECK(_impl_.ihdr_ != nullptr); |
2427 | 6 | _impl_.ihdr_->Clear(); |
2428 | 6 | } |
2429 | 37.0k | _impl_._has_bits_.Clear(); |
2430 | 37.0k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
2431 | 37.0k | } |
2432 | | |
2433 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2434 | | ::uint8_t* PngProto::_InternalSerialize( |
2435 | | const MessageLite& base, ::uint8_t* target, |
2436 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
2437 | | const PngProto& this_ = static_cast<const PngProto&>(base); |
2438 | | #else // PROTOBUF_CUSTOM_VTABLE |
2439 | | ::uint8_t* PngProto::_InternalSerialize( |
2440 | | ::uint8_t* target, |
2441 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
2442 | 0 | const PngProto& this_ = *this; |
2443 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2444 | | // @@protoc_insertion_point(serialize_to_array_start:PngProto) |
2445 | 0 | ::uint32_t cached_has_bits = 0; |
2446 | 0 | (void)cached_has_bits; |
2447 | |
|
2448 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
2449 | | // required .IHDR ihdr = 1; |
2450 | 0 | if (cached_has_bits & 0x00000001u) { |
2451 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
2452 | 0 | 1, *this_._impl_.ihdr_, this_._impl_.ihdr_->GetCachedSize(), target, |
2453 | 0 | stream); |
2454 | 0 | } |
2455 | | |
2456 | | // repeated .PngChunk chunks = 2; |
2457 | 0 | for (unsigned i = 0, n = static_cast<unsigned>( |
2458 | 0 | this_._internal_chunks_size()); |
2459 | 0 | i < n; i++) { |
2460 | 0 | const auto& repfield = this_._internal_chunks().Get(i); |
2461 | 0 | target = |
2462 | 0 | ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
2463 | 0 | 2, repfield, repfield.GetCachedSize(), |
2464 | 0 | target, stream); |
2465 | 0 | } |
2466 | |
|
2467 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
2468 | 0 | target = |
2469 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
2470 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
2471 | 0 | } |
2472 | | // @@protoc_insertion_point(serialize_to_array_end:PngProto) |
2473 | 0 | return target; |
2474 | 0 | } |
2475 | | |
2476 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2477 | | ::size_t PngProto::ByteSizeLong(const MessageLite& base) { |
2478 | | const PngProto& this_ = static_cast<const PngProto&>(base); |
2479 | | #else // PROTOBUF_CUSTOM_VTABLE |
2480 | 0 | ::size_t PngProto::ByteSizeLong() const { |
2481 | 0 | const PngProto& this_ = *this; |
2482 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2483 | | // @@protoc_insertion_point(message_byte_size_start:PngProto) |
2484 | 0 | ::size_t total_size = 0; |
2485 | |
|
2486 | 0 | ::uint32_t cached_has_bits = 0; |
2487 | | // Prevent compiler warnings about cached_has_bits being unused |
2488 | 0 | (void)cached_has_bits; |
2489 | |
|
2490 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
2491 | 0 | { |
2492 | | // repeated .PngChunk chunks = 2; |
2493 | 0 | { |
2494 | 0 | total_size += 1UL * this_._internal_chunks_size(); |
2495 | 0 | for (const auto& msg : this_._internal_chunks()) { |
2496 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); |
2497 | 0 | } |
2498 | 0 | } |
2499 | 0 | } |
2500 | 0 | { |
2501 | | // required .IHDR ihdr = 1; |
2502 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
2503 | 0 | if (cached_has_bits & 0x00000001u) { |
2504 | 0 | total_size += 1 + |
2505 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.ihdr_); |
2506 | 0 | } |
2507 | 0 | } |
2508 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
2509 | 0 | &this_._impl_._cached_size_); |
2510 | 0 | } |
2511 | | |
2512 | 0 | void PngProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
2513 | 0 | auto* const _this = static_cast<PngProto*>(&to_msg); |
2514 | 0 | auto& from = static_cast<const PngProto&>(from_msg); |
2515 | 0 | ::google::protobuf::Arena* arena = _this->GetArena(); |
2516 | | // @@protoc_insertion_point(class_specific_merge_from_start:PngProto) |
2517 | 0 | ABSL_DCHECK_NE(&from, _this); |
2518 | 0 | ::uint32_t cached_has_bits = 0; |
2519 | 0 | (void) cached_has_bits; |
2520 | |
|
2521 | 0 | _this->_internal_mutable_chunks()->MergeFrom( |
2522 | 0 | from._internal_chunks()); |
2523 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
2524 | 0 | if (cached_has_bits & 0x00000001u) { |
2525 | 0 | ABSL_DCHECK(from._impl_.ihdr_ != nullptr); |
2526 | 0 | if (_this->_impl_.ihdr_ == nullptr) { |
2527 | 0 | _this->_impl_.ihdr_ = |
2528 | 0 | ::google::protobuf::Message::CopyConstruct<::IHDR>(arena, *from._impl_.ihdr_); |
2529 | 0 | } else { |
2530 | 0 | _this->_impl_.ihdr_->MergeFrom(*from._impl_.ihdr_); |
2531 | 0 | } |
2532 | 0 | } |
2533 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
2534 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
2535 | 0 | } |
2536 | | |
2537 | 0 | void PngProto::CopyFrom(const PngProto& from) { |
2538 | | // @@protoc_insertion_point(class_specific_copy_from_start:PngProto) |
2539 | 0 | if (&from == this) return; |
2540 | 0 | Clear(); |
2541 | 0 | MergeFrom(from); |
2542 | 0 | } |
2543 | | |
2544 | | PROTOBUF_NOINLINE bool PngProto::IsInitializedImpl( |
2545 | 0 | const MessageLite& msg) { |
2546 | 0 | auto& this_ = static_cast<const PngProto&>(msg); |
2547 | 0 | if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { |
2548 | 0 | return false; |
2549 | 0 | } |
2550 | 0 | if (!::google::protobuf::internal::AllAreInitialized(this_._internal_chunks())) |
2551 | 0 | return false; |
2552 | 0 | if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { |
2553 | 0 | if (!this_._impl_.ihdr_->IsInitialized()) return false; |
2554 | 0 | } |
2555 | 0 | return true; |
2556 | 0 | } |
2557 | | |
2558 | 0 | void PngProto::InternalSwap(PngProto* PROTOBUF_RESTRICT other) { |
2559 | 0 | using std::swap; |
2560 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
2561 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
2562 | 0 | _impl_.chunks_.InternalSwap(&other->_impl_.chunks_); |
2563 | 0 | swap(_impl_.ihdr_, other->_impl_.ihdr_); |
2564 | 0 | } |
2565 | | |
2566 | 0 | ::google::protobuf::Metadata PngProto::GetMetadata() const { |
2567 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
2568 | 0 | } |
2569 | | // @@protoc_insertion_point(namespace_scope) |
2570 | | namespace google { |
2571 | | namespace protobuf { |
2572 | | } // namespace protobuf |
2573 | | } // namespace google |
2574 | | // @@protoc_insertion_point(global_scope) |
2575 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type |
2576 | | _static_init2_ PROTOBUF_UNUSED = |
2577 | | (::_pbi::AddDescriptors(&descriptor_table_png_5ffuzz_5fproto_2eproto), |
2578 | | ::std::false_type{}); |
2579 | | #include "google/protobuf/port_undef.inc" |