/src/genfiles/gif_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: gif_fuzz_proto.proto |
4 | | // Protobuf C++ Version: 5.29.3 |
5 | | |
6 | | #include "gif_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 | | namespace gifProtoFuzzer { |
28 | | template <typename> |
29 | | PROTOBUF_CONSTEXPR Trailer::Trailer(::_pbi::ConstantInitialized) |
30 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
31 | | : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} |
32 | | #else // PROTOBUF_CUSTOM_VTABLE |
33 | | : ::google::protobuf::internal::ZeroFieldsBase() { |
34 | | } |
35 | | #endif // PROTOBUF_CUSTOM_VTABLE |
36 | | struct TrailerDefaultTypeInternal { |
37 | 0 | PROTOBUF_CONSTEXPR TrailerDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
38 | 0 | ~TrailerDefaultTypeInternal() {} |
39 | | union { |
40 | | Trailer _instance; |
41 | | }; |
42 | | }; |
43 | | |
44 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
45 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrailerDefaultTypeInternal _Trailer_default_instance_; |
46 | | |
47 | | inline constexpr SubBlock::Impl_::Impl_( |
48 | | ::_pbi::ConstantInitialized) noexcept |
49 | | : _cached_size_{0}, |
50 | | data_( |
51 | | &::google::protobuf::internal::fixed_address_empty_string, |
52 | | ::_pbi::ConstantInitialized()), |
53 | | len_{0u} {} |
54 | | |
55 | | template <typename> |
56 | | PROTOBUF_CONSTEXPR SubBlock::SubBlock(::_pbi::ConstantInitialized) |
57 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
58 | | : ::google::protobuf::Message(_class_data_.base()), |
59 | | #else // PROTOBUF_CUSTOM_VTABLE |
60 | | : ::google::protobuf::Message(), |
61 | | #endif // PROTOBUF_CUSTOM_VTABLE |
62 | | _impl_(::_pbi::ConstantInitialized()) { |
63 | | } |
64 | | struct SubBlockDefaultTypeInternal { |
65 | 0 | PROTOBUF_CONSTEXPR SubBlockDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
66 | 0 | ~SubBlockDefaultTypeInternal() {} |
67 | | union { |
68 | | SubBlock _instance; |
69 | | }; |
70 | | }; |
71 | | |
72 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
73 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubBlockDefaultTypeInternal _SubBlock_default_instance_; |
74 | | |
75 | | inline constexpr LogicalScreenDescriptor::Impl_::Impl_( |
76 | | ::_pbi::ConstantInitialized) noexcept |
77 | | : _cached_size_{0}, |
78 | | screenwidth_{0u}, |
79 | | screenheight_{0u}, |
80 | | packed_{0u}, |
81 | | backgroundcolor_{0u}, |
82 | | aspectratio_{0u} {} |
83 | | |
84 | | template <typename> |
85 | | PROTOBUF_CONSTEXPR LogicalScreenDescriptor::LogicalScreenDescriptor(::_pbi::ConstantInitialized) |
86 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
87 | | : ::google::protobuf::Message(_class_data_.base()), |
88 | | #else // PROTOBUF_CUSTOM_VTABLE |
89 | | : ::google::protobuf::Message(), |
90 | | #endif // PROTOBUF_CUSTOM_VTABLE |
91 | | _impl_(::_pbi::ConstantInitialized()) { |
92 | | } |
93 | | struct LogicalScreenDescriptorDefaultTypeInternal { |
94 | 0 | PROTOBUF_CONSTEXPR LogicalScreenDescriptorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
95 | 0 | ~LogicalScreenDescriptorDefaultTypeInternal() {} |
96 | | union { |
97 | | LogicalScreenDescriptor _instance; |
98 | | }; |
99 | | }; |
100 | | |
101 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
102 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogicalScreenDescriptorDefaultTypeInternal _LogicalScreenDescriptor_default_instance_; |
103 | | |
104 | | inline constexpr LocalColorTable::Impl_::Impl_( |
105 | | ::_pbi::ConstantInitialized) noexcept |
106 | | : _cached_size_{0}, |
107 | | colors_( |
108 | | &::google::protobuf::internal::fixed_address_empty_string, |
109 | | ::_pbi::ConstantInitialized()) {} |
110 | | |
111 | | template <typename> |
112 | | PROTOBUF_CONSTEXPR LocalColorTable::LocalColorTable(::_pbi::ConstantInitialized) |
113 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
114 | | : ::google::protobuf::Message(_class_data_.base()), |
115 | | #else // PROTOBUF_CUSTOM_VTABLE |
116 | | : ::google::protobuf::Message(), |
117 | | #endif // PROTOBUF_CUSTOM_VTABLE |
118 | | _impl_(::_pbi::ConstantInitialized()) { |
119 | | } |
120 | | struct LocalColorTableDefaultTypeInternal { |
121 | 0 | PROTOBUF_CONSTEXPR LocalColorTableDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
122 | 0 | ~LocalColorTableDefaultTypeInternal() {} |
123 | | union { |
124 | | LocalColorTable _instance; |
125 | | }; |
126 | | }; |
127 | | |
128 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
129 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocalColorTableDefaultTypeInternal _LocalColorTable_default_instance_; |
130 | | |
131 | | inline constexpr ImageDescriptor::Impl_::Impl_( |
132 | | ::_pbi::ConstantInitialized) noexcept |
133 | | : _cached_size_{0}, |
134 | | seperator_{0u}, |
135 | | left_{0u}, |
136 | | top_{0u}, |
137 | | width_{0u}, |
138 | | height_{0u}, |
139 | | packed_{0u} {} |
140 | | |
141 | | template <typename> |
142 | | PROTOBUF_CONSTEXPR ImageDescriptor::ImageDescriptor(::_pbi::ConstantInitialized) |
143 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
144 | | : ::google::protobuf::Message(_class_data_.base()), |
145 | | #else // PROTOBUF_CUSTOM_VTABLE |
146 | | : ::google::protobuf::Message(), |
147 | | #endif // PROTOBUF_CUSTOM_VTABLE |
148 | | _impl_(::_pbi::ConstantInitialized()) { |
149 | | } |
150 | | struct ImageDescriptorDefaultTypeInternal { |
151 | 0 | PROTOBUF_CONSTEXPR ImageDescriptorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
152 | 0 | ~ImageDescriptorDefaultTypeInternal() {} |
153 | | union { |
154 | | ImageDescriptor _instance; |
155 | | }; |
156 | | }; |
157 | | |
158 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
159 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ImageDescriptorDefaultTypeInternal _ImageDescriptor_default_instance_; |
160 | | |
161 | | inline constexpr Header::Impl_::Impl_( |
162 | | ::_pbi::ConstantInitialized) noexcept |
163 | | : _cached_size_{0}, |
164 | | ver_{static_cast< ::gifProtoFuzzer::Header_Version >(1)} {} |
165 | | |
166 | | template <typename> |
167 | | PROTOBUF_CONSTEXPR Header::Header(::_pbi::ConstantInitialized) |
168 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
169 | | : ::google::protobuf::Message(_class_data_.base()), |
170 | | #else // PROTOBUF_CUSTOM_VTABLE |
171 | | : ::google::protobuf::Message(), |
172 | | #endif // PROTOBUF_CUSTOM_VTABLE |
173 | | _impl_(::_pbi::ConstantInitialized()) { |
174 | | } |
175 | | struct HeaderDefaultTypeInternal { |
176 | 0 | PROTOBUF_CONSTEXPR HeaderDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
177 | 0 | ~HeaderDefaultTypeInternal() {} |
178 | | union { |
179 | | Header _instance; |
180 | | }; |
181 | | }; |
182 | | |
183 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
184 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HeaderDefaultTypeInternal _Header_default_instance_; |
185 | | |
186 | | inline constexpr GraphicControlExtension::Impl_::Impl_( |
187 | | ::_pbi::ConstantInitialized) noexcept |
188 | | : _cached_size_{0}, |
189 | | packed_{0u}, |
190 | | delaytime_{0u}, |
191 | | transparentcolorindex_{0u} {} |
192 | | |
193 | | template <typename> |
194 | | PROTOBUF_CONSTEXPR GraphicControlExtension::GraphicControlExtension(::_pbi::ConstantInitialized) |
195 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
196 | | : ::google::protobuf::Message(_class_data_.base()), |
197 | | #else // PROTOBUF_CUSTOM_VTABLE |
198 | | : ::google::protobuf::Message(), |
199 | | #endif // PROTOBUF_CUSTOM_VTABLE |
200 | | _impl_(::_pbi::ConstantInitialized()) { |
201 | | } |
202 | | struct GraphicControlExtensionDefaultTypeInternal { |
203 | 0 | PROTOBUF_CONSTEXPR GraphicControlExtensionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
204 | 0 | ~GraphicControlExtensionDefaultTypeInternal() {} |
205 | | union { |
206 | | GraphicControlExtension _instance; |
207 | | }; |
208 | | }; |
209 | | |
210 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
211 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GraphicControlExtensionDefaultTypeInternal _GraphicControlExtension_default_instance_; |
212 | | |
213 | | inline constexpr GlobalColorTable::Impl_::Impl_( |
214 | | ::_pbi::ConstantInitialized) noexcept |
215 | | : _cached_size_{0}, |
216 | | colors_( |
217 | | &::google::protobuf::internal::fixed_address_empty_string, |
218 | | ::_pbi::ConstantInitialized()) {} |
219 | | |
220 | | template <typename> |
221 | | PROTOBUF_CONSTEXPR GlobalColorTable::GlobalColorTable(::_pbi::ConstantInitialized) |
222 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
223 | | : ::google::protobuf::Message(_class_data_.base()), |
224 | | #else // PROTOBUF_CUSTOM_VTABLE |
225 | | : ::google::protobuf::Message(), |
226 | | #endif // PROTOBUF_CUSTOM_VTABLE |
227 | | _impl_(::_pbi::ConstantInitialized()) { |
228 | | } |
229 | | struct GlobalColorTableDefaultTypeInternal { |
230 | 0 | PROTOBUF_CONSTEXPR GlobalColorTableDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
231 | 0 | ~GlobalColorTableDefaultTypeInternal() {} |
232 | | union { |
233 | | GlobalColorTable _instance; |
234 | | }; |
235 | | }; |
236 | | |
237 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
238 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GlobalColorTableDefaultTypeInternal _GlobalColorTable_default_instance_; |
239 | | |
240 | | inline constexpr PlainTextExtension::Impl_::Impl_( |
241 | | ::_pbi::ConstantInitialized) noexcept |
242 | | : _cached_size_{0}, |
243 | | subs_{}, |
244 | | gcext_{nullptr} {} |
245 | | |
246 | | template <typename> |
247 | | PROTOBUF_CONSTEXPR PlainTextExtension::PlainTextExtension(::_pbi::ConstantInitialized) |
248 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
249 | | : ::google::protobuf::Message(_class_data_.base()), |
250 | | #else // PROTOBUF_CUSTOM_VTABLE |
251 | | : ::google::protobuf::Message(), |
252 | | #endif // PROTOBUF_CUSTOM_VTABLE |
253 | | _impl_(::_pbi::ConstantInitialized()) { |
254 | | } |
255 | | struct PlainTextExtensionDefaultTypeInternal { |
256 | 0 | PROTOBUF_CONSTEXPR PlainTextExtensionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
257 | 0 | ~PlainTextExtensionDefaultTypeInternal() {} |
258 | | union { |
259 | | PlainTextExtension _instance; |
260 | | }; |
261 | | }; |
262 | | |
263 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
264 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlainTextExtensionDefaultTypeInternal _PlainTextExtension_default_instance_; |
265 | | |
266 | | inline constexpr ImageData::Impl_::Impl_( |
267 | | ::_pbi::ConstantInitialized) noexcept |
268 | | : _cached_size_{0}, |
269 | | subs_{}, |
270 | | lzw_{0u} {} |
271 | | |
272 | | template <typename> |
273 | | PROTOBUF_CONSTEXPR ImageData::ImageData(::_pbi::ConstantInitialized) |
274 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
275 | | : ::google::protobuf::Message(_class_data_.base()), |
276 | | #else // PROTOBUF_CUSTOM_VTABLE |
277 | | : ::google::protobuf::Message(), |
278 | | #endif // PROTOBUF_CUSTOM_VTABLE |
279 | | _impl_(::_pbi::ConstantInitialized()) { |
280 | | } |
281 | | struct ImageDataDefaultTypeInternal { |
282 | 0 | PROTOBUF_CONSTEXPR ImageDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
283 | 0 | ~ImageDataDefaultTypeInternal() {} |
284 | | union { |
285 | | ImageData _instance; |
286 | | }; |
287 | | }; |
288 | | |
289 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
290 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ImageDataDefaultTypeInternal _ImageData_default_instance_; |
291 | | |
292 | | inline constexpr CommentExtension::Impl_::Impl_( |
293 | | ::_pbi::ConstantInitialized) noexcept |
294 | | : subs_{}, |
295 | | _cached_size_{0} {} |
296 | | |
297 | | template <typename> |
298 | | PROTOBUF_CONSTEXPR CommentExtension::CommentExtension(::_pbi::ConstantInitialized) |
299 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
300 | | : ::google::protobuf::Message(_class_data_.base()), |
301 | | #else // PROTOBUF_CUSTOM_VTABLE |
302 | | : ::google::protobuf::Message(), |
303 | | #endif // PROTOBUF_CUSTOM_VTABLE |
304 | | _impl_(::_pbi::ConstantInitialized()) { |
305 | | } |
306 | | struct CommentExtensionDefaultTypeInternal { |
307 | 0 | PROTOBUF_CONSTEXPR CommentExtensionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
308 | 0 | ~CommentExtensionDefaultTypeInternal() {} |
309 | | union { |
310 | | CommentExtension _instance; |
311 | | }; |
312 | | }; |
313 | | |
314 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
315 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CommentExtensionDefaultTypeInternal _CommentExtension_default_instance_; |
316 | | |
317 | | inline constexpr ApplicationExtension::Impl_::Impl_( |
318 | | ::_pbi::ConstantInitialized) noexcept |
319 | | : _cached_size_{0}, |
320 | | subs_{}, |
321 | | appid_{::uint64_t{0u}} {} |
322 | | |
323 | | template <typename> |
324 | | PROTOBUF_CONSTEXPR ApplicationExtension::ApplicationExtension(::_pbi::ConstantInitialized) |
325 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
326 | | : ::google::protobuf::Message(_class_data_.base()), |
327 | | #else // PROTOBUF_CUSTOM_VTABLE |
328 | | : ::google::protobuf::Message(), |
329 | | #endif // PROTOBUF_CUSTOM_VTABLE |
330 | | _impl_(::_pbi::ConstantInitialized()) { |
331 | | } |
332 | | struct ApplicationExtensionDefaultTypeInternal { |
333 | 0 | PROTOBUF_CONSTEXPR ApplicationExtensionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
334 | 0 | ~ApplicationExtensionDefaultTypeInternal() {} |
335 | | union { |
336 | | ApplicationExtension _instance; |
337 | | }; |
338 | | }; |
339 | | |
340 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
341 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ApplicationExtensionDefaultTypeInternal _ApplicationExtension_default_instance_; |
342 | | |
343 | | inline constexpr BasicChunk::Impl_::Impl_( |
344 | | ::_pbi::ConstantInitialized) noexcept |
345 | | : _cached_size_{0}, |
346 | | imdescriptor_{nullptr}, |
347 | | lct_{nullptr}, |
348 | | img_{nullptr}, |
349 | | gcext_{nullptr} {} |
350 | | |
351 | | template <typename> |
352 | | PROTOBUF_CONSTEXPR BasicChunk::BasicChunk(::_pbi::ConstantInitialized) |
353 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
354 | | : ::google::protobuf::Message(_class_data_.base()), |
355 | | #else // PROTOBUF_CUSTOM_VTABLE |
356 | | : ::google::protobuf::Message(), |
357 | | #endif // PROTOBUF_CUSTOM_VTABLE |
358 | | _impl_(::_pbi::ConstantInitialized()) { |
359 | | } |
360 | | struct BasicChunkDefaultTypeInternal { |
361 | 0 | PROTOBUF_CONSTEXPR BasicChunkDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
362 | 0 | ~BasicChunkDefaultTypeInternal() {} |
363 | | union { |
364 | | BasicChunk _instance; |
365 | | }; |
366 | | }; |
367 | | |
368 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
369 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BasicChunkDefaultTypeInternal _BasicChunk_default_instance_; |
370 | | |
371 | | inline constexpr ImageChunk::Impl_::Impl_( |
372 | | ::_pbi::ConstantInitialized) noexcept |
373 | | : chunk_oneof_{}, |
374 | | _cached_size_{0}, |
375 | | _oneof_case_{} {} |
376 | | |
377 | | template <typename> |
378 | | PROTOBUF_CONSTEXPR ImageChunk::ImageChunk(::_pbi::ConstantInitialized) |
379 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
380 | | : ::google::protobuf::Message(_class_data_.base()), |
381 | | #else // PROTOBUF_CUSTOM_VTABLE |
382 | | : ::google::protobuf::Message(), |
383 | | #endif // PROTOBUF_CUSTOM_VTABLE |
384 | | _impl_(::_pbi::ConstantInitialized()) { |
385 | | } |
386 | | struct ImageChunkDefaultTypeInternal { |
387 | 0 | PROTOBUF_CONSTEXPR ImageChunkDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
388 | 0 | ~ImageChunkDefaultTypeInternal() {} |
389 | | union { |
390 | | ImageChunk _instance; |
391 | | }; |
392 | | }; |
393 | | |
394 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
395 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ImageChunkDefaultTypeInternal _ImageChunk_default_instance_; |
396 | | |
397 | | inline constexpr GifProto::Impl_::Impl_( |
398 | | ::_pbi::ConstantInitialized) noexcept |
399 | | : _cached_size_{0}, |
400 | | chunks_{}, |
401 | | header_{nullptr}, |
402 | | lsd_{nullptr}, |
403 | | gct_{nullptr}, |
404 | | trailer_{nullptr} {} |
405 | | |
406 | | template <typename> |
407 | | PROTOBUF_CONSTEXPR GifProto::GifProto(::_pbi::ConstantInitialized) |
408 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
409 | | : ::google::protobuf::Message(_class_data_.base()), |
410 | | #else // PROTOBUF_CUSTOM_VTABLE |
411 | | : ::google::protobuf::Message(), |
412 | | #endif // PROTOBUF_CUSTOM_VTABLE |
413 | | _impl_(::_pbi::ConstantInitialized()) { |
414 | | } |
415 | | struct GifProtoDefaultTypeInternal { |
416 | 0 | PROTOBUF_CONSTEXPR GifProtoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
417 | 0 | ~GifProtoDefaultTypeInternal() {} |
418 | | union { |
419 | | GifProto _instance; |
420 | | }; |
421 | | }; |
422 | | |
423 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
424 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GifProtoDefaultTypeInternal _GifProto_default_instance_; |
425 | | } // namespace gifProtoFuzzer |
426 | | static const ::_pb::EnumDescriptor* file_level_enum_descriptors_gif_5ffuzz_5fproto_2eproto[1]; |
427 | | static constexpr const ::_pb::ServiceDescriptor** |
428 | | file_level_service_descriptors_gif_5ffuzz_5fproto_2eproto = nullptr; |
429 | | const ::uint32_t |
430 | | TableStruct_gif_5ffuzz_5fproto_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( |
431 | | protodesc_cold) = { |
432 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::LogicalScreenDescriptor, _impl_._has_bits_), |
433 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::LogicalScreenDescriptor, _internal_metadata_), |
434 | | ~0u, // no _extensions_ |
435 | | ~0u, // no _oneof_case_ |
436 | | ~0u, // no _weak_field_map_ |
437 | | ~0u, // no _inlined_string_donated_ |
438 | | ~0u, // no _split_ |
439 | | ~0u, // no sizeof(Split) |
440 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::LogicalScreenDescriptor, _impl_.screenwidth_), |
441 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::LogicalScreenDescriptor, _impl_.screenheight_), |
442 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::LogicalScreenDescriptor, _impl_.packed_), |
443 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::LogicalScreenDescriptor, _impl_.backgroundcolor_), |
444 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::LogicalScreenDescriptor, _impl_.aspectratio_), |
445 | | 0, |
446 | | 1, |
447 | | 2, |
448 | | 3, |
449 | | 4, |
450 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GlobalColorTable, _impl_._has_bits_), |
451 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GlobalColorTable, _internal_metadata_), |
452 | | ~0u, // no _extensions_ |
453 | | ~0u, // no _oneof_case_ |
454 | | ~0u, // no _weak_field_map_ |
455 | | ~0u, // no _inlined_string_donated_ |
456 | | ~0u, // no _split_ |
457 | | ~0u, // no sizeof(Split) |
458 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GlobalColorTable, _impl_.colors_), |
459 | | 0, |
460 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageDescriptor, _impl_._has_bits_), |
461 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageDescriptor, _internal_metadata_), |
462 | | ~0u, // no _extensions_ |
463 | | ~0u, // no _oneof_case_ |
464 | | ~0u, // no _weak_field_map_ |
465 | | ~0u, // no _inlined_string_donated_ |
466 | | ~0u, // no _split_ |
467 | | ~0u, // no sizeof(Split) |
468 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageDescriptor, _impl_.seperator_), |
469 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageDescriptor, _impl_.left_), |
470 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageDescriptor, _impl_.top_), |
471 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageDescriptor, _impl_.width_), |
472 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageDescriptor, _impl_.height_), |
473 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageDescriptor, _impl_.packed_), |
474 | | 0, |
475 | | 1, |
476 | | 2, |
477 | | 3, |
478 | | 4, |
479 | | 5, |
480 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GraphicControlExtension, _impl_._has_bits_), |
481 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GraphicControlExtension, _internal_metadata_), |
482 | | ~0u, // no _extensions_ |
483 | | ~0u, // no _oneof_case_ |
484 | | ~0u, // no _weak_field_map_ |
485 | | ~0u, // no _inlined_string_donated_ |
486 | | ~0u, // no _split_ |
487 | | ~0u, // no sizeof(Split) |
488 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GraphicControlExtension, _impl_.packed_), |
489 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GraphicControlExtension, _impl_.delaytime_), |
490 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GraphicControlExtension, _impl_.transparentcolorindex_), |
491 | | 0, |
492 | | 1, |
493 | | 2, |
494 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::PlainTextExtension, _impl_._has_bits_), |
495 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::PlainTextExtension, _internal_metadata_), |
496 | | ~0u, // no _extensions_ |
497 | | ~0u, // no _oneof_case_ |
498 | | ~0u, // no _weak_field_map_ |
499 | | ~0u, // no _inlined_string_donated_ |
500 | | ~0u, // no _split_ |
501 | | ~0u, // no sizeof(Split) |
502 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::PlainTextExtension, _impl_.subs_), |
503 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::PlainTextExtension, _impl_.gcext_), |
504 | | ~0u, |
505 | | 0, |
506 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::LocalColorTable, _impl_._has_bits_), |
507 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::LocalColorTable, _internal_metadata_), |
508 | | ~0u, // no _extensions_ |
509 | | ~0u, // no _oneof_case_ |
510 | | ~0u, // no _weak_field_map_ |
511 | | ~0u, // no _inlined_string_donated_ |
512 | | ~0u, // no _split_ |
513 | | ~0u, // no sizeof(Split) |
514 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::LocalColorTable, _impl_.colors_), |
515 | | 0, |
516 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::SubBlock, _impl_._has_bits_), |
517 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::SubBlock, _internal_metadata_), |
518 | | ~0u, // no _extensions_ |
519 | | ~0u, // no _oneof_case_ |
520 | | ~0u, // no _weak_field_map_ |
521 | | ~0u, // no _inlined_string_donated_ |
522 | | ~0u, // no _split_ |
523 | | ~0u, // no sizeof(Split) |
524 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::SubBlock, _impl_.len_), |
525 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::SubBlock, _impl_.data_), |
526 | | 1, |
527 | | 0, |
528 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageData, _impl_._has_bits_), |
529 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageData, _internal_metadata_), |
530 | | ~0u, // no _extensions_ |
531 | | ~0u, // no _oneof_case_ |
532 | | ~0u, // no _weak_field_map_ |
533 | | ~0u, // no _inlined_string_donated_ |
534 | | ~0u, // no _split_ |
535 | | ~0u, // no sizeof(Split) |
536 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageData, _impl_.lzw_), |
537 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageData, _impl_.subs_), |
538 | | 0, |
539 | | ~0u, |
540 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::BasicChunk, _impl_._has_bits_), |
541 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::BasicChunk, _internal_metadata_), |
542 | | ~0u, // no _extensions_ |
543 | | ~0u, // no _oneof_case_ |
544 | | ~0u, // no _weak_field_map_ |
545 | | ~0u, // no _inlined_string_donated_ |
546 | | ~0u, // no _split_ |
547 | | ~0u, // no sizeof(Split) |
548 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::BasicChunk, _impl_.imdescriptor_), |
549 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::BasicChunk, _impl_.lct_), |
550 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::BasicChunk, _impl_.img_), |
551 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::BasicChunk, _impl_.gcext_), |
552 | | 0, |
553 | | 1, |
554 | | 2, |
555 | | 3, |
556 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ApplicationExtension, _impl_._has_bits_), |
557 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ApplicationExtension, _internal_metadata_), |
558 | | ~0u, // no _extensions_ |
559 | | ~0u, // no _oneof_case_ |
560 | | ~0u, // no _weak_field_map_ |
561 | | ~0u, // no _inlined_string_donated_ |
562 | | ~0u, // no _split_ |
563 | | ~0u, // no sizeof(Split) |
564 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ApplicationExtension, _impl_.appid_), |
565 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ApplicationExtension, _impl_.subs_), |
566 | | 0, |
567 | | ~0u, |
568 | | ~0u, // no _has_bits_ |
569 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::CommentExtension, _internal_metadata_), |
570 | | ~0u, // no _extensions_ |
571 | | ~0u, // no _oneof_case_ |
572 | | ~0u, // no _weak_field_map_ |
573 | | ~0u, // no _inlined_string_donated_ |
574 | | ~0u, // no _split_ |
575 | | ~0u, // no sizeof(Split) |
576 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::CommentExtension, _impl_.subs_), |
577 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::Header, _impl_._has_bits_), |
578 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::Header, _internal_metadata_), |
579 | | ~0u, // no _extensions_ |
580 | | ~0u, // no _oneof_case_ |
581 | | ~0u, // no _weak_field_map_ |
582 | | ~0u, // no _inlined_string_donated_ |
583 | | ~0u, // no _split_ |
584 | | ~0u, // no sizeof(Split) |
585 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::Header, _impl_.ver_), |
586 | | 0, |
587 | | ~0u, // no _has_bits_ |
588 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::Trailer, _internal_metadata_), |
589 | | ~0u, // no _extensions_ |
590 | | ~0u, // no _oneof_case_ |
591 | | ~0u, // no _weak_field_map_ |
592 | | ~0u, // no _inlined_string_donated_ |
593 | | ~0u, // no _split_ |
594 | | ~0u, // no sizeof(Split) |
595 | | ~0u, // no _has_bits_ |
596 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageChunk, _internal_metadata_), |
597 | | ~0u, // no _extensions_ |
598 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageChunk, _impl_._oneof_case_[0]), |
599 | | ~0u, // no _weak_field_map_ |
600 | | ~0u, // no _inlined_string_donated_ |
601 | | ~0u, // no _split_ |
602 | | ~0u, // no sizeof(Split) |
603 | | ::_pbi::kInvalidFieldOffsetTag, |
604 | | ::_pbi::kInvalidFieldOffsetTag, |
605 | | ::_pbi::kInvalidFieldOffsetTag, |
606 | | ::_pbi::kInvalidFieldOffsetTag, |
607 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageChunk, _impl_.chunk_oneof_), |
608 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GifProto, _impl_._has_bits_), |
609 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GifProto, _internal_metadata_), |
610 | | ~0u, // no _extensions_ |
611 | | ~0u, // no _oneof_case_ |
612 | | ~0u, // no _weak_field_map_ |
613 | | ~0u, // no _inlined_string_donated_ |
614 | | ~0u, // no _split_ |
615 | | ~0u, // no sizeof(Split) |
616 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GifProto, _impl_.header_), |
617 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GifProto, _impl_.lsd_), |
618 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GifProto, _impl_.gct_), |
619 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GifProto, _impl_.chunks_), |
620 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GifProto, _impl_.trailer_), |
621 | | 0, |
622 | | 1, |
623 | | 2, |
624 | | ~0u, |
625 | | 3, |
626 | | }; |
627 | | |
628 | | static const ::_pbi::MigrationSchema |
629 | | schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
630 | | {0, 13, -1, sizeof(::gifProtoFuzzer::LogicalScreenDescriptor)}, |
631 | | {18, 27, -1, sizeof(::gifProtoFuzzer::GlobalColorTable)}, |
632 | | {28, 42, -1, sizeof(::gifProtoFuzzer::ImageDescriptor)}, |
633 | | {48, 59, -1, sizeof(::gifProtoFuzzer::GraphicControlExtension)}, |
634 | | {62, 72, -1, sizeof(::gifProtoFuzzer::PlainTextExtension)}, |
635 | | {74, 83, -1, sizeof(::gifProtoFuzzer::LocalColorTable)}, |
636 | | {84, 94, -1, sizeof(::gifProtoFuzzer::SubBlock)}, |
637 | | {96, 106, -1, sizeof(::gifProtoFuzzer::ImageData)}, |
638 | | {108, 120, -1, sizeof(::gifProtoFuzzer::BasicChunk)}, |
639 | | {124, 134, -1, sizeof(::gifProtoFuzzer::ApplicationExtension)}, |
640 | | {136, -1, -1, sizeof(::gifProtoFuzzer::CommentExtension)}, |
641 | | {145, 154, -1, sizeof(::gifProtoFuzzer::Header)}, |
642 | | {155, -1, -1, sizeof(::gifProtoFuzzer::Trailer)}, |
643 | | {163, -1, -1, sizeof(::gifProtoFuzzer::ImageChunk)}, |
644 | | {176, 189, -1, sizeof(::gifProtoFuzzer::GifProto)}, |
645 | | }; |
646 | | static const ::_pb::Message* const file_default_instances[] = { |
647 | | &::gifProtoFuzzer::_LogicalScreenDescriptor_default_instance_._instance, |
648 | | &::gifProtoFuzzer::_GlobalColorTable_default_instance_._instance, |
649 | | &::gifProtoFuzzer::_ImageDescriptor_default_instance_._instance, |
650 | | &::gifProtoFuzzer::_GraphicControlExtension_default_instance_._instance, |
651 | | &::gifProtoFuzzer::_PlainTextExtension_default_instance_._instance, |
652 | | &::gifProtoFuzzer::_LocalColorTable_default_instance_._instance, |
653 | | &::gifProtoFuzzer::_SubBlock_default_instance_._instance, |
654 | | &::gifProtoFuzzer::_ImageData_default_instance_._instance, |
655 | | &::gifProtoFuzzer::_BasicChunk_default_instance_._instance, |
656 | | &::gifProtoFuzzer::_ApplicationExtension_default_instance_._instance, |
657 | | &::gifProtoFuzzer::_CommentExtension_default_instance_._instance, |
658 | | &::gifProtoFuzzer::_Header_default_instance_._instance, |
659 | | &::gifProtoFuzzer::_Trailer_default_instance_._instance, |
660 | | &::gifProtoFuzzer::_ImageChunk_default_instance_._instance, |
661 | | &::gifProtoFuzzer::_GifProto_default_instance_._instance, |
662 | | }; |
663 | | const char descriptor_table_protodef_gif_5ffuzz_5fproto_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( |
664 | | protodesc_cold) = { |
665 | | "\n\024gif_fuzz_proto.proto\022\016gifProtoFuzzer\"\202" |
666 | | "\001\n\027LogicalScreenDescriptor\022\023\n\013ScreenWidt" |
667 | | "h\030\001 \002(\r\022\024\n\014ScreenHeight\030\002 \002(\r\022\016\n\006Packed\030" |
668 | | "\003 \002(\r\022\027\n\017BackgroundColor\030\004 \002(\r\022\023\n\013Aspect" |
669 | | "Ratio\030\005 \002(\r\"\"\n\020GlobalColorTable\022\016\n\006color" |
670 | | "s\030\001 \002(\014\"n\n\017ImageDescriptor\022\021\n\tSeperator\030" |
671 | | "\001 \002(\r\022\014\n\004Left\030\002 \002(\r\022\013\n\003Top\030\003 \002(\r\022\r\n\005Widt" |
672 | | "h\030\004 \002(\r\022\016\n\006Height\030\005 \002(\r\022\016\n\006Packed\030\006 \002(\r\"" |
673 | | "[\n\027GraphicControlExtension\022\016\n\006Packed\030\001 \002" |
674 | | "(\r\022\021\n\tDelayTime\030\002 \002(\r\022\035\n\025transparentColo" |
675 | | "rIndex\030\003 \002(\r\"t\n\022PlainTextExtension\022&\n\004su" |
676 | | "bs\030\001 \003(\0132\030.gifProtoFuzzer.SubBlock\0226\n\005gc" |
677 | | "Ext\030\002 \001(\0132\'.gifProtoFuzzer.GraphicContro" |
678 | | "lExtension\"!\n\017LocalColorTable\022\016\n\006colors\030" |
679 | | "\001 \002(\014\"%\n\010SubBlock\022\013\n\003len\030\001 \002(\r\022\014\n\004data\030\002" |
680 | | " \002(\014\"@\n\tImageData\022\013\n\003lzw\030\001 \002(\r\022&\n\004subs\030\002" |
681 | | " \003(\0132\030.gifProtoFuzzer.SubBlock\"\321\001\n\nBasic" |
682 | | "Chunk\0225\n\014imDescriptor\030\001 \002(\0132\037.gifProtoFu" |
683 | | "zzer.ImageDescriptor\022,\n\003lct\030\002 \002(\0132\037.gifP" |
684 | | "rotoFuzzer.LocalColorTable\022&\n\003img\030\003 \002(\0132" |
685 | | "\031.gifProtoFuzzer.ImageData\0226\n\005gcExt\030\004 \001(" |
686 | | "\0132\'.gifProtoFuzzer.GraphicControlExtensi" |
687 | | "on\"M\n\024ApplicationExtension\022\r\n\005appid\030\001 \002(" |
688 | | "\006\022&\n\004subs\030\002 \003(\0132\030.gifProtoFuzzer.SubBloc" |
689 | | "k\":\n\020CommentExtension\022&\n\004subs\030\001 \003(\0132\030.gi" |
690 | | "fProtoFuzzer.SubBlock\"[\n\006Header\022+\n\003ver\030\001" |
691 | | " \002(\0162\036.gifProtoFuzzer.Header.Version\"$\n\007" |
692 | | "Version\022\007\n\003ENA\020\001\022\007\n\003ESA\020\002\022\007\n\003INV\020\003\"\t\n\007Tr" |
693 | | "ailer\"\355\001\n\nImageChunk\022+\n\005basic\030\001 \001(\0132\032.gi" |
694 | | "fProtoFuzzer.BasicChunkH\000\0227\n\tplaintext\030\002" |
695 | | " \001(\0132\".gifProtoFuzzer.PlainTextExtension" |
696 | | "H\000\0226\n\006appExt\030\003 \001(\0132$.gifProtoFuzzer.Appl" |
697 | | "icationExtensionH\000\0222\n\006comExt\030\004 \001(\0132 .gif" |
698 | | "ProtoFuzzer.CommentExtensionH\000B\r\n\013chunk_" |
699 | | "oneof\"\355\001\n\010GifProto\022&\n\006header\030\001 \002(\0132\026.gif" |
700 | | "ProtoFuzzer.Header\0224\n\003lsd\030\002 \002(\0132\'.gifPro" |
701 | | "toFuzzer.LogicalScreenDescriptor\022-\n\003gct\030" |
702 | | "\003 \002(\0132 .gifProtoFuzzer.GlobalColorTable\022" |
703 | | "*\n\006chunks\030\004 \003(\0132\032.gifProtoFuzzer.ImageCh" |
704 | | "unk\022(\n\007trailer\030\005 \002(\0132\027.gifProtoFuzzer.Tr" |
705 | | "ailer" |
706 | | }; |
707 | | static ::absl::once_flag descriptor_table_gif_5ffuzz_5fproto_2eproto_once; |
708 | | PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_gif_5ffuzz_5fproto_2eproto = { |
709 | | false, |
710 | | false, |
711 | | 1605, |
712 | | descriptor_table_protodef_gif_5ffuzz_5fproto_2eproto, |
713 | | "gif_fuzz_proto.proto", |
714 | | &descriptor_table_gif_5ffuzz_5fproto_2eproto_once, |
715 | | nullptr, |
716 | | 0, |
717 | | 15, |
718 | | schemas, |
719 | | file_default_instances, |
720 | | TableStruct_gif_5ffuzz_5fproto_2eproto::offsets, |
721 | | file_level_enum_descriptors_gif_5ffuzz_5fproto_2eproto, |
722 | | file_level_service_descriptors_gif_5ffuzz_5fproto_2eproto, |
723 | | }; |
724 | | namespace gifProtoFuzzer { |
725 | 0 | const ::google::protobuf::EnumDescriptor* Header_Version_descriptor() { |
726 | 0 | ::google::protobuf::internal::AssignDescriptors(&descriptor_table_gif_5ffuzz_5fproto_2eproto); |
727 | 0 | return file_level_enum_descriptors_gif_5ffuzz_5fproto_2eproto[0]; |
728 | 0 | } |
729 | | PROTOBUF_CONSTINIT const uint32_t Header_Version_internal_data_[] = { |
730 | | 196609u, 0u, }; |
731 | 0 | bool Header_Version_IsValid(int value) { |
732 | 0 | return 1 <= value && value <= 3; |
733 | 0 | } |
734 | | #if (__cplusplus < 201703) && \ |
735 | | (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) |
736 | | |
737 | | constexpr Header_Version Header::ENA; |
738 | | constexpr Header_Version Header::ESA; |
739 | | constexpr Header_Version Header::INV; |
740 | | constexpr Header_Version Header::Version_MIN; |
741 | | constexpr Header_Version Header::Version_MAX; |
742 | | constexpr int Header::Version_ARRAYSIZE; |
743 | | |
744 | | #endif // (__cplusplus < 201703) && |
745 | | // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) |
746 | | // =================================================================== |
747 | | |
748 | | class LogicalScreenDescriptor::_Internal { |
749 | | public: |
750 | | using HasBits = |
751 | | decltype(std::declval<LogicalScreenDescriptor>()._impl_._has_bits_); |
752 | | static constexpr ::int32_t kHasBitsOffset = |
753 | | 8 * PROTOBUF_FIELD_OFFSET(LogicalScreenDescriptor, _impl_._has_bits_); |
754 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
755 | 0 | return ((has_bits[0] & 0x0000001f) ^ 0x0000001f) != 0; |
756 | 0 | } |
757 | | }; |
758 | | |
759 | | LogicalScreenDescriptor::LogicalScreenDescriptor(::google::protobuf::Arena* arena) |
760 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
761 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
762 | | #else // PROTOBUF_CUSTOM_VTABLE |
763 | 1.39k | : ::google::protobuf::Message(arena) { |
764 | 1.39k | #endif // PROTOBUF_CUSTOM_VTABLE |
765 | 1.39k | SharedCtor(arena); |
766 | | // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.LogicalScreenDescriptor) |
767 | 1.39k | } |
768 | | LogicalScreenDescriptor::LogicalScreenDescriptor( |
769 | | ::google::protobuf::Arena* arena, const LogicalScreenDescriptor& from) |
770 | 0 | : LogicalScreenDescriptor(arena) { |
771 | 0 | MergeFrom(from); |
772 | 0 | } |
773 | | inline PROTOBUF_NDEBUG_INLINE LogicalScreenDescriptor::Impl_::Impl_( |
774 | | ::google::protobuf::internal::InternalVisibility visibility, |
775 | | ::google::protobuf::Arena* arena) |
776 | 1.39k | : _cached_size_{0} {} |
777 | | |
778 | 1.39k | inline void LogicalScreenDescriptor::SharedCtor(::_pb::Arena* arena) { |
779 | 1.39k | new (&_impl_) Impl_(internal_visibility(), arena); |
780 | 1.39k | ::memset(reinterpret_cast<char *>(&_impl_) + |
781 | 1.39k | offsetof(Impl_, screenwidth_), |
782 | 1.39k | 0, |
783 | 1.39k | offsetof(Impl_, aspectratio_) - |
784 | 1.39k | offsetof(Impl_, screenwidth_) + |
785 | 1.39k | sizeof(Impl_::aspectratio_)); |
786 | 1.39k | } |
787 | 1.39k | LogicalScreenDescriptor::~LogicalScreenDescriptor() { |
788 | | // @@protoc_insertion_point(destructor:gifProtoFuzzer.LogicalScreenDescriptor) |
789 | 1.39k | SharedDtor(*this); |
790 | 1.39k | } |
791 | 1.39k | inline void LogicalScreenDescriptor::SharedDtor(MessageLite& self) { |
792 | 1.39k | LogicalScreenDescriptor& this_ = static_cast<LogicalScreenDescriptor&>(self); |
793 | 1.39k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
794 | 1.39k | ABSL_DCHECK(this_.GetArena() == nullptr); |
795 | 1.39k | this_._impl_.~Impl_(); |
796 | 1.39k | } |
797 | | |
798 | | inline void* LogicalScreenDescriptor::PlacementNew_(const void*, void* mem, |
799 | 1.39k | ::google::protobuf::Arena* arena) { |
800 | 1.39k | return ::new (mem) LogicalScreenDescriptor(arena); |
801 | 1.39k | } |
802 | 0 | constexpr auto LogicalScreenDescriptor::InternalNewImpl_() { |
803 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(LogicalScreenDescriptor), |
804 | 0 | alignof(LogicalScreenDescriptor)); |
805 | 0 | } |
806 | | PROTOBUF_CONSTINIT |
807 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
808 | | const ::google::protobuf::internal::ClassDataFull LogicalScreenDescriptor::_class_data_ = { |
809 | | ::google::protobuf::internal::ClassData{ |
810 | | &_LogicalScreenDescriptor_default_instance_._instance, |
811 | | &_table_.header, |
812 | | nullptr, // OnDemandRegisterArenaDtor |
813 | | LogicalScreenDescriptor::IsInitializedImpl, |
814 | | &LogicalScreenDescriptor::MergeImpl, |
815 | | ::google::protobuf::Message::GetNewImpl<LogicalScreenDescriptor>(), |
816 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
817 | | &LogicalScreenDescriptor::SharedDtor, |
818 | | ::google::protobuf::Message::GetClearImpl<LogicalScreenDescriptor>(), &LogicalScreenDescriptor::ByteSizeLong, |
819 | | &LogicalScreenDescriptor::_InternalSerialize, |
820 | | #endif // PROTOBUF_CUSTOM_VTABLE |
821 | | PROTOBUF_FIELD_OFFSET(LogicalScreenDescriptor, _impl_._cached_size_), |
822 | | false, |
823 | | }, |
824 | | &LogicalScreenDescriptor::kDescriptorMethods, |
825 | | &descriptor_table_gif_5ffuzz_5fproto_2eproto, |
826 | | nullptr, // tracker |
827 | | }; |
828 | 18.1k | const ::google::protobuf::internal::ClassData* LogicalScreenDescriptor::GetClassData() const { |
829 | 18.1k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
830 | 18.1k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
831 | 18.1k | return _class_data_.base(); |
832 | 18.1k | } |
833 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
834 | | const ::_pbi::TcParseTable<3, 5, 0, 0, 2> LogicalScreenDescriptor::_table_ = { |
835 | | { |
836 | | PROTOBUF_FIELD_OFFSET(LogicalScreenDescriptor, _impl_._has_bits_), |
837 | | 0, // no _extensions_ |
838 | | 5, 56, // max_field_number, fast_idx_mask |
839 | | offsetof(decltype(_table_), field_lookup_table), |
840 | | 4294967264, // skipmap |
841 | | offsetof(decltype(_table_), field_entries), |
842 | | 5, // num_field_entries |
843 | | 0, // num_aux_entries |
844 | | offsetof(decltype(_table_), field_names), // no aux_entries |
845 | | _class_data_.base(), |
846 | | nullptr, // post_loop_handler |
847 | | ::_pbi::TcParser::GenericFallback, // fallback |
848 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
849 | | ::_pbi::TcParser::GetTable<::gifProtoFuzzer::LogicalScreenDescriptor>(), // to_prefetch |
850 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
851 | | }, {{ |
852 | | {::_pbi::TcParser::MiniParse, {}}, |
853 | | // required uint32 ScreenWidth = 1; |
854 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(LogicalScreenDescriptor, _impl_.screenwidth_), 0>(), |
855 | | {8, 0, 0, PROTOBUF_FIELD_OFFSET(LogicalScreenDescriptor, _impl_.screenwidth_)}}, |
856 | | // required uint32 ScreenHeight = 2; |
857 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(LogicalScreenDescriptor, _impl_.screenheight_), 1>(), |
858 | | {16, 1, 0, PROTOBUF_FIELD_OFFSET(LogicalScreenDescriptor, _impl_.screenheight_)}}, |
859 | | // required uint32 Packed = 3; |
860 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(LogicalScreenDescriptor, _impl_.packed_), 2>(), |
861 | | {24, 2, 0, PROTOBUF_FIELD_OFFSET(LogicalScreenDescriptor, _impl_.packed_)}}, |
862 | | // required uint32 BackgroundColor = 4; |
863 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(LogicalScreenDescriptor, _impl_.backgroundcolor_), 3>(), |
864 | | {32, 3, 0, PROTOBUF_FIELD_OFFSET(LogicalScreenDescriptor, _impl_.backgroundcolor_)}}, |
865 | | // required uint32 AspectRatio = 5; |
866 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(LogicalScreenDescriptor, _impl_.aspectratio_), 4>(), |
867 | | {40, 4, 0, PROTOBUF_FIELD_OFFSET(LogicalScreenDescriptor, _impl_.aspectratio_)}}, |
868 | | {::_pbi::TcParser::MiniParse, {}}, |
869 | | {::_pbi::TcParser::MiniParse, {}}, |
870 | | }}, {{ |
871 | | 65535, 65535 |
872 | | }}, {{ |
873 | | // required uint32 ScreenWidth = 1; |
874 | | {PROTOBUF_FIELD_OFFSET(LogicalScreenDescriptor, _impl_.screenwidth_), _Internal::kHasBitsOffset + 0, 0, |
875 | | (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, |
876 | | // required uint32 ScreenHeight = 2; |
877 | | {PROTOBUF_FIELD_OFFSET(LogicalScreenDescriptor, _impl_.screenheight_), _Internal::kHasBitsOffset + 1, 0, |
878 | | (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, |
879 | | // required uint32 Packed = 3; |
880 | | {PROTOBUF_FIELD_OFFSET(LogicalScreenDescriptor, _impl_.packed_), _Internal::kHasBitsOffset + 2, 0, |
881 | | (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, |
882 | | // required uint32 BackgroundColor = 4; |
883 | | {PROTOBUF_FIELD_OFFSET(LogicalScreenDescriptor, _impl_.backgroundcolor_), _Internal::kHasBitsOffset + 3, 0, |
884 | | (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, |
885 | | // required uint32 AspectRatio = 5; |
886 | | {PROTOBUF_FIELD_OFFSET(LogicalScreenDescriptor, _impl_.aspectratio_), _Internal::kHasBitsOffset + 4, 0, |
887 | | (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, |
888 | | }}, |
889 | | // no aux_entries |
890 | | {{ |
891 | | }}, |
892 | | }; |
893 | | |
894 | 806 | PROTOBUF_NOINLINE void LogicalScreenDescriptor::Clear() { |
895 | | // @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.LogicalScreenDescriptor) |
896 | 806 | ::google::protobuf::internal::TSanWrite(&_impl_); |
897 | 806 | ::uint32_t cached_has_bits = 0; |
898 | | // Prevent compiler warnings about cached_has_bits being unused |
899 | 806 | (void) cached_has_bits; |
900 | | |
901 | 806 | cached_has_bits = _impl_._has_bits_[0]; |
902 | 806 | if (cached_has_bits & 0x0000001fu) { |
903 | 14 | ::memset(&_impl_.screenwidth_, 0, static_cast<::size_t>( |
904 | 14 | reinterpret_cast<char*>(&_impl_.aspectratio_) - |
905 | 14 | reinterpret_cast<char*>(&_impl_.screenwidth_)) + sizeof(_impl_.aspectratio_)); |
906 | 14 | } |
907 | 806 | _impl_._has_bits_.Clear(); |
908 | 806 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
909 | 806 | } |
910 | | |
911 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
912 | | ::uint8_t* LogicalScreenDescriptor::_InternalSerialize( |
913 | | const MessageLite& base, ::uint8_t* target, |
914 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
915 | | const LogicalScreenDescriptor& this_ = static_cast<const LogicalScreenDescriptor&>(base); |
916 | | #else // PROTOBUF_CUSTOM_VTABLE |
917 | | ::uint8_t* LogicalScreenDescriptor::_InternalSerialize( |
918 | | ::uint8_t* target, |
919 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
920 | 0 | const LogicalScreenDescriptor& this_ = *this; |
921 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
922 | | // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.LogicalScreenDescriptor) |
923 | 0 | ::uint32_t cached_has_bits = 0; |
924 | 0 | (void)cached_has_bits; |
925 | |
|
926 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
927 | | // required uint32 ScreenWidth = 1; |
928 | 0 | if (cached_has_bits & 0x00000001u) { |
929 | 0 | target = stream->EnsureSpace(target); |
930 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
931 | 0 | 1, this_._internal_screenwidth(), target); |
932 | 0 | } |
933 | | |
934 | | // required uint32 ScreenHeight = 2; |
935 | 0 | if (cached_has_bits & 0x00000002u) { |
936 | 0 | target = stream->EnsureSpace(target); |
937 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
938 | 0 | 2, this_._internal_screenheight(), target); |
939 | 0 | } |
940 | | |
941 | | // required uint32 Packed = 3; |
942 | 0 | if (cached_has_bits & 0x00000004u) { |
943 | 0 | target = stream->EnsureSpace(target); |
944 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
945 | 0 | 3, this_._internal_packed(), target); |
946 | 0 | } |
947 | | |
948 | | // required uint32 BackgroundColor = 4; |
949 | 0 | if (cached_has_bits & 0x00000008u) { |
950 | 0 | target = stream->EnsureSpace(target); |
951 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
952 | 0 | 4, this_._internal_backgroundcolor(), target); |
953 | 0 | } |
954 | | |
955 | | // required uint32 AspectRatio = 5; |
956 | 0 | if (cached_has_bits & 0x00000010u) { |
957 | 0 | target = stream->EnsureSpace(target); |
958 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
959 | 0 | 5, this_._internal_aspectratio(), target); |
960 | 0 | } |
961 | |
|
962 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
963 | 0 | target = |
964 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
965 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
966 | 0 | } |
967 | | // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.LogicalScreenDescriptor) |
968 | 0 | return target; |
969 | 0 | } |
970 | | |
971 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
972 | | ::size_t LogicalScreenDescriptor::ByteSizeLong(const MessageLite& base) { |
973 | | const LogicalScreenDescriptor& this_ = static_cast<const LogicalScreenDescriptor&>(base); |
974 | | #else // PROTOBUF_CUSTOM_VTABLE |
975 | 0 | ::size_t LogicalScreenDescriptor::ByteSizeLong() const { |
976 | 0 | const LogicalScreenDescriptor& this_ = *this; |
977 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
978 | | // @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.LogicalScreenDescriptor) |
979 | 0 | ::size_t total_size = 0; |
980 | |
|
981 | 0 | ::uint32_t cached_has_bits = 0; |
982 | | // Prevent compiler warnings about cached_has_bits being unused |
983 | 0 | (void)cached_has_bits; |
984 | |
|
985 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
986 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
987 | 0 | if (cached_has_bits & 0x0000001fu) { |
988 | | // required uint32 ScreenWidth = 1; |
989 | 0 | if (cached_has_bits & 0x00000001u) { |
990 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
991 | 0 | this_._internal_screenwidth()); |
992 | 0 | } |
993 | | // required uint32 ScreenHeight = 2; |
994 | 0 | if (cached_has_bits & 0x00000002u) { |
995 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
996 | 0 | this_._internal_screenheight()); |
997 | 0 | } |
998 | | // required uint32 Packed = 3; |
999 | 0 | if (cached_has_bits & 0x00000004u) { |
1000 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
1001 | 0 | this_._internal_packed()); |
1002 | 0 | } |
1003 | | // required uint32 BackgroundColor = 4; |
1004 | 0 | if (cached_has_bits & 0x00000008u) { |
1005 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
1006 | 0 | this_._internal_backgroundcolor()); |
1007 | 0 | } |
1008 | | // required uint32 AspectRatio = 5; |
1009 | 0 | if (cached_has_bits & 0x00000010u) { |
1010 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
1011 | 0 | this_._internal_aspectratio()); |
1012 | 0 | } |
1013 | 0 | } |
1014 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
1015 | 0 | &this_._impl_._cached_size_); |
1016 | 0 | } |
1017 | | |
1018 | 391 | void LogicalScreenDescriptor::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
1019 | 391 | auto* const _this = static_cast<LogicalScreenDescriptor*>(&to_msg); |
1020 | 391 | auto& from = static_cast<const LogicalScreenDescriptor&>(from_msg); |
1021 | | // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.LogicalScreenDescriptor) |
1022 | 391 | ABSL_DCHECK_NE(&from, _this); |
1023 | 391 | ::uint32_t cached_has_bits = 0; |
1024 | 391 | (void) cached_has_bits; |
1025 | | |
1026 | 391 | cached_has_bits = from._impl_._has_bits_[0]; |
1027 | 391 | if (cached_has_bits & 0x0000001fu) { |
1028 | 0 | if (cached_has_bits & 0x00000001u) { |
1029 | 0 | _this->_impl_.screenwidth_ = from._impl_.screenwidth_; |
1030 | 0 | } |
1031 | 0 | if (cached_has_bits & 0x00000002u) { |
1032 | 0 | _this->_impl_.screenheight_ = from._impl_.screenheight_; |
1033 | 0 | } |
1034 | 0 | if (cached_has_bits & 0x00000004u) { |
1035 | 0 | _this->_impl_.packed_ = from._impl_.packed_; |
1036 | 0 | } |
1037 | 0 | if (cached_has_bits & 0x00000008u) { |
1038 | 0 | _this->_impl_.backgroundcolor_ = from._impl_.backgroundcolor_; |
1039 | 0 | } |
1040 | 0 | if (cached_has_bits & 0x00000010u) { |
1041 | 0 | _this->_impl_.aspectratio_ = from._impl_.aspectratio_; |
1042 | 0 | } |
1043 | 0 | } |
1044 | 391 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
1045 | 391 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
1046 | 391 | } |
1047 | | |
1048 | 0 | void LogicalScreenDescriptor::CopyFrom(const LogicalScreenDescriptor& from) { |
1049 | | // @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.LogicalScreenDescriptor) |
1050 | 0 | if (&from == this) return; |
1051 | 0 | Clear(); |
1052 | 0 | MergeFrom(from); |
1053 | 0 | } |
1054 | | |
1055 | | PROTOBUF_NOINLINE bool LogicalScreenDescriptor::IsInitializedImpl( |
1056 | 0 | const MessageLite& msg) { |
1057 | 0 | auto& this_ = static_cast<const LogicalScreenDescriptor&>(msg); |
1058 | 0 | if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { |
1059 | 0 | return false; |
1060 | 0 | } |
1061 | 0 | return true; |
1062 | 0 | } |
1063 | | |
1064 | 0 | void LogicalScreenDescriptor::InternalSwap(LogicalScreenDescriptor* PROTOBUF_RESTRICT other) { |
1065 | 0 | using std::swap; |
1066 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1067 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
1068 | 0 | ::google::protobuf::internal::memswap< |
1069 | 0 | PROTOBUF_FIELD_OFFSET(LogicalScreenDescriptor, _impl_.aspectratio_) |
1070 | 0 | + sizeof(LogicalScreenDescriptor::_impl_.aspectratio_) |
1071 | 0 | - PROTOBUF_FIELD_OFFSET(LogicalScreenDescriptor, _impl_.screenwidth_)>( |
1072 | 0 | reinterpret_cast<char*>(&_impl_.screenwidth_), |
1073 | 0 | reinterpret_cast<char*>(&other->_impl_.screenwidth_)); |
1074 | 0 | } |
1075 | | |
1076 | 0 | ::google::protobuf::Metadata LogicalScreenDescriptor::GetMetadata() const { |
1077 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
1078 | 0 | } |
1079 | | // =================================================================== |
1080 | | |
1081 | | class GlobalColorTable::_Internal { |
1082 | | public: |
1083 | | using HasBits = |
1084 | | decltype(std::declval<GlobalColorTable>()._impl_._has_bits_); |
1085 | | static constexpr ::int32_t kHasBitsOffset = |
1086 | | 8 * PROTOBUF_FIELD_OFFSET(GlobalColorTable, _impl_._has_bits_); |
1087 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
1088 | 0 | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
1089 | 0 | } |
1090 | | }; |
1091 | | |
1092 | | GlobalColorTable::GlobalColorTable(::google::protobuf::Arena* arena) |
1093 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1094 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1095 | | #else // PROTOBUF_CUSTOM_VTABLE |
1096 | 1.39k | : ::google::protobuf::Message(arena) { |
1097 | 1.39k | #endif // PROTOBUF_CUSTOM_VTABLE |
1098 | 1.39k | SharedCtor(arena); |
1099 | | // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.GlobalColorTable) |
1100 | 1.39k | } |
1101 | | inline PROTOBUF_NDEBUG_INLINE GlobalColorTable::Impl_::Impl_( |
1102 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
1103 | | const Impl_& from, const ::gifProtoFuzzer::GlobalColorTable& from_msg) |
1104 | 0 | : _has_bits_{from._has_bits_}, |
1105 | 0 | _cached_size_{0}, |
1106 | 0 | colors_(arena, from.colors_) {} |
1107 | | |
1108 | | GlobalColorTable::GlobalColorTable( |
1109 | | ::google::protobuf::Arena* arena, |
1110 | | const GlobalColorTable& from) |
1111 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1112 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1113 | | #else // PROTOBUF_CUSTOM_VTABLE |
1114 | 0 | : ::google::protobuf::Message(arena) { |
1115 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1116 | 0 | GlobalColorTable* const _this = this; |
1117 | 0 | (void)_this; |
1118 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
1119 | 0 | from._internal_metadata_); |
1120 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
1121 | | |
1122 | | // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.GlobalColorTable) |
1123 | 0 | } |
1124 | | inline PROTOBUF_NDEBUG_INLINE GlobalColorTable::Impl_::Impl_( |
1125 | | ::google::protobuf::internal::InternalVisibility visibility, |
1126 | | ::google::protobuf::Arena* arena) |
1127 | 1.39k | : _cached_size_{0}, |
1128 | 1.39k | colors_(arena) {} |
1129 | | |
1130 | 1.39k | inline void GlobalColorTable::SharedCtor(::_pb::Arena* arena) { |
1131 | 1.39k | new (&_impl_) Impl_(internal_visibility(), arena); |
1132 | 1.39k | } |
1133 | 1.39k | GlobalColorTable::~GlobalColorTable() { |
1134 | | // @@protoc_insertion_point(destructor:gifProtoFuzzer.GlobalColorTable) |
1135 | 1.39k | SharedDtor(*this); |
1136 | 1.39k | } |
1137 | 1.39k | inline void GlobalColorTable::SharedDtor(MessageLite& self) { |
1138 | 1.39k | GlobalColorTable& this_ = static_cast<GlobalColorTable&>(self); |
1139 | 1.39k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
1140 | 1.39k | ABSL_DCHECK(this_.GetArena() == nullptr); |
1141 | 1.39k | this_._impl_.colors_.Destroy(); |
1142 | 1.39k | this_._impl_.~Impl_(); |
1143 | 1.39k | } |
1144 | | |
1145 | | inline void* GlobalColorTable::PlacementNew_(const void*, void* mem, |
1146 | 1.39k | ::google::protobuf::Arena* arena) { |
1147 | 1.39k | return ::new (mem) GlobalColorTable(arena); |
1148 | 1.39k | } |
1149 | 0 | constexpr auto GlobalColorTable::InternalNewImpl_() { |
1150 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GlobalColorTable), |
1151 | 0 | alignof(GlobalColorTable)); |
1152 | 0 | } |
1153 | | PROTOBUF_CONSTINIT |
1154 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1155 | | const ::google::protobuf::internal::ClassDataFull GlobalColorTable::_class_data_ = { |
1156 | | ::google::protobuf::internal::ClassData{ |
1157 | | &_GlobalColorTable_default_instance_._instance, |
1158 | | &_table_.header, |
1159 | | nullptr, // OnDemandRegisterArenaDtor |
1160 | | GlobalColorTable::IsInitializedImpl, |
1161 | | &GlobalColorTable::MergeImpl, |
1162 | | ::google::protobuf::Message::GetNewImpl<GlobalColorTable>(), |
1163 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1164 | | &GlobalColorTable::SharedDtor, |
1165 | | ::google::protobuf::Message::GetClearImpl<GlobalColorTable>(), &GlobalColorTable::ByteSizeLong, |
1166 | | &GlobalColorTable::_InternalSerialize, |
1167 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1168 | | PROTOBUF_FIELD_OFFSET(GlobalColorTable, _impl_._cached_size_), |
1169 | | false, |
1170 | | }, |
1171 | | &GlobalColorTable::kDescriptorMethods, |
1172 | | &descriptor_table_gif_5ffuzz_5fproto_2eproto, |
1173 | | nullptr, // tracker |
1174 | | }; |
1175 | 9.57k | const ::google::protobuf::internal::ClassData* GlobalColorTable::GetClassData() const { |
1176 | 9.57k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
1177 | 9.57k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
1178 | 9.57k | return _class_data_.base(); |
1179 | 9.57k | } |
1180 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1181 | | const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GlobalColorTable::_table_ = { |
1182 | | { |
1183 | | PROTOBUF_FIELD_OFFSET(GlobalColorTable, _impl_._has_bits_), |
1184 | | 0, // no _extensions_ |
1185 | | 1, 0, // max_field_number, fast_idx_mask |
1186 | | offsetof(decltype(_table_), field_lookup_table), |
1187 | | 4294967294, // skipmap |
1188 | | offsetof(decltype(_table_), field_entries), |
1189 | | 1, // num_field_entries |
1190 | | 0, // num_aux_entries |
1191 | | offsetof(decltype(_table_), field_names), // no aux_entries |
1192 | | _class_data_.base(), |
1193 | | nullptr, // post_loop_handler |
1194 | | ::_pbi::TcParser::GenericFallback, // fallback |
1195 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
1196 | | ::_pbi::TcParser::GetTable<::gifProtoFuzzer::GlobalColorTable>(), // to_prefetch |
1197 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
1198 | | }, {{ |
1199 | | // required bytes colors = 1; |
1200 | | {::_pbi::TcParser::FastBS1, |
1201 | | {10, 0, 0, PROTOBUF_FIELD_OFFSET(GlobalColorTable, _impl_.colors_)}}, |
1202 | | }}, {{ |
1203 | | 65535, 65535 |
1204 | | }}, {{ |
1205 | | // required bytes colors = 1; |
1206 | | {PROTOBUF_FIELD_OFFSET(GlobalColorTable, _impl_.colors_), _Internal::kHasBitsOffset + 0, 0, |
1207 | | (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, |
1208 | | }}, |
1209 | | // no aux_entries |
1210 | | {{ |
1211 | | }}, |
1212 | | }; |
1213 | | |
1214 | 798 | PROTOBUF_NOINLINE void GlobalColorTable::Clear() { |
1215 | | // @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.GlobalColorTable) |
1216 | 798 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1217 | 798 | ::uint32_t cached_has_bits = 0; |
1218 | | // Prevent compiler warnings about cached_has_bits being unused |
1219 | 798 | (void) cached_has_bits; |
1220 | | |
1221 | 798 | cached_has_bits = _impl_._has_bits_[0]; |
1222 | 798 | if (cached_has_bits & 0x00000001u) { |
1223 | 11 | _impl_.colors_.ClearNonDefaultToEmpty(); |
1224 | 11 | } |
1225 | 798 | _impl_._has_bits_.Clear(); |
1226 | 798 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
1227 | 798 | } |
1228 | | |
1229 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1230 | | ::uint8_t* GlobalColorTable::_InternalSerialize( |
1231 | | const MessageLite& base, ::uint8_t* target, |
1232 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
1233 | | const GlobalColorTable& this_ = static_cast<const GlobalColorTable&>(base); |
1234 | | #else // PROTOBUF_CUSTOM_VTABLE |
1235 | | ::uint8_t* GlobalColorTable::_InternalSerialize( |
1236 | | ::uint8_t* target, |
1237 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1238 | 0 | const GlobalColorTable& this_ = *this; |
1239 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1240 | | // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.GlobalColorTable) |
1241 | 0 | ::uint32_t cached_has_bits = 0; |
1242 | 0 | (void)cached_has_bits; |
1243 | |
|
1244 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
1245 | | // required bytes colors = 1; |
1246 | 0 | if (cached_has_bits & 0x00000001u) { |
1247 | 0 | const std::string& _s = this_._internal_colors(); |
1248 | 0 | target = stream->WriteBytesMaybeAliased(1, _s, target); |
1249 | 0 | } |
1250 | |
|
1251 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
1252 | 0 | target = |
1253 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1254 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
1255 | 0 | } |
1256 | | // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.GlobalColorTable) |
1257 | 0 | return target; |
1258 | 0 | } |
1259 | | |
1260 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1261 | | ::size_t GlobalColorTable::ByteSizeLong(const MessageLite& base) { |
1262 | | const GlobalColorTable& this_ = static_cast<const GlobalColorTable&>(base); |
1263 | | #else // PROTOBUF_CUSTOM_VTABLE |
1264 | 0 | ::size_t GlobalColorTable::ByteSizeLong() const { |
1265 | 0 | const GlobalColorTable& this_ = *this; |
1266 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1267 | | // @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.GlobalColorTable) |
1268 | 0 | ::size_t total_size = 0; |
1269 | |
|
1270 | 0 | ::uint32_t cached_has_bits = 0; |
1271 | | // Prevent compiler warnings about cached_has_bits being unused |
1272 | 0 | (void)cached_has_bits; |
1273 | |
|
1274 | 0 | { |
1275 | | // required bytes colors = 1; |
1276 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
1277 | 0 | if (cached_has_bits & 0x00000001u) { |
1278 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
1279 | 0 | this_._internal_colors()); |
1280 | 0 | } |
1281 | 0 | } |
1282 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
1283 | 0 | &this_._impl_._cached_size_); |
1284 | 0 | } |
1285 | | |
1286 | 388 | void GlobalColorTable::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
1287 | 388 | auto* const _this = static_cast<GlobalColorTable*>(&to_msg); |
1288 | 388 | auto& from = static_cast<const GlobalColorTable&>(from_msg); |
1289 | | // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.GlobalColorTable) |
1290 | 388 | ABSL_DCHECK_NE(&from, _this); |
1291 | 388 | ::uint32_t cached_has_bits = 0; |
1292 | 388 | (void) cached_has_bits; |
1293 | | |
1294 | 388 | cached_has_bits = from._impl_._has_bits_[0]; |
1295 | 388 | if (cached_has_bits & 0x00000001u) { |
1296 | 0 | _this->_internal_set_colors(from._internal_colors()); |
1297 | 0 | } |
1298 | 388 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
1299 | 388 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
1300 | 388 | } |
1301 | | |
1302 | 0 | void GlobalColorTable::CopyFrom(const GlobalColorTable& from) { |
1303 | | // @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.GlobalColorTable) |
1304 | 0 | if (&from == this) return; |
1305 | 0 | Clear(); |
1306 | 0 | MergeFrom(from); |
1307 | 0 | } |
1308 | | |
1309 | | PROTOBUF_NOINLINE bool GlobalColorTable::IsInitializedImpl( |
1310 | 0 | const MessageLite& msg) { |
1311 | 0 | auto& this_ = static_cast<const GlobalColorTable&>(msg); |
1312 | 0 | if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { |
1313 | 0 | return false; |
1314 | 0 | } |
1315 | 0 | return true; |
1316 | 0 | } |
1317 | | |
1318 | 0 | void GlobalColorTable::InternalSwap(GlobalColorTable* PROTOBUF_RESTRICT other) { |
1319 | 0 | using std::swap; |
1320 | 0 | auto* arena = GetArena(); |
1321 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
1322 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1323 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
1324 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.colors_, &other->_impl_.colors_, arena); |
1325 | 0 | } |
1326 | | |
1327 | 0 | ::google::protobuf::Metadata GlobalColorTable::GetMetadata() const { |
1328 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
1329 | 0 | } |
1330 | | // =================================================================== |
1331 | | |
1332 | | class ImageDescriptor::_Internal { |
1333 | | public: |
1334 | | using HasBits = |
1335 | | decltype(std::declval<ImageDescriptor>()._impl_._has_bits_); |
1336 | | static constexpr ::int32_t kHasBitsOffset = |
1337 | | 8 * PROTOBUF_FIELD_OFFSET(ImageDescriptor, _impl_._has_bits_); |
1338 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
1339 | 0 | return ((has_bits[0] & 0x0000003f) ^ 0x0000003f) != 0; |
1340 | 0 | } |
1341 | | }; |
1342 | | |
1343 | | ImageDescriptor::ImageDescriptor(::google::protobuf::Arena* arena) |
1344 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1345 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1346 | | #else // PROTOBUF_CUSTOM_VTABLE |
1347 | 2.14k | : ::google::protobuf::Message(arena) { |
1348 | 2.14k | #endif // PROTOBUF_CUSTOM_VTABLE |
1349 | 2.14k | SharedCtor(arena); |
1350 | | // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.ImageDescriptor) |
1351 | 2.14k | } |
1352 | | ImageDescriptor::ImageDescriptor( |
1353 | | ::google::protobuf::Arena* arena, const ImageDescriptor& from) |
1354 | 0 | : ImageDescriptor(arena) { |
1355 | 0 | MergeFrom(from); |
1356 | 0 | } |
1357 | | inline PROTOBUF_NDEBUG_INLINE ImageDescriptor::Impl_::Impl_( |
1358 | | ::google::protobuf::internal::InternalVisibility visibility, |
1359 | | ::google::protobuf::Arena* arena) |
1360 | 2.14k | : _cached_size_{0} {} |
1361 | | |
1362 | 2.14k | inline void ImageDescriptor::SharedCtor(::_pb::Arena* arena) { |
1363 | 2.14k | new (&_impl_) Impl_(internal_visibility(), arena); |
1364 | 2.14k | ::memset(reinterpret_cast<char *>(&_impl_) + |
1365 | 2.14k | offsetof(Impl_, seperator_), |
1366 | 2.14k | 0, |
1367 | 2.14k | offsetof(Impl_, packed_) - |
1368 | 2.14k | offsetof(Impl_, seperator_) + |
1369 | 2.14k | sizeof(Impl_::packed_)); |
1370 | 2.14k | } |
1371 | 2.14k | ImageDescriptor::~ImageDescriptor() { |
1372 | | // @@protoc_insertion_point(destructor:gifProtoFuzzer.ImageDescriptor) |
1373 | 2.14k | SharedDtor(*this); |
1374 | 2.14k | } |
1375 | 2.14k | inline void ImageDescriptor::SharedDtor(MessageLite& self) { |
1376 | 2.14k | ImageDescriptor& this_ = static_cast<ImageDescriptor&>(self); |
1377 | 2.14k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
1378 | 2.14k | ABSL_DCHECK(this_.GetArena() == nullptr); |
1379 | 2.14k | this_._impl_.~Impl_(); |
1380 | 2.14k | } |
1381 | | |
1382 | | inline void* ImageDescriptor::PlacementNew_(const void*, void* mem, |
1383 | 2.14k | ::google::protobuf::Arena* arena) { |
1384 | 2.14k | return ::new (mem) ImageDescriptor(arena); |
1385 | 2.14k | } |
1386 | 0 | constexpr auto ImageDescriptor::InternalNewImpl_() { |
1387 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ImageDescriptor), |
1388 | 0 | alignof(ImageDescriptor)); |
1389 | 0 | } |
1390 | | PROTOBUF_CONSTINIT |
1391 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1392 | | const ::google::protobuf::internal::ClassDataFull ImageDescriptor::_class_data_ = { |
1393 | | ::google::protobuf::internal::ClassData{ |
1394 | | &_ImageDescriptor_default_instance_._instance, |
1395 | | &_table_.header, |
1396 | | nullptr, // OnDemandRegisterArenaDtor |
1397 | | ImageDescriptor::IsInitializedImpl, |
1398 | | &ImageDescriptor::MergeImpl, |
1399 | | ::google::protobuf::Message::GetNewImpl<ImageDescriptor>(), |
1400 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1401 | | &ImageDescriptor::SharedDtor, |
1402 | | ::google::protobuf::Message::GetClearImpl<ImageDescriptor>(), &ImageDescriptor::ByteSizeLong, |
1403 | | &ImageDescriptor::_InternalSerialize, |
1404 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1405 | | PROTOBUF_FIELD_OFFSET(ImageDescriptor, _impl_._cached_size_), |
1406 | | false, |
1407 | | }, |
1408 | | &ImageDescriptor::kDescriptorMethods, |
1409 | | &descriptor_table_gif_5ffuzz_5fproto_2eproto, |
1410 | | nullptr, // tracker |
1411 | | }; |
1412 | 26.8k | const ::google::protobuf::internal::ClassData* ImageDescriptor::GetClassData() const { |
1413 | 26.8k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
1414 | 26.8k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
1415 | 26.8k | return _class_data_.base(); |
1416 | 26.8k | } |
1417 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1418 | | const ::_pbi::TcParseTable<3, 6, 0, 0, 2> ImageDescriptor::_table_ = { |
1419 | | { |
1420 | | PROTOBUF_FIELD_OFFSET(ImageDescriptor, _impl_._has_bits_), |
1421 | | 0, // no _extensions_ |
1422 | | 6, 56, // max_field_number, fast_idx_mask |
1423 | | offsetof(decltype(_table_), field_lookup_table), |
1424 | | 4294967232, // skipmap |
1425 | | offsetof(decltype(_table_), field_entries), |
1426 | | 6, // num_field_entries |
1427 | | 0, // num_aux_entries |
1428 | | offsetof(decltype(_table_), field_names), // no aux_entries |
1429 | | _class_data_.base(), |
1430 | | nullptr, // post_loop_handler |
1431 | | ::_pbi::TcParser::GenericFallback, // fallback |
1432 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
1433 | | ::_pbi::TcParser::GetTable<::gifProtoFuzzer::ImageDescriptor>(), // to_prefetch |
1434 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
1435 | | }, {{ |
1436 | | {::_pbi::TcParser::MiniParse, {}}, |
1437 | | // required uint32 Seperator = 1; |
1438 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ImageDescriptor, _impl_.seperator_), 0>(), |
1439 | | {8, 0, 0, PROTOBUF_FIELD_OFFSET(ImageDescriptor, _impl_.seperator_)}}, |
1440 | | // required uint32 Left = 2; |
1441 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ImageDescriptor, _impl_.left_), 1>(), |
1442 | | {16, 1, 0, PROTOBUF_FIELD_OFFSET(ImageDescriptor, _impl_.left_)}}, |
1443 | | // required uint32 Top = 3; |
1444 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ImageDescriptor, _impl_.top_), 2>(), |
1445 | | {24, 2, 0, PROTOBUF_FIELD_OFFSET(ImageDescriptor, _impl_.top_)}}, |
1446 | | // required uint32 Width = 4; |
1447 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ImageDescriptor, _impl_.width_), 3>(), |
1448 | | {32, 3, 0, PROTOBUF_FIELD_OFFSET(ImageDescriptor, _impl_.width_)}}, |
1449 | | // required uint32 Height = 5; |
1450 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ImageDescriptor, _impl_.height_), 4>(), |
1451 | | {40, 4, 0, PROTOBUF_FIELD_OFFSET(ImageDescriptor, _impl_.height_)}}, |
1452 | | // required uint32 Packed = 6; |
1453 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ImageDescriptor, _impl_.packed_), 5>(), |
1454 | | {48, 5, 0, PROTOBUF_FIELD_OFFSET(ImageDescriptor, _impl_.packed_)}}, |
1455 | | {::_pbi::TcParser::MiniParse, {}}, |
1456 | | }}, {{ |
1457 | | 65535, 65535 |
1458 | | }}, {{ |
1459 | | // required uint32 Seperator = 1; |
1460 | | {PROTOBUF_FIELD_OFFSET(ImageDescriptor, _impl_.seperator_), _Internal::kHasBitsOffset + 0, 0, |
1461 | | (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, |
1462 | | // required uint32 Left = 2; |
1463 | | {PROTOBUF_FIELD_OFFSET(ImageDescriptor, _impl_.left_), _Internal::kHasBitsOffset + 1, 0, |
1464 | | (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, |
1465 | | // required uint32 Top = 3; |
1466 | | {PROTOBUF_FIELD_OFFSET(ImageDescriptor, _impl_.top_), _Internal::kHasBitsOffset + 2, 0, |
1467 | | (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, |
1468 | | // required uint32 Width = 4; |
1469 | | {PROTOBUF_FIELD_OFFSET(ImageDescriptor, _impl_.width_), _Internal::kHasBitsOffset + 3, 0, |
1470 | | (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, |
1471 | | // required uint32 Height = 5; |
1472 | | {PROTOBUF_FIELD_OFFSET(ImageDescriptor, _impl_.height_), _Internal::kHasBitsOffset + 4, 0, |
1473 | | (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, |
1474 | | // required uint32 Packed = 6; |
1475 | | {PROTOBUF_FIELD_OFFSET(ImageDescriptor, _impl_.packed_), _Internal::kHasBitsOffset + 5, 0, |
1476 | | (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, |
1477 | | }}, |
1478 | | // no aux_entries |
1479 | | {{ |
1480 | | }}, |
1481 | | }; |
1482 | | |
1483 | 1.27k | PROTOBUF_NOINLINE void ImageDescriptor::Clear() { |
1484 | | // @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.ImageDescriptor) |
1485 | 1.27k | ::google::protobuf::internal::TSanWrite(&_impl_); |
1486 | 1.27k | ::uint32_t cached_has_bits = 0; |
1487 | | // Prevent compiler warnings about cached_has_bits being unused |
1488 | 1.27k | (void) cached_has_bits; |
1489 | | |
1490 | 1.27k | cached_has_bits = _impl_._has_bits_[0]; |
1491 | 1.27k | if (cached_has_bits & 0x0000003fu) { |
1492 | 0 | ::memset(&_impl_.seperator_, 0, static_cast<::size_t>( |
1493 | 0 | reinterpret_cast<char*>(&_impl_.packed_) - |
1494 | 0 | reinterpret_cast<char*>(&_impl_.seperator_)) + sizeof(_impl_.packed_)); |
1495 | 0 | } |
1496 | 1.27k | _impl_._has_bits_.Clear(); |
1497 | 1.27k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
1498 | 1.27k | } |
1499 | | |
1500 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1501 | | ::uint8_t* ImageDescriptor::_InternalSerialize( |
1502 | | const MessageLite& base, ::uint8_t* target, |
1503 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
1504 | | const ImageDescriptor& this_ = static_cast<const ImageDescriptor&>(base); |
1505 | | #else // PROTOBUF_CUSTOM_VTABLE |
1506 | | ::uint8_t* ImageDescriptor::_InternalSerialize( |
1507 | | ::uint8_t* target, |
1508 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1509 | 0 | const ImageDescriptor& this_ = *this; |
1510 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1511 | | // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.ImageDescriptor) |
1512 | 0 | ::uint32_t cached_has_bits = 0; |
1513 | 0 | (void)cached_has_bits; |
1514 | |
|
1515 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
1516 | | // required uint32 Seperator = 1; |
1517 | 0 | if (cached_has_bits & 0x00000001u) { |
1518 | 0 | target = stream->EnsureSpace(target); |
1519 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
1520 | 0 | 1, this_._internal_seperator(), target); |
1521 | 0 | } |
1522 | | |
1523 | | // required uint32 Left = 2; |
1524 | 0 | if (cached_has_bits & 0x00000002u) { |
1525 | 0 | target = stream->EnsureSpace(target); |
1526 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
1527 | 0 | 2, this_._internal_left(), target); |
1528 | 0 | } |
1529 | | |
1530 | | // required uint32 Top = 3; |
1531 | 0 | if (cached_has_bits & 0x00000004u) { |
1532 | 0 | target = stream->EnsureSpace(target); |
1533 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
1534 | 0 | 3, this_._internal_top(), target); |
1535 | 0 | } |
1536 | | |
1537 | | // required uint32 Width = 4; |
1538 | 0 | if (cached_has_bits & 0x00000008u) { |
1539 | 0 | target = stream->EnsureSpace(target); |
1540 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
1541 | 0 | 4, this_._internal_width(), target); |
1542 | 0 | } |
1543 | | |
1544 | | // required uint32 Height = 5; |
1545 | 0 | if (cached_has_bits & 0x00000010u) { |
1546 | 0 | target = stream->EnsureSpace(target); |
1547 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
1548 | 0 | 5, this_._internal_height(), target); |
1549 | 0 | } |
1550 | | |
1551 | | // required uint32 Packed = 6; |
1552 | 0 | if (cached_has_bits & 0x00000020u) { |
1553 | 0 | target = stream->EnsureSpace(target); |
1554 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
1555 | 0 | 6, this_._internal_packed(), target); |
1556 | 0 | } |
1557 | |
|
1558 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
1559 | 0 | target = |
1560 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1561 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
1562 | 0 | } |
1563 | | // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.ImageDescriptor) |
1564 | 0 | return target; |
1565 | 0 | } |
1566 | | |
1567 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1568 | | ::size_t ImageDescriptor::ByteSizeLong(const MessageLite& base) { |
1569 | | const ImageDescriptor& this_ = static_cast<const ImageDescriptor&>(base); |
1570 | | #else // PROTOBUF_CUSTOM_VTABLE |
1571 | 0 | ::size_t ImageDescriptor::ByteSizeLong() const { |
1572 | 0 | const ImageDescriptor& this_ = *this; |
1573 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1574 | | // @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.ImageDescriptor) |
1575 | 0 | ::size_t total_size = 0; |
1576 | |
|
1577 | 0 | ::uint32_t cached_has_bits = 0; |
1578 | | // Prevent compiler warnings about cached_has_bits being unused |
1579 | 0 | (void)cached_has_bits; |
1580 | |
|
1581 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
1582 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
1583 | 0 | if (cached_has_bits & 0x0000003fu) { |
1584 | | // required uint32 Seperator = 1; |
1585 | 0 | if (cached_has_bits & 0x00000001u) { |
1586 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
1587 | 0 | this_._internal_seperator()); |
1588 | 0 | } |
1589 | | // required uint32 Left = 2; |
1590 | 0 | if (cached_has_bits & 0x00000002u) { |
1591 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
1592 | 0 | this_._internal_left()); |
1593 | 0 | } |
1594 | | // required uint32 Top = 3; |
1595 | 0 | if (cached_has_bits & 0x00000004u) { |
1596 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
1597 | 0 | this_._internal_top()); |
1598 | 0 | } |
1599 | | // required uint32 Width = 4; |
1600 | 0 | if (cached_has_bits & 0x00000008u) { |
1601 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
1602 | 0 | this_._internal_width()); |
1603 | 0 | } |
1604 | | // required uint32 Height = 5; |
1605 | 0 | if (cached_has_bits & 0x00000010u) { |
1606 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
1607 | 0 | this_._internal_height()); |
1608 | 0 | } |
1609 | | // required uint32 Packed = 6; |
1610 | 0 | if (cached_has_bits & 0x00000020u) { |
1611 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
1612 | 0 | this_._internal_packed()); |
1613 | 0 | } |
1614 | 0 | } |
1615 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
1616 | 0 | &this_._impl_._cached_size_); |
1617 | 0 | } |
1618 | | |
1619 | 639 | void ImageDescriptor::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
1620 | 639 | auto* const _this = static_cast<ImageDescriptor*>(&to_msg); |
1621 | 639 | auto& from = static_cast<const ImageDescriptor&>(from_msg); |
1622 | | // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.ImageDescriptor) |
1623 | 639 | ABSL_DCHECK_NE(&from, _this); |
1624 | 639 | ::uint32_t cached_has_bits = 0; |
1625 | 639 | (void) cached_has_bits; |
1626 | | |
1627 | 639 | cached_has_bits = from._impl_._has_bits_[0]; |
1628 | 639 | if (cached_has_bits & 0x0000003fu) { |
1629 | 0 | if (cached_has_bits & 0x00000001u) { |
1630 | 0 | _this->_impl_.seperator_ = from._impl_.seperator_; |
1631 | 0 | } |
1632 | 0 | if (cached_has_bits & 0x00000002u) { |
1633 | 0 | _this->_impl_.left_ = from._impl_.left_; |
1634 | 0 | } |
1635 | 0 | if (cached_has_bits & 0x00000004u) { |
1636 | 0 | _this->_impl_.top_ = from._impl_.top_; |
1637 | 0 | } |
1638 | 0 | if (cached_has_bits & 0x00000008u) { |
1639 | 0 | _this->_impl_.width_ = from._impl_.width_; |
1640 | 0 | } |
1641 | 0 | if (cached_has_bits & 0x00000010u) { |
1642 | 0 | _this->_impl_.height_ = from._impl_.height_; |
1643 | 0 | } |
1644 | 0 | if (cached_has_bits & 0x00000020u) { |
1645 | 0 | _this->_impl_.packed_ = from._impl_.packed_; |
1646 | 0 | } |
1647 | 0 | } |
1648 | 639 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
1649 | 639 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
1650 | 639 | } |
1651 | | |
1652 | 0 | void ImageDescriptor::CopyFrom(const ImageDescriptor& from) { |
1653 | | // @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.ImageDescriptor) |
1654 | 0 | if (&from == this) return; |
1655 | 0 | Clear(); |
1656 | 0 | MergeFrom(from); |
1657 | 0 | } |
1658 | | |
1659 | | PROTOBUF_NOINLINE bool ImageDescriptor::IsInitializedImpl( |
1660 | 0 | const MessageLite& msg) { |
1661 | 0 | auto& this_ = static_cast<const ImageDescriptor&>(msg); |
1662 | 0 | if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { |
1663 | 0 | return false; |
1664 | 0 | } |
1665 | 0 | return true; |
1666 | 0 | } |
1667 | | |
1668 | 0 | void ImageDescriptor::InternalSwap(ImageDescriptor* PROTOBUF_RESTRICT other) { |
1669 | 0 | using std::swap; |
1670 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1671 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
1672 | 0 | ::google::protobuf::internal::memswap< |
1673 | 0 | PROTOBUF_FIELD_OFFSET(ImageDescriptor, _impl_.packed_) |
1674 | 0 | + sizeof(ImageDescriptor::_impl_.packed_) |
1675 | 0 | - PROTOBUF_FIELD_OFFSET(ImageDescriptor, _impl_.seperator_)>( |
1676 | 0 | reinterpret_cast<char*>(&_impl_.seperator_), |
1677 | 0 | reinterpret_cast<char*>(&other->_impl_.seperator_)); |
1678 | 0 | } |
1679 | | |
1680 | 0 | ::google::protobuf::Metadata ImageDescriptor::GetMetadata() const { |
1681 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
1682 | 0 | } |
1683 | | // =================================================================== |
1684 | | |
1685 | | class GraphicControlExtension::_Internal { |
1686 | | public: |
1687 | | using HasBits = |
1688 | | decltype(std::declval<GraphicControlExtension>()._impl_._has_bits_); |
1689 | | static constexpr ::int32_t kHasBitsOffset = |
1690 | | 8 * PROTOBUF_FIELD_OFFSET(GraphicControlExtension, _impl_._has_bits_); |
1691 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
1692 | 0 | return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; |
1693 | 0 | } |
1694 | | }; |
1695 | | |
1696 | | GraphicControlExtension::GraphicControlExtension(::google::protobuf::Arena* arena) |
1697 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1698 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1699 | | #else // PROTOBUF_CUSTOM_VTABLE |
1700 | 675 | : ::google::protobuf::Message(arena) { |
1701 | 675 | #endif // PROTOBUF_CUSTOM_VTABLE |
1702 | 675 | SharedCtor(arena); |
1703 | | // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.GraphicControlExtension) |
1704 | 675 | } |
1705 | | GraphicControlExtension::GraphicControlExtension( |
1706 | | ::google::protobuf::Arena* arena, const GraphicControlExtension& from) |
1707 | 0 | : GraphicControlExtension(arena) { |
1708 | 0 | MergeFrom(from); |
1709 | 0 | } |
1710 | | inline PROTOBUF_NDEBUG_INLINE GraphicControlExtension::Impl_::Impl_( |
1711 | | ::google::protobuf::internal::InternalVisibility visibility, |
1712 | | ::google::protobuf::Arena* arena) |
1713 | 675 | : _cached_size_{0} {} |
1714 | | |
1715 | 675 | inline void GraphicControlExtension::SharedCtor(::_pb::Arena* arena) { |
1716 | 675 | new (&_impl_) Impl_(internal_visibility(), arena); |
1717 | 675 | ::memset(reinterpret_cast<char *>(&_impl_) + |
1718 | 675 | offsetof(Impl_, packed_), |
1719 | 675 | 0, |
1720 | 675 | offsetof(Impl_, transparentcolorindex_) - |
1721 | 675 | offsetof(Impl_, packed_) + |
1722 | 675 | sizeof(Impl_::transparentcolorindex_)); |
1723 | 675 | } |
1724 | 675 | GraphicControlExtension::~GraphicControlExtension() { |
1725 | | // @@protoc_insertion_point(destructor:gifProtoFuzzer.GraphicControlExtension) |
1726 | 675 | SharedDtor(*this); |
1727 | 675 | } |
1728 | 675 | inline void GraphicControlExtension::SharedDtor(MessageLite& self) { |
1729 | 675 | GraphicControlExtension& this_ = static_cast<GraphicControlExtension&>(self); |
1730 | 675 | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
1731 | 675 | ABSL_DCHECK(this_.GetArena() == nullptr); |
1732 | 675 | this_._impl_.~Impl_(); |
1733 | 675 | } |
1734 | | |
1735 | | inline void* GraphicControlExtension::PlacementNew_(const void*, void* mem, |
1736 | 675 | ::google::protobuf::Arena* arena) { |
1737 | 675 | return ::new (mem) GraphicControlExtension(arena); |
1738 | 675 | } |
1739 | 0 | constexpr auto GraphicControlExtension::InternalNewImpl_() { |
1740 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GraphicControlExtension), |
1741 | 0 | alignof(GraphicControlExtension)); |
1742 | 0 | } |
1743 | | PROTOBUF_CONSTINIT |
1744 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1745 | | const ::google::protobuf::internal::ClassDataFull GraphicControlExtension::_class_data_ = { |
1746 | | ::google::protobuf::internal::ClassData{ |
1747 | | &_GraphicControlExtension_default_instance_._instance, |
1748 | | &_table_.header, |
1749 | | nullptr, // OnDemandRegisterArenaDtor |
1750 | | GraphicControlExtension::IsInitializedImpl, |
1751 | | &GraphicControlExtension::MergeImpl, |
1752 | | ::google::protobuf::Message::GetNewImpl<GraphicControlExtension>(), |
1753 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1754 | | &GraphicControlExtension::SharedDtor, |
1755 | | ::google::protobuf::Message::GetClearImpl<GraphicControlExtension>(), &GraphicControlExtension::ByteSizeLong, |
1756 | | &GraphicControlExtension::_InternalSerialize, |
1757 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1758 | | PROTOBUF_FIELD_OFFSET(GraphicControlExtension, _impl_._cached_size_), |
1759 | | false, |
1760 | | }, |
1761 | | &GraphicControlExtension::kDescriptorMethods, |
1762 | | &descriptor_table_gif_5ffuzz_5fproto_2eproto, |
1763 | | nullptr, // tracker |
1764 | | }; |
1765 | 4.99k | const ::google::protobuf::internal::ClassData* GraphicControlExtension::GetClassData() const { |
1766 | 4.99k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
1767 | 4.99k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
1768 | 4.99k | return _class_data_.base(); |
1769 | 4.99k | } |
1770 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
1771 | | const ::_pbi::TcParseTable<2, 3, 0, 0, 2> GraphicControlExtension::_table_ = { |
1772 | | { |
1773 | | PROTOBUF_FIELD_OFFSET(GraphicControlExtension, _impl_._has_bits_), |
1774 | | 0, // no _extensions_ |
1775 | | 3, 24, // max_field_number, fast_idx_mask |
1776 | | offsetof(decltype(_table_), field_lookup_table), |
1777 | | 4294967288, // skipmap |
1778 | | offsetof(decltype(_table_), field_entries), |
1779 | | 3, // num_field_entries |
1780 | | 0, // num_aux_entries |
1781 | | offsetof(decltype(_table_), field_names), // no aux_entries |
1782 | | _class_data_.base(), |
1783 | | nullptr, // post_loop_handler |
1784 | | ::_pbi::TcParser::GenericFallback, // fallback |
1785 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
1786 | | ::_pbi::TcParser::GetTable<::gifProtoFuzzer::GraphicControlExtension>(), // to_prefetch |
1787 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
1788 | | }, {{ |
1789 | | {::_pbi::TcParser::MiniParse, {}}, |
1790 | | // required uint32 Packed = 1; |
1791 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GraphicControlExtension, _impl_.packed_), 0>(), |
1792 | | {8, 0, 0, PROTOBUF_FIELD_OFFSET(GraphicControlExtension, _impl_.packed_)}}, |
1793 | | // required uint32 DelayTime = 2; |
1794 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GraphicControlExtension, _impl_.delaytime_), 1>(), |
1795 | | {16, 1, 0, PROTOBUF_FIELD_OFFSET(GraphicControlExtension, _impl_.delaytime_)}}, |
1796 | | // required uint32 transparentColorIndex = 3; |
1797 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GraphicControlExtension, _impl_.transparentcolorindex_), 2>(), |
1798 | | {24, 2, 0, PROTOBUF_FIELD_OFFSET(GraphicControlExtension, _impl_.transparentcolorindex_)}}, |
1799 | | }}, {{ |
1800 | | 65535, 65535 |
1801 | | }}, {{ |
1802 | | // required uint32 Packed = 1; |
1803 | | {PROTOBUF_FIELD_OFFSET(GraphicControlExtension, _impl_.packed_), _Internal::kHasBitsOffset + 0, 0, |
1804 | | (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, |
1805 | | // required uint32 DelayTime = 2; |
1806 | | {PROTOBUF_FIELD_OFFSET(GraphicControlExtension, _impl_.delaytime_), _Internal::kHasBitsOffset + 1, 0, |
1807 | | (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, |
1808 | | // required uint32 transparentColorIndex = 3; |
1809 | | {PROTOBUF_FIELD_OFFSET(GraphicControlExtension, _impl_.transparentcolorindex_), _Internal::kHasBitsOffset + 2, 0, |
1810 | | (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, |
1811 | | }}, |
1812 | | // no aux_entries |
1813 | | {{ |
1814 | | }}, |
1815 | | }; |
1816 | | |
1817 | 0 | PROTOBUF_NOINLINE void GraphicControlExtension::Clear() { |
1818 | | // @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.GraphicControlExtension) |
1819 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
1820 | 0 | ::uint32_t cached_has_bits = 0; |
1821 | | // Prevent compiler warnings about cached_has_bits being unused |
1822 | 0 | (void) cached_has_bits; |
1823 | |
|
1824 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
1825 | 0 | if (cached_has_bits & 0x00000007u) { |
1826 | 0 | ::memset(&_impl_.packed_, 0, static_cast<::size_t>( |
1827 | 0 | reinterpret_cast<char*>(&_impl_.transparentcolorindex_) - |
1828 | 0 | reinterpret_cast<char*>(&_impl_.packed_)) + sizeof(_impl_.transparentcolorindex_)); |
1829 | 0 | } |
1830 | 0 | _impl_._has_bits_.Clear(); |
1831 | 0 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
1832 | 0 | } |
1833 | | |
1834 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1835 | | ::uint8_t* GraphicControlExtension::_InternalSerialize( |
1836 | | const MessageLite& base, ::uint8_t* target, |
1837 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
1838 | | const GraphicControlExtension& this_ = static_cast<const GraphicControlExtension&>(base); |
1839 | | #else // PROTOBUF_CUSTOM_VTABLE |
1840 | | ::uint8_t* GraphicControlExtension::_InternalSerialize( |
1841 | | ::uint8_t* target, |
1842 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1843 | 0 | const GraphicControlExtension& this_ = *this; |
1844 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1845 | | // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.GraphicControlExtension) |
1846 | 0 | ::uint32_t cached_has_bits = 0; |
1847 | 0 | (void)cached_has_bits; |
1848 | |
|
1849 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
1850 | | // required uint32 Packed = 1; |
1851 | 0 | if (cached_has_bits & 0x00000001u) { |
1852 | 0 | target = stream->EnsureSpace(target); |
1853 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
1854 | 0 | 1, this_._internal_packed(), target); |
1855 | 0 | } |
1856 | | |
1857 | | // required uint32 DelayTime = 2; |
1858 | 0 | if (cached_has_bits & 0x00000002u) { |
1859 | 0 | target = stream->EnsureSpace(target); |
1860 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
1861 | 0 | 2, this_._internal_delaytime(), target); |
1862 | 0 | } |
1863 | | |
1864 | | // required uint32 transparentColorIndex = 3; |
1865 | 0 | if (cached_has_bits & 0x00000004u) { |
1866 | 0 | target = stream->EnsureSpace(target); |
1867 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
1868 | 0 | 3, this_._internal_transparentcolorindex(), target); |
1869 | 0 | } |
1870 | |
|
1871 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
1872 | 0 | target = |
1873 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1874 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
1875 | 0 | } |
1876 | | // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.GraphicControlExtension) |
1877 | 0 | return target; |
1878 | 0 | } |
1879 | | |
1880 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1881 | | ::size_t GraphicControlExtension::ByteSizeLong(const MessageLite& base) { |
1882 | | const GraphicControlExtension& this_ = static_cast<const GraphicControlExtension&>(base); |
1883 | | #else // PROTOBUF_CUSTOM_VTABLE |
1884 | 0 | ::size_t GraphicControlExtension::ByteSizeLong() const { |
1885 | 0 | const GraphicControlExtension& this_ = *this; |
1886 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
1887 | | // @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.GraphicControlExtension) |
1888 | 0 | ::size_t total_size = 0; |
1889 | |
|
1890 | 0 | ::uint32_t cached_has_bits = 0; |
1891 | | // Prevent compiler warnings about cached_has_bits being unused |
1892 | 0 | (void)cached_has_bits; |
1893 | |
|
1894 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
1895 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
1896 | 0 | if (cached_has_bits & 0x00000007u) { |
1897 | | // required uint32 Packed = 1; |
1898 | 0 | if (cached_has_bits & 0x00000001u) { |
1899 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
1900 | 0 | this_._internal_packed()); |
1901 | 0 | } |
1902 | | // required uint32 DelayTime = 2; |
1903 | 0 | if (cached_has_bits & 0x00000002u) { |
1904 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
1905 | 0 | this_._internal_delaytime()); |
1906 | 0 | } |
1907 | | // required uint32 transparentColorIndex = 3; |
1908 | 0 | if (cached_has_bits & 0x00000004u) { |
1909 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
1910 | 0 | this_._internal_transparentcolorindex()); |
1911 | 0 | } |
1912 | 0 | } |
1913 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
1914 | 0 | &this_._impl_._cached_size_); |
1915 | 0 | } |
1916 | | |
1917 | 0 | void GraphicControlExtension::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
1918 | 0 | auto* const _this = static_cast<GraphicControlExtension*>(&to_msg); |
1919 | 0 | auto& from = static_cast<const GraphicControlExtension&>(from_msg); |
1920 | | // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.GraphicControlExtension) |
1921 | 0 | ABSL_DCHECK_NE(&from, _this); |
1922 | 0 | ::uint32_t cached_has_bits = 0; |
1923 | 0 | (void) cached_has_bits; |
1924 | |
|
1925 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
1926 | 0 | if (cached_has_bits & 0x00000007u) { |
1927 | 0 | if (cached_has_bits & 0x00000001u) { |
1928 | 0 | _this->_impl_.packed_ = from._impl_.packed_; |
1929 | 0 | } |
1930 | 0 | if (cached_has_bits & 0x00000002u) { |
1931 | 0 | _this->_impl_.delaytime_ = from._impl_.delaytime_; |
1932 | 0 | } |
1933 | 0 | if (cached_has_bits & 0x00000004u) { |
1934 | 0 | _this->_impl_.transparentcolorindex_ = from._impl_.transparentcolorindex_; |
1935 | 0 | } |
1936 | 0 | } |
1937 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
1938 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
1939 | 0 | } |
1940 | | |
1941 | 0 | void GraphicControlExtension::CopyFrom(const GraphicControlExtension& from) { |
1942 | | // @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.GraphicControlExtension) |
1943 | 0 | if (&from == this) return; |
1944 | 0 | Clear(); |
1945 | 0 | MergeFrom(from); |
1946 | 0 | } |
1947 | | |
1948 | | PROTOBUF_NOINLINE bool GraphicControlExtension::IsInitializedImpl( |
1949 | 0 | const MessageLite& msg) { |
1950 | 0 | auto& this_ = static_cast<const GraphicControlExtension&>(msg); |
1951 | 0 | if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { |
1952 | 0 | return false; |
1953 | 0 | } |
1954 | 0 | return true; |
1955 | 0 | } |
1956 | | |
1957 | 0 | void GraphicControlExtension::InternalSwap(GraphicControlExtension* PROTOBUF_RESTRICT other) { |
1958 | 0 | using std::swap; |
1959 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1960 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
1961 | 0 | ::google::protobuf::internal::memswap< |
1962 | 0 | PROTOBUF_FIELD_OFFSET(GraphicControlExtension, _impl_.transparentcolorindex_) |
1963 | 0 | + sizeof(GraphicControlExtension::_impl_.transparentcolorindex_) |
1964 | 0 | - PROTOBUF_FIELD_OFFSET(GraphicControlExtension, _impl_.packed_)>( |
1965 | 0 | reinterpret_cast<char*>(&_impl_.packed_), |
1966 | 0 | reinterpret_cast<char*>(&other->_impl_.packed_)); |
1967 | 0 | } |
1968 | | |
1969 | 0 | ::google::protobuf::Metadata GraphicControlExtension::GetMetadata() const { |
1970 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
1971 | 0 | } |
1972 | | // =================================================================== |
1973 | | |
1974 | | class PlainTextExtension::_Internal { |
1975 | | public: |
1976 | | using HasBits = |
1977 | | decltype(std::declval<PlainTextExtension>()._impl_._has_bits_); |
1978 | | static constexpr ::int32_t kHasBitsOffset = |
1979 | | 8 * PROTOBUF_FIELD_OFFSET(PlainTextExtension, _impl_._has_bits_); |
1980 | | }; |
1981 | | |
1982 | | PlainTextExtension::PlainTextExtension(::google::protobuf::Arena* arena) |
1983 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1984 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
1985 | | #else // PROTOBUF_CUSTOM_VTABLE |
1986 | 1.04k | : ::google::protobuf::Message(arena) { |
1987 | 1.04k | #endif // PROTOBUF_CUSTOM_VTABLE |
1988 | 1.04k | SharedCtor(arena); |
1989 | | // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.PlainTextExtension) |
1990 | 1.04k | } |
1991 | | inline PROTOBUF_NDEBUG_INLINE PlainTextExtension::Impl_::Impl_( |
1992 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
1993 | | const Impl_& from, const ::gifProtoFuzzer::PlainTextExtension& from_msg) |
1994 | 0 | : _has_bits_{from._has_bits_}, |
1995 | 0 | _cached_size_{0}, |
1996 | 0 | subs_{visibility, arena, from.subs_} {} |
1997 | | |
1998 | | PlainTextExtension::PlainTextExtension( |
1999 | | ::google::protobuf::Arena* arena, |
2000 | | const PlainTextExtension& from) |
2001 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2002 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
2003 | | #else // PROTOBUF_CUSTOM_VTABLE |
2004 | 0 | : ::google::protobuf::Message(arena) { |
2005 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2006 | 0 | PlainTextExtension* const _this = this; |
2007 | 0 | (void)_this; |
2008 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
2009 | 0 | from._internal_metadata_); |
2010 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
2011 | 0 | ::uint32_t cached_has_bits = _impl_._has_bits_[0]; |
2012 | 0 | _impl_.gcext_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::GraphicControlExtension>( |
2013 | 0 | arena, *from._impl_.gcext_) |
2014 | 0 | : nullptr; |
2015 | | |
2016 | | // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.PlainTextExtension) |
2017 | 0 | } |
2018 | | inline PROTOBUF_NDEBUG_INLINE PlainTextExtension::Impl_::Impl_( |
2019 | | ::google::protobuf::internal::InternalVisibility visibility, |
2020 | | ::google::protobuf::Arena* arena) |
2021 | 1.04k | : _cached_size_{0}, |
2022 | 1.04k | subs_{visibility, arena} {} |
2023 | | |
2024 | 1.04k | inline void PlainTextExtension::SharedCtor(::_pb::Arena* arena) { |
2025 | 1.04k | new (&_impl_) Impl_(internal_visibility(), arena); |
2026 | 1.04k | _impl_.gcext_ = {}; |
2027 | 1.04k | } |
2028 | 1.04k | PlainTextExtension::~PlainTextExtension() { |
2029 | | // @@protoc_insertion_point(destructor:gifProtoFuzzer.PlainTextExtension) |
2030 | 1.04k | SharedDtor(*this); |
2031 | 1.04k | } |
2032 | 1.04k | inline void PlainTextExtension::SharedDtor(MessageLite& self) { |
2033 | 1.04k | PlainTextExtension& this_ = static_cast<PlainTextExtension&>(self); |
2034 | 1.04k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
2035 | 1.04k | ABSL_DCHECK(this_.GetArena() == nullptr); |
2036 | 1.04k | delete this_._impl_.gcext_; |
2037 | 1.04k | this_._impl_.~Impl_(); |
2038 | 1.04k | } |
2039 | | |
2040 | | inline void* PlainTextExtension::PlacementNew_(const void*, void* mem, |
2041 | 1.04k | ::google::protobuf::Arena* arena) { |
2042 | 1.04k | return ::new (mem) PlainTextExtension(arena); |
2043 | 1.04k | } |
2044 | 0 | constexpr auto PlainTextExtension::InternalNewImpl_() { |
2045 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
2046 | 0 | PROTOBUF_FIELD_OFFSET(PlainTextExtension, _impl_.subs_) + |
2047 | 0 | decltype(PlainTextExtension::_impl_.subs_):: |
2048 | 0 | InternalGetArenaOffset( |
2049 | 0 | ::google::protobuf::Message::internal_visibility()), |
2050 | 0 | }); |
2051 | 0 | if (arena_bits.has_value()) { |
2052 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit( |
2053 | 0 | sizeof(PlainTextExtension), alignof(PlainTextExtension), *arena_bits); |
2054 | 0 | } else { |
2055 | 0 | return ::google::protobuf::internal::MessageCreator(&PlainTextExtension::PlacementNew_, |
2056 | 0 | sizeof(PlainTextExtension), |
2057 | 0 | alignof(PlainTextExtension)); |
2058 | 0 | } |
2059 | 0 | } |
2060 | | PROTOBUF_CONSTINIT |
2061 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2062 | | const ::google::protobuf::internal::ClassDataFull PlainTextExtension::_class_data_ = { |
2063 | | ::google::protobuf::internal::ClassData{ |
2064 | | &_PlainTextExtension_default_instance_._instance, |
2065 | | &_table_.header, |
2066 | | nullptr, // OnDemandRegisterArenaDtor |
2067 | | PlainTextExtension::IsInitializedImpl, |
2068 | | &PlainTextExtension::MergeImpl, |
2069 | | ::google::protobuf::Message::GetNewImpl<PlainTextExtension>(), |
2070 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2071 | | &PlainTextExtension::SharedDtor, |
2072 | | ::google::protobuf::Message::GetClearImpl<PlainTextExtension>(), &PlainTextExtension::ByteSizeLong, |
2073 | | &PlainTextExtension::_InternalSerialize, |
2074 | | #endif // PROTOBUF_CUSTOM_VTABLE |
2075 | | PROTOBUF_FIELD_OFFSET(PlainTextExtension, _impl_._cached_size_), |
2076 | | false, |
2077 | | }, |
2078 | | &PlainTextExtension::kDescriptorMethods, |
2079 | | &descriptor_table_gif_5ffuzz_5fproto_2eproto, |
2080 | | nullptr, // tracker |
2081 | | }; |
2082 | 37.7k | const ::google::protobuf::internal::ClassData* PlainTextExtension::GetClassData() const { |
2083 | 37.7k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
2084 | 37.7k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
2085 | 37.7k | return _class_data_.base(); |
2086 | 37.7k | } |
2087 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2088 | | const ::_pbi::TcParseTable<1, 2, 2, 0, 2> PlainTextExtension::_table_ = { |
2089 | | { |
2090 | | PROTOBUF_FIELD_OFFSET(PlainTextExtension, _impl_._has_bits_), |
2091 | | 0, // no _extensions_ |
2092 | | 2, 8, // max_field_number, fast_idx_mask |
2093 | | offsetof(decltype(_table_), field_lookup_table), |
2094 | | 4294967292, // skipmap |
2095 | | offsetof(decltype(_table_), field_entries), |
2096 | | 2, // num_field_entries |
2097 | | 2, // num_aux_entries |
2098 | | offsetof(decltype(_table_), aux_entries), |
2099 | | _class_data_.base(), |
2100 | | nullptr, // post_loop_handler |
2101 | | ::_pbi::TcParser::GenericFallback, // fallback |
2102 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
2103 | | ::_pbi::TcParser::GetTable<::gifProtoFuzzer::PlainTextExtension>(), // to_prefetch |
2104 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
2105 | | }, {{ |
2106 | | // optional .gifProtoFuzzer.GraphicControlExtension gcExt = 2; |
2107 | | {::_pbi::TcParser::FastMtS1, |
2108 | | {18, 0, 1, PROTOBUF_FIELD_OFFSET(PlainTextExtension, _impl_.gcext_)}}, |
2109 | | // repeated .gifProtoFuzzer.SubBlock subs = 1; |
2110 | | {::_pbi::TcParser::FastMtR1, |
2111 | | {10, 63, 0, PROTOBUF_FIELD_OFFSET(PlainTextExtension, _impl_.subs_)}}, |
2112 | | }}, {{ |
2113 | | 65535, 65535 |
2114 | | }}, {{ |
2115 | | // repeated .gifProtoFuzzer.SubBlock subs = 1; |
2116 | | {PROTOBUF_FIELD_OFFSET(PlainTextExtension, _impl_.subs_), -1, 0, |
2117 | | (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
2118 | | // optional .gifProtoFuzzer.GraphicControlExtension gcExt = 2; |
2119 | | {PROTOBUF_FIELD_OFFSET(PlainTextExtension, _impl_.gcext_), _Internal::kHasBitsOffset + 0, 1, |
2120 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
2121 | | }}, {{ |
2122 | | {::_pbi::TcParser::GetTable<::gifProtoFuzzer::SubBlock>()}, |
2123 | | {::_pbi::TcParser::GetTable<::gifProtoFuzzer::GraphicControlExtension>()}, |
2124 | | }}, {{ |
2125 | | }}, |
2126 | | }; |
2127 | | |
2128 | 0 | PROTOBUF_NOINLINE void PlainTextExtension::Clear() { |
2129 | | // @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.PlainTextExtension) |
2130 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2131 | 0 | ::uint32_t cached_has_bits = 0; |
2132 | | // Prevent compiler warnings about cached_has_bits being unused |
2133 | 0 | (void) cached_has_bits; |
2134 | |
|
2135 | 0 | _impl_.subs_.Clear(); |
2136 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
2137 | 0 | if (cached_has_bits & 0x00000001u) { |
2138 | 0 | ABSL_DCHECK(_impl_.gcext_ != nullptr); |
2139 | 0 | _impl_.gcext_->Clear(); |
2140 | 0 | } |
2141 | 0 | _impl_._has_bits_.Clear(); |
2142 | 0 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
2143 | 0 | } |
2144 | | |
2145 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2146 | | ::uint8_t* PlainTextExtension::_InternalSerialize( |
2147 | | const MessageLite& base, ::uint8_t* target, |
2148 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
2149 | | const PlainTextExtension& this_ = static_cast<const PlainTextExtension&>(base); |
2150 | | #else // PROTOBUF_CUSTOM_VTABLE |
2151 | | ::uint8_t* PlainTextExtension::_InternalSerialize( |
2152 | | ::uint8_t* target, |
2153 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
2154 | 0 | const PlainTextExtension& this_ = *this; |
2155 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2156 | | // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.PlainTextExtension) |
2157 | 0 | ::uint32_t cached_has_bits = 0; |
2158 | 0 | (void)cached_has_bits; |
2159 | | |
2160 | | // repeated .gifProtoFuzzer.SubBlock subs = 1; |
2161 | 0 | for (unsigned i = 0, n = static_cast<unsigned>( |
2162 | 0 | this_._internal_subs_size()); |
2163 | 0 | i < n; i++) { |
2164 | 0 | const auto& repfield = this_._internal_subs().Get(i); |
2165 | 0 | target = |
2166 | 0 | ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
2167 | 0 | 1, repfield, repfield.GetCachedSize(), |
2168 | 0 | target, stream); |
2169 | 0 | } |
2170 | |
|
2171 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
2172 | | // optional .gifProtoFuzzer.GraphicControlExtension gcExt = 2; |
2173 | 0 | if (cached_has_bits & 0x00000001u) { |
2174 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
2175 | 0 | 2, *this_._impl_.gcext_, this_._impl_.gcext_->GetCachedSize(), target, |
2176 | 0 | stream); |
2177 | 0 | } |
2178 | |
|
2179 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
2180 | 0 | target = |
2181 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
2182 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
2183 | 0 | } |
2184 | | // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.PlainTextExtension) |
2185 | 0 | return target; |
2186 | 0 | } |
2187 | | |
2188 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2189 | | ::size_t PlainTextExtension::ByteSizeLong(const MessageLite& base) { |
2190 | | const PlainTextExtension& this_ = static_cast<const PlainTextExtension&>(base); |
2191 | | #else // PROTOBUF_CUSTOM_VTABLE |
2192 | 0 | ::size_t PlainTextExtension::ByteSizeLong() const { |
2193 | 0 | const PlainTextExtension& this_ = *this; |
2194 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2195 | | // @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.PlainTextExtension) |
2196 | 0 | ::size_t total_size = 0; |
2197 | |
|
2198 | 0 | ::uint32_t cached_has_bits = 0; |
2199 | | // Prevent compiler warnings about cached_has_bits being unused |
2200 | 0 | (void)cached_has_bits; |
2201 | |
|
2202 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
2203 | 0 | { |
2204 | | // repeated .gifProtoFuzzer.SubBlock subs = 1; |
2205 | 0 | { |
2206 | 0 | total_size += 1UL * this_._internal_subs_size(); |
2207 | 0 | for (const auto& msg : this_._internal_subs()) { |
2208 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); |
2209 | 0 | } |
2210 | 0 | } |
2211 | 0 | } |
2212 | 0 | { |
2213 | | // optional .gifProtoFuzzer.GraphicControlExtension gcExt = 2; |
2214 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
2215 | 0 | if (cached_has_bits & 0x00000001u) { |
2216 | 0 | total_size += 1 + |
2217 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.gcext_); |
2218 | 0 | } |
2219 | 0 | } |
2220 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
2221 | 0 | &this_._impl_._cached_size_); |
2222 | 0 | } |
2223 | | |
2224 | 0 | void PlainTextExtension::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
2225 | 0 | auto* const _this = static_cast<PlainTextExtension*>(&to_msg); |
2226 | 0 | auto& from = static_cast<const PlainTextExtension&>(from_msg); |
2227 | 0 | ::google::protobuf::Arena* arena = _this->GetArena(); |
2228 | | // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.PlainTextExtension) |
2229 | 0 | ABSL_DCHECK_NE(&from, _this); |
2230 | 0 | ::uint32_t cached_has_bits = 0; |
2231 | 0 | (void) cached_has_bits; |
2232 | |
|
2233 | 0 | _this->_internal_mutable_subs()->MergeFrom( |
2234 | 0 | from._internal_subs()); |
2235 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
2236 | 0 | if (cached_has_bits & 0x00000001u) { |
2237 | 0 | ABSL_DCHECK(from._impl_.gcext_ != nullptr); |
2238 | 0 | if (_this->_impl_.gcext_ == nullptr) { |
2239 | 0 | _this->_impl_.gcext_ = |
2240 | 0 | ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::GraphicControlExtension>(arena, *from._impl_.gcext_); |
2241 | 0 | } else { |
2242 | 0 | _this->_impl_.gcext_->MergeFrom(*from._impl_.gcext_); |
2243 | 0 | } |
2244 | 0 | } |
2245 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
2246 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
2247 | 0 | } |
2248 | | |
2249 | 0 | void PlainTextExtension::CopyFrom(const PlainTextExtension& from) { |
2250 | | // @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.PlainTextExtension) |
2251 | 0 | if (&from == this) return; |
2252 | 0 | Clear(); |
2253 | 0 | MergeFrom(from); |
2254 | 0 | } |
2255 | | |
2256 | | PROTOBUF_NOINLINE bool PlainTextExtension::IsInitializedImpl( |
2257 | 0 | const MessageLite& msg) { |
2258 | 0 | auto& this_ = static_cast<const PlainTextExtension&>(msg); |
2259 | 0 | if (!::google::protobuf::internal::AllAreInitialized(this_._internal_subs())) |
2260 | 0 | return false; |
2261 | 0 | if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { |
2262 | 0 | if (!this_._impl_.gcext_->IsInitialized()) return false; |
2263 | 0 | } |
2264 | 0 | return true; |
2265 | 0 | } |
2266 | | |
2267 | 0 | void PlainTextExtension::InternalSwap(PlainTextExtension* PROTOBUF_RESTRICT other) { |
2268 | 0 | using std::swap; |
2269 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
2270 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
2271 | 0 | _impl_.subs_.InternalSwap(&other->_impl_.subs_); |
2272 | 0 | swap(_impl_.gcext_, other->_impl_.gcext_); |
2273 | 0 | } |
2274 | | |
2275 | 0 | ::google::protobuf::Metadata PlainTextExtension::GetMetadata() const { |
2276 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
2277 | 0 | } |
2278 | | // =================================================================== |
2279 | | |
2280 | | class LocalColorTable::_Internal { |
2281 | | public: |
2282 | | using HasBits = |
2283 | | decltype(std::declval<LocalColorTable>()._impl_._has_bits_); |
2284 | | static constexpr ::int32_t kHasBitsOffset = |
2285 | | 8 * PROTOBUF_FIELD_OFFSET(LocalColorTable, _impl_._has_bits_); |
2286 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
2287 | 0 | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
2288 | 0 | } |
2289 | | }; |
2290 | | |
2291 | | LocalColorTable::LocalColorTable(::google::protobuf::Arena* arena) |
2292 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2293 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
2294 | | #else // PROTOBUF_CUSTOM_VTABLE |
2295 | 2.16k | : ::google::protobuf::Message(arena) { |
2296 | 2.16k | #endif // PROTOBUF_CUSTOM_VTABLE |
2297 | 2.16k | SharedCtor(arena); |
2298 | | // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.LocalColorTable) |
2299 | 2.16k | } |
2300 | | inline PROTOBUF_NDEBUG_INLINE LocalColorTable::Impl_::Impl_( |
2301 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
2302 | | const Impl_& from, const ::gifProtoFuzzer::LocalColorTable& from_msg) |
2303 | 0 | : _has_bits_{from._has_bits_}, |
2304 | 0 | _cached_size_{0}, |
2305 | 0 | colors_(arena, from.colors_) {} |
2306 | | |
2307 | | LocalColorTable::LocalColorTable( |
2308 | | ::google::protobuf::Arena* arena, |
2309 | | const LocalColorTable& from) |
2310 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2311 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
2312 | | #else // PROTOBUF_CUSTOM_VTABLE |
2313 | 0 | : ::google::protobuf::Message(arena) { |
2314 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2315 | 0 | LocalColorTable* const _this = this; |
2316 | 0 | (void)_this; |
2317 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
2318 | 0 | from._internal_metadata_); |
2319 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
2320 | | |
2321 | | // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.LocalColorTable) |
2322 | 0 | } |
2323 | | inline PROTOBUF_NDEBUG_INLINE LocalColorTable::Impl_::Impl_( |
2324 | | ::google::protobuf::internal::InternalVisibility visibility, |
2325 | | ::google::protobuf::Arena* arena) |
2326 | 2.16k | : _cached_size_{0}, |
2327 | 2.16k | colors_(arena) {} |
2328 | | |
2329 | 2.16k | inline void LocalColorTable::SharedCtor(::_pb::Arena* arena) { |
2330 | 2.16k | new (&_impl_) Impl_(internal_visibility(), arena); |
2331 | 2.16k | } |
2332 | 2.16k | LocalColorTable::~LocalColorTable() { |
2333 | | // @@protoc_insertion_point(destructor:gifProtoFuzzer.LocalColorTable) |
2334 | 2.16k | SharedDtor(*this); |
2335 | 2.16k | } |
2336 | 2.16k | inline void LocalColorTable::SharedDtor(MessageLite& self) { |
2337 | 2.16k | LocalColorTable& this_ = static_cast<LocalColorTable&>(self); |
2338 | 2.16k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
2339 | 2.16k | ABSL_DCHECK(this_.GetArena() == nullptr); |
2340 | 2.16k | this_._impl_.colors_.Destroy(); |
2341 | 2.16k | this_._impl_.~Impl_(); |
2342 | 2.16k | } |
2343 | | |
2344 | | inline void* LocalColorTable::PlacementNew_(const void*, void* mem, |
2345 | 2.16k | ::google::protobuf::Arena* arena) { |
2346 | 2.16k | return ::new (mem) LocalColorTable(arena); |
2347 | 2.16k | } |
2348 | 0 | constexpr auto LocalColorTable::InternalNewImpl_() { |
2349 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(LocalColorTable), |
2350 | 0 | alignof(LocalColorTable)); |
2351 | 0 | } |
2352 | | PROTOBUF_CONSTINIT |
2353 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2354 | | const ::google::protobuf::internal::ClassDataFull LocalColorTable::_class_data_ = { |
2355 | | ::google::protobuf::internal::ClassData{ |
2356 | | &_LocalColorTable_default_instance_._instance, |
2357 | | &_table_.header, |
2358 | | nullptr, // OnDemandRegisterArenaDtor |
2359 | | LocalColorTable::IsInitializedImpl, |
2360 | | &LocalColorTable::MergeImpl, |
2361 | | ::google::protobuf::Message::GetNewImpl<LocalColorTable>(), |
2362 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2363 | | &LocalColorTable::SharedDtor, |
2364 | | ::google::protobuf::Message::GetClearImpl<LocalColorTable>(), &LocalColorTable::ByteSizeLong, |
2365 | | &LocalColorTable::_InternalSerialize, |
2366 | | #endif // PROTOBUF_CUSTOM_VTABLE |
2367 | | PROTOBUF_FIELD_OFFSET(LocalColorTable, _impl_._cached_size_), |
2368 | | false, |
2369 | | }, |
2370 | | &LocalColorTable::kDescriptorMethods, |
2371 | | &descriptor_table_gif_5ffuzz_5fproto_2eproto, |
2372 | | nullptr, // tracker |
2373 | | }; |
2374 | 13.1k | const ::google::protobuf::internal::ClassData* LocalColorTable::GetClassData() const { |
2375 | 13.1k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
2376 | 13.1k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
2377 | 13.1k | return _class_data_.base(); |
2378 | 13.1k | } |
2379 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2380 | | const ::_pbi::TcParseTable<0, 1, 0, 0, 2> LocalColorTable::_table_ = { |
2381 | | { |
2382 | | PROTOBUF_FIELD_OFFSET(LocalColorTable, _impl_._has_bits_), |
2383 | | 0, // no _extensions_ |
2384 | | 1, 0, // max_field_number, fast_idx_mask |
2385 | | offsetof(decltype(_table_), field_lookup_table), |
2386 | | 4294967294, // skipmap |
2387 | | offsetof(decltype(_table_), field_entries), |
2388 | | 1, // num_field_entries |
2389 | | 0, // num_aux_entries |
2390 | | offsetof(decltype(_table_), field_names), // no aux_entries |
2391 | | _class_data_.base(), |
2392 | | nullptr, // post_loop_handler |
2393 | | ::_pbi::TcParser::GenericFallback, // fallback |
2394 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
2395 | | ::_pbi::TcParser::GetTable<::gifProtoFuzzer::LocalColorTable>(), // to_prefetch |
2396 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
2397 | | }, {{ |
2398 | | // required bytes colors = 1; |
2399 | | {::_pbi::TcParser::FastBS1, |
2400 | | {10, 0, 0, PROTOBUF_FIELD_OFFSET(LocalColorTable, _impl_.colors_)}}, |
2401 | | }}, {{ |
2402 | | 65535, 65535 |
2403 | | }}, {{ |
2404 | | // required bytes colors = 1; |
2405 | | {PROTOBUF_FIELD_OFFSET(LocalColorTable, _impl_.colors_), _Internal::kHasBitsOffset + 0, 0, |
2406 | | (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, |
2407 | | }}, |
2408 | | // no aux_entries |
2409 | | {{ |
2410 | | }}, |
2411 | | }; |
2412 | | |
2413 | 1.33k | PROTOBUF_NOINLINE void LocalColorTable::Clear() { |
2414 | | // @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.LocalColorTable) |
2415 | 1.33k | ::google::protobuf::internal::TSanWrite(&_impl_); |
2416 | 1.33k | ::uint32_t cached_has_bits = 0; |
2417 | | // Prevent compiler warnings about cached_has_bits being unused |
2418 | 1.33k | (void) cached_has_bits; |
2419 | | |
2420 | 1.33k | cached_has_bits = _impl_._has_bits_[0]; |
2421 | 1.33k | if (cached_has_bits & 0x00000001u) { |
2422 | 0 | _impl_.colors_.ClearNonDefaultToEmpty(); |
2423 | 0 | } |
2424 | 1.33k | _impl_._has_bits_.Clear(); |
2425 | 1.33k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
2426 | 1.33k | } |
2427 | | |
2428 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2429 | | ::uint8_t* LocalColorTable::_InternalSerialize( |
2430 | | const MessageLite& base, ::uint8_t* target, |
2431 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
2432 | | const LocalColorTable& this_ = static_cast<const LocalColorTable&>(base); |
2433 | | #else // PROTOBUF_CUSTOM_VTABLE |
2434 | | ::uint8_t* LocalColorTable::_InternalSerialize( |
2435 | | ::uint8_t* target, |
2436 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
2437 | 0 | const LocalColorTable& this_ = *this; |
2438 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2439 | | // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.LocalColorTable) |
2440 | 0 | ::uint32_t cached_has_bits = 0; |
2441 | 0 | (void)cached_has_bits; |
2442 | |
|
2443 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
2444 | | // required bytes colors = 1; |
2445 | 0 | if (cached_has_bits & 0x00000001u) { |
2446 | 0 | const std::string& _s = this_._internal_colors(); |
2447 | 0 | target = stream->WriteBytesMaybeAliased(1, _s, target); |
2448 | 0 | } |
2449 | |
|
2450 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
2451 | 0 | target = |
2452 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
2453 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
2454 | 0 | } |
2455 | | // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.LocalColorTable) |
2456 | 0 | return target; |
2457 | 0 | } |
2458 | | |
2459 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2460 | | ::size_t LocalColorTable::ByteSizeLong(const MessageLite& base) { |
2461 | | const LocalColorTable& this_ = static_cast<const LocalColorTable&>(base); |
2462 | | #else // PROTOBUF_CUSTOM_VTABLE |
2463 | 0 | ::size_t LocalColorTable::ByteSizeLong() const { |
2464 | 0 | const LocalColorTable& this_ = *this; |
2465 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2466 | | // @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.LocalColorTable) |
2467 | 0 | ::size_t total_size = 0; |
2468 | |
|
2469 | 0 | ::uint32_t cached_has_bits = 0; |
2470 | | // Prevent compiler warnings about cached_has_bits being unused |
2471 | 0 | (void)cached_has_bits; |
2472 | |
|
2473 | 0 | { |
2474 | | // required bytes colors = 1; |
2475 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
2476 | 0 | if (cached_has_bits & 0x00000001u) { |
2477 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
2478 | 0 | this_._internal_colors()); |
2479 | 0 | } |
2480 | 0 | } |
2481 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
2482 | 0 | &this_._impl_._cached_size_); |
2483 | 0 | } |
2484 | | |
2485 | 668 | void LocalColorTable::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
2486 | 668 | auto* const _this = static_cast<LocalColorTable*>(&to_msg); |
2487 | 668 | auto& from = static_cast<const LocalColorTable&>(from_msg); |
2488 | | // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.LocalColorTable) |
2489 | 668 | ABSL_DCHECK_NE(&from, _this); |
2490 | 668 | ::uint32_t cached_has_bits = 0; |
2491 | 668 | (void) cached_has_bits; |
2492 | | |
2493 | 668 | cached_has_bits = from._impl_._has_bits_[0]; |
2494 | 668 | if (cached_has_bits & 0x00000001u) { |
2495 | 0 | _this->_internal_set_colors(from._internal_colors()); |
2496 | 0 | } |
2497 | 668 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
2498 | 668 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
2499 | 668 | } |
2500 | | |
2501 | 0 | void LocalColorTable::CopyFrom(const LocalColorTable& from) { |
2502 | | // @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.LocalColorTable) |
2503 | 0 | if (&from == this) return; |
2504 | 0 | Clear(); |
2505 | 0 | MergeFrom(from); |
2506 | 0 | } |
2507 | | |
2508 | | PROTOBUF_NOINLINE bool LocalColorTable::IsInitializedImpl( |
2509 | 0 | const MessageLite& msg) { |
2510 | 0 | auto& this_ = static_cast<const LocalColorTable&>(msg); |
2511 | 0 | if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { |
2512 | 0 | return false; |
2513 | 0 | } |
2514 | 0 | return true; |
2515 | 0 | } |
2516 | | |
2517 | 0 | void LocalColorTable::InternalSwap(LocalColorTable* PROTOBUF_RESTRICT other) { |
2518 | 0 | using std::swap; |
2519 | 0 | auto* arena = GetArena(); |
2520 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
2521 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
2522 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
2523 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.colors_, &other->_impl_.colors_, arena); |
2524 | 0 | } |
2525 | | |
2526 | 0 | ::google::protobuf::Metadata LocalColorTable::GetMetadata() const { |
2527 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
2528 | 0 | } |
2529 | | // =================================================================== |
2530 | | |
2531 | | class SubBlock::_Internal { |
2532 | | public: |
2533 | | using HasBits = |
2534 | | decltype(std::declval<SubBlock>()._impl_._has_bits_); |
2535 | | static constexpr ::int32_t kHasBitsOffset = |
2536 | | 8 * PROTOBUF_FIELD_OFFSET(SubBlock, _impl_._has_bits_); |
2537 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
2538 | 0 | return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; |
2539 | 0 | } |
2540 | | }; |
2541 | | |
2542 | | SubBlock::SubBlock(::google::protobuf::Arena* arena) |
2543 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2544 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
2545 | | #else // PROTOBUF_CUSTOM_VTABLE |
2546 | 26.6k | : ::google::protobuf::Message(arena) { |
2547 | 26.6k | #endif // PROTOBUF_CUSTOM_VTABLE |
2548 | 26.6k | SharedCtor(arena); |
2549 | | // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.SubBlock) |
2550 | 26.6k | } |
2551 | | inline PROTOBUF_NDEBUG_INLINE SubBlock::Impl_::Impl_( |
2552 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
2553 | | const Impl_& from, const ::gifProtoFuzzer::SubBlock& from_msg) |
2554 | 0 | : _has_bits_{from._has_bits_}, |
2555 | 0 | _cached_size_{0}, |
2556 | 0 | data_(arena, from.data_) {} |
2557 | | |
2558 | | SubBlock::SubBlock( |
2559 | | ::google::protobuf::Arena* arena, |
2560 | | const SubBlock& from) |
2561 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2562 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
2563 | | #else // PROTOBUF_CUSTOM_VTABLE |
2564 | 0 | : ::google::protobuf::Message(arena) { |
2565 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2566 | 0 | SubBlock* const _this = this; |
2567 | 0 | (void)_this; |
2568 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
2569 | 0 | from._internal_metadata_); |
2570 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
2571 | 0 | _impl_.len_ = from._impl_.len_; |
2572 | | |
2573 | | // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.SubBlock) |
2574 | 0 | } |
2575 | | inline PROTOBUF_NDEBUG_INLINE SubBlock::Impl_::Impl_( |
2576 | | ::google::protobuf::internal::InternalVisibility visibility, |
2577 | | ::google::protobuf::Arena* arena) |
2578 | 26.6k | : _cached_size_{0}, |
2579 | 26.6k | data_(arena) {} |
2580 | | |
2581 | 26.6k | inline void SubBlock::SharedCtor(::_pb::Arena* arena) { |
2582 | 26.6k | new (&_impl_) Impl_(internal_visibility(), arena); |
2583 | 26.6k | _impl_.len_ = {}; |
2584 | 26.6k | } |
2585 | 26.6k | SubBlock::~SubBlock() { |
2586 | | // @@protoc_insertion_point(destructor:gifProtoFuzzer.SubBlock) |
2587 | 26.6k | SharedDtor(*this); |
2588 | 26.6k | } |
2589 | 26.6k | inline void SubBlock::SharedDtor(MessageLite& self) { |
2590 | 26.6k | SubBlock& this_ = static_cast<SubBlock&>(self); |
2591 | 26.6k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
2592 | 26.6k | ABSL_DCHECK(this_.GetArena() == nullptr); |
2593 | 26.6k | this_._impl_.data_.Destroy(); |
2594 | 26.6k | this_._impl_.~Impl_(); |
2595 | 26.6k | } |
2596 | | |
2597 | | inline void* SubBlock::PlacementNew_(const void*, void* mem, |
2598 | 26.6k | ::google::protobuf::Arena* arena) { |
2599 | 26.6k | return ::new (mem) SubBlock(arena); |
2600 | 26.6k | } |
2601 | 0 | constexpr auto SubBlock::InternalNewImpl_() { |
2602 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SubBlock), |
2603 | 0 | alignof(SubBlock)); |
2604 | 0 | } |
2605 | | PROTOBUF_CONSTINIT |
2606 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2607 | | const ::google::protobuf::internal::ClassDataFull SubBlock::_class_data_ = { |
2608 | | ::google::protobuf::internal::ClassData{ |
2609 | | &_SubBlock_default_instance_._instance, |
2610 | | &_table_.header, |
2611 | | nullptr, // OnDemandRegisterArenaDtor |
2612 | | SubBlock::IsInitializedImpl, |
2613 | | &SubBlock::MergeImpl, |
2614 | | ::google::protobuf::Message::GetNewImpl<SubBlock>(), |
2615 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2616 | | &SubBlock::SharedDtor, |
2617 | | ::google::protobuf::Message::GetClearImpl<SubBlock>(), &SubBlock::ByteSizeLong, |
2618 | | &SubBlock::_InternalSerialize, |
2619 | | #endif // PROTOBUF_CUSTOM_VTABLE |
2620 | | PROTOBUF_FIELD_OFFSET(SubBlock, _impl_._cached_size_), |
2621 | | false, |
2622 | | }, |
2623 | | &SubBlock::kDescriptorMethods, |
2624 | | &descriptor_table_gif_5ffuzz_5fproto_2eproto, |
2625 | | nullptr, // tracker |
2626 | | }; |
2627 | 339k | const ::google::protobuf::internal::ClassData* SubBlock::GetClassData() const { |
2628 | 339k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
2629 | 339k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
2630 | 339k | return _class_data_.base(); |
2631 | 339k | } |
2632 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2633 | | const ::_pbi::TcParseTable<1, 2, 0, 0, 2> SubBlock::_table_ = { |
2634 | | { |
2635 | | PROTOBUF_FIELD_OFFSET(SubBlock, _impl_._has_bits_), |
2636 | | 0, // no _extensions_ |
2637 | | 2, 8, // max_field_number, fast_idx_mask |
2638 | | offsetof(decltype(_table_), field_lookup_table), |
2639 | | 4294967292, // skipmap |
2640 | | offsetof(decltype(_table_), field_entries), |
2641 | | 2, // num_field_entries |
2642 | | 0, // num_aux_entries |
2643 | | offsetof(decltype(_table_), field_names), // no aux_entries |
2644 | | _class_data_.base(), |
2645 | | nullptr, // post_loop_handler |
2646 | | ::_pbi::TcParser::GenericFallback, // fallback |
2647 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
2648 | | ::_pbi::TcParser::GetTable<::gifProtoFuzzer::SubBlock>(), // to_prefetch |
2649 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
2650 | | }, {{ |
2651 | | // required bytes data = 2; |
2652 | | {::_pbi::TcParser::FastBS1, |
2653 | | {18, 0, 0, PROTOBUF_FIELD_OFFSET(SubBlock, _impl_.data_)}}, |
2654 | | // required uint32 len = 1; |
2655 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SubBlock, _impl_.len_), 1>(), |
2656 | | {8, 1, 0, PROTOBUF_FIELD_OFFSET(SubBlock, _impl_.len_)}}, |
2657 | | }}, {{ |
2658 | | 65535, 65535 |
2659 | | }}, {{ |
2660 | | // required uint32 len = 1; |
2661 | | {PROTOBUF_FIELD_OFFSET(SubBlock, _impl_.len_), _Internal::kHasBitsOffset + 1, 0, |
2662 | | (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, |
2663 | | // required bytes data = 2; |
2664 | | {PROTOBUF_FIELD_OFFSET(SubBlock, _impl_.data_), _Internal::kHasBitsOffset + 0, 0, |
2665 | | (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, |
2666 | | }}, |
2667 | | // no aux_entries |
2668 | | {{ |
2669 | | }}, |
2670 | | }; |
2671 | | |
2672 | 0 | PROTOBUF_NOINLINE void SubBlock::Clear() { |
2673 | | // @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.SubBlock) |
2674 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2675 | 0 | ::uint32_t cached_has_bits = 0; |
2676 | | // Prevent compiler warnings about cached_has_bits being unused |
2677 | 0 | (void) cached_has_bits; |
2678 | |
|
2679 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
2680 | 0 | if (cached_has_bits & 0x00000001u) { |
2681 | 0 | _impl_.data_.ClearNonDefaultToEmpty(); |
2682 | 0 | } |
2683 | 0 | _impl_.len_ = 0u; |
2684 | 0 | _impl_._has_bits_.Clear(); |
2685 | 0 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
2686 | 0 | } |
2687 | | |
2688 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2689 | | ::uint8_t* SubBlock::_InternalSerialize( |
2690 | | const MessageLite& base, ::uint8_t* target, |
2691 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
2692 | | const SubBlock& this_ = static_cast<const SubBlock&>(base); |
2693 | | #else // PROTOBUF_CUSTOM_VTABLE |
2694 | | ::uint8_t* SubBlock::_InternalSerialize( |
2695 | | ::uint8_t* target, |
2696 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
2697 | 0 | const SubBlock& this_ = *this; |
2698 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2699 | | // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.SubBlock) |
2700 | 0 | ::uint32_t cached_has_bits = 0; |
2701 | 0 | (void)cached_has_bits; |
2702 | |
|
2703 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
2704 | | // required uint32 len = 1; |
2705 | 0 | if (cached_has_bits & 0x00000002u) { |
2706 | 0 | target = stream->EnsureSpace(target); |
2707 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
2708 | 0 | 1, this_._internal_len(), target); |
2709 | 0 | } |
2710 | | |
2711 | | // required bytes data = 2; |
2712 | 0 | if (cached_has_bits & 0x00000001u) { |
2713 | 0 | const std::string& _s = this_._internal_data(); |
2714 | 0 | target = stream->WriteBytesMaybeAliased(2, _s, target); |
2715 | 0 | } |
2716 | |
|
2717 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
2718 | 0 | target = |
2719 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
2720 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
2721 | 0 | } |
2722 | | // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.SubBlock) |
2723 | 0 | return target; |
2724 | 0 | } |
2725 | | |
2726 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2727 | | ::size_t SubBlock::ByteSizeLong(const MessageLite& base) { |
2728 | | const SubBlock& this_ = static_cast<const SubBlock&>(base); |
2729 | | #else // PROTOBUF_CUSTOM_VTABLE |
2730 | 0 | ::size_t SubBlock::ByteSizeLong() const { |
2731 | 0 | const SubBlock& this_ = *this; |
2732 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2733 | | // @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.SubBlock) |
2734 | 0 | ::size_t total_size = 0; |
2735 | |
|
2736 | 0 | ::uint32_t cached_has_bits = 0; |
2737 | | // Prevent compiler warnings about cached_has_bits being unused |
2738 | 0 | (void)cached_has_bits; |
2739 | |
|
2740 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
2741 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
2742 | 0 | if (cached_has_bits & 0x00000003u) { |
2743 | | // required bytes data = 2; |
2744 | 0 | if (cached_has_bits & 0x00000001u) { |
2745 | 0 | total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( |
2746 | 0 | this_._internal_data()); |
2747 | 0 | } |
2748 | | // required uint32 len = 1; |
2749 | 0 | if (cached_has_bits & 0x00000002u) { |
2750 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
2751 | 0 | this_._internal_len()); |
2752 | 0 | } |
2753 | 0 | } |
2754 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
2755 | 0 | &this_._impl_._cached_size_); |
2756 | 0 | } |
2757 | | |
2758 | 0 | void SubBlock::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
2759 | 0 | auto* const _this = static_cast<SubBlock*>(&to_msg); |
2760 | 0 | auto& from = static_cast<const SubBlock&>(from_msg); |
2761 | | // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.SubBlock) |
2762 | 0 | ABSL_DCHECK_NE(&from, _this); |
2763 | 0 | ::uint32_t cached_has_bits = 0; |
2764 | 0 | (void) cached_has_bits; |
2765 | |
|
2766 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
2767 | 0 | if (cached_has_bits & 0x00000003u) { |
2768 | 0 | if (cached_has_bits & 0x00000001u) { |
2769 | 0 | _this->_internal_set_data(from._internal_data()); |
2770 | 0 | } |
2771 | 0 | if (cached_has_bits & 0x00000002u) { |
2772 | 0 | _this->_impl_.len_ = from._impl_.len_; |
2773 | 0 | } |
2774 | 0 | } |
2775 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
2776 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
2777 | 0 | } |
2778 | | |
2779 | 0 | void SubBlock::CopyFrom(const SubBlock& from) { |
2780 | | // @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.SubBlock) |
2781 | 0 | if (&from == this) return; |
2782 | 0 | Clear(); |
2783 | 0 | MergeFrom(from); |
2784 | 0 | } |
2785 | | |
2786 | | PROTOBUF_NOINLINE bool SubBlock::IsInitializedImpl( |
2787 | 0 | const MessageLite& msg) { |
2788 | 0 | auto& this_ = static_cast<const SubBlock&>(msg); |
2789 | 0 | if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { |
2790 | 0 | return false; |
2791 | 0 | } |
2792 | 0 | return true; |
2793 | 0 | } |
2794 | | |
2795 | 0 | void SubBlock::InternalSwap(SubBlock* PROTOBUF_RESTRICT other) { |
2796 | 0 | using std::swap; |
2797 | 0 | auto* arena = GetArena(); |
2798 | 0 | ABSL_DCHECK_EQ(arena, other->GetArena()); |
2799 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
2800 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
2801 | 0 | ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena); |
2802 | 0 | swap(_impl_.len_, other->_impl_.len_); |
2803 | 0 | } |
2804 | | |
2805 | 0 | ::google::protobuf::Metadata SubBlock::GetMetadata() const { |
2806 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
2807 | 0 | } |
2808 | | // =================================================================== |
2809 | | |
2810 | | class ImageData::_Internal { |
2811 | | public: |
2812 | | using HasBits = |
2813 | | decltype(std::declval<ImageData>()._impl_._has_bits_); |
2814 | | static constexpr ::int32_t kHasBitsOffset = |
2815 | | 8 * PROTOBUF_FIELD_OFFSET(ImageData, _impl_._has_bits_); |
2816 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
2817 | 0 | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
2818 | 0 | } |
2819 | | }; |
2820 | | |
2821 | | ImageData::ImageData(::google::protobuf::Arena* arena) |
2822 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2823 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
2824 | | #else // PROTOBUF_CUSTOM_VTABLE |
2825 | 2.27k | : ::google::protobuf::Message(arena) { |
2826 | 2.27k | #endif // PROTOBUF_CUSTOM_VTABLE |
2827 | 2.27k | SharedCtor(arena); |
2828 | | // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.ImageData) |
2829 | 2.27k | } |
2830 | | inline PROTOBUF_NDEBUG_INLINE ImageData::Impl_::Impl_( |
2831 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
2832 | | const Impl_& from, const ::gifProtoFuzzer::ImageData& from_msg) |
2833 | 0 | : _has_bits_{from._has_bits_}, |
2834 | 0 | _cached_size_{0}, |
2835 | 0 | subs_{visibility, arena, from.subs_} {} |
2836 | | |
2837 | | ImageData::ImageData( |
2838 | | ::google::protobuf::Arena* arena, |
2839 | | const ImageData& from) |
2840 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2841 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
2842 | | #else // PROTOBUF_CUSTOM_VTABLE |
2843 | 0 | : ::google::protobuf::Message(arena) { |
2844 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2845 | 0 | ImageData* const _this = this; |
2846 | 0 | (void)_this; |
2847 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
2848 | 0 | from._internal_metadata_); |
2849 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
2850 | 0 | _impl_.lzw_ = from._impl_.lzw_; |
2851 | | |
2852 | | // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.ImageData) |
2853 | 0 | } |
2854 | | inline PROTOBUF_NDEBUG_INLINE ImageData::Impl_::Impl_( |
2855 | | ::google::protobuf::internal::InternalVisibility visibility, |
2856 | | ::google::protobuf::Arena* arena) |
2857 | 2.27k | : _cached_size_{0}, |
2858 | 2.27k | subs_{visibility, arena} {} |
2859 | | |
2860 | 2.27k | inline void ImageData::SharedCtor(::_pb::Arena* arena) { |
2861 | 2.27k | new (&_impl_) Impl_(internal_visibility(), arena); |
2862 | 2.27k | _impl_.lzw_ = {}; |
2863 | 2.27k | } |
2864 | 2.27k | ImageData::~ImageData() { |
2865 | | // @@protoc_insertion_point(destructor:gifProtoFuzzer.ImageData) |
2866 | 2.27k | SharedDtor(*this); |
2867 | 2.27k | } |
2868 | 2.27k | inline void ImageData::SharedDtor(MessageLite& self) { |
2869 | 2.27k | ImageData& this_ = static_cast<ImageData&>(self); |
2870 | 2.27k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
2871 | 2.27k | ABSL_DCHECK(this_.GetArena() == nullptr); |
2872 | 2.27k | this_._impl_.~Impl_(); |
2873 | 2.27k | } |
2874 | | |
2875 | | inline void* ImageData::PlacementNew_(const void*, void* mem, |
2876 | 2.27k | ::google::protobuf::Arena* arena) { |
2877 | 2.27k | return ::new (mem) ImageData(arena); |
2878 | 2.27k | } |
2879 | 0 | constexpr auto ImageData::InternalNewImpl_() { |
2880 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
2881 | 0 | PROTOBUF_FIELD_OFFSET(ImageData, _impl_.subs_) + |
2882 | 0 | decltype(ImageData::_impl_.subs_):: |
2883 | 0 | InternalGetArenaOffset( |
2884 | 0 | ::google::protobuf::Message::internal_visibility()), |
2885 | 0 | }); |
2886 | 0 | if (arena_bits.has_value()) { |
2887 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit( |
2888 | 0 | sizeof(ImageData), alignof(ImageData), *arena_bits); |
2889 | 0 | } else { |
2890 | 0 | return ::google::protobuf::internal::MessageCreator(&ImageData::PlacementNew_, |
2891 | 0 | sizeof(ImageData), |
2892 | 0 | alignof(ImageData)); |
2893 | 0 | } |
2894 | 0 | } |
2895 | | PROTOBUF_CONSTINIT |
2896 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2897 | | const ::google::protobuf::internal::ClassDataFull ImageData::_class_data_ = { |
2898 | | ::google::protobuf::internal::ClassData{ |
2899 | | &_ImageData_default_instance_._instance, |
2900 | | &_table_.header, |
2901 | | nullptr, // OnDemandRegisterArenaDtor |
2902 | | ImageData::IsInitializedImpl, |
2903 | | &ImageData::MergeImpl, |
2904 | | ::google::protobuf::Message::GetNewImpl<ImageData>(), |
2905 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2906 | | &ImageData::SharedDtor, |
2907 | | ::google::protobuf::Message::GetClearImpl<ImageData>(), &ImageData::ByteSizeLong, |
2908 | | &ImageData::_InternalSerialize, |
2909 | | #endif // PROTOBUF_CUSTOM_VTABLE |
2910 | | PROTOBUF_FIELD_OFFSET(ImageData, _impl_._cached_size_), |
2911 | | false, |
2912 | | }, |
2913 | | &ImageData::kDescriptorMethods, |
2914 | | &descriptor_table_gif_5ffuzz_5fproto_2eproto, |
2915 | | nullptr, // tracker |
2916 | | }; |
2917 | 17.1k | const ::google::protobuf::internal::ClassData* ImageData::GetClassData() const { |
2918 | 17.1k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
2919 | 17.1k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
2920 | 17.1k | return _class_data_.base(); |
2921 | 17.1k | } |
2922 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
2923 | | const ::_pbi::TcParseTable<1, 2, 1, 0, 2> ImageData::_table_ = { |
2924 | | { |
2925 | | PROTOBUF_FIELD_OFFSET(ImageData, _impl_._has_bits_), |
2926 | | 0, // no _extensions_ |
2927 | | 2, 8, // max_field_number, fast_idx_mask |
2928 | | offsetof(decltype(_table_), field_lookup_table), |
2929 | | 4294967292, // skipmap |
2930 | | offsetof(decltype(_table_), field_entries), |
2931 | | 2, // num_field_entries |
2932 | | 1, // num_aux_entries |
2933 | | offsetof(decltype(_table_), aux_entries), |
2934 | | _class_data_.base(), |
2935 | | nullptr, // post_loop_handler |
2936 | | ::_pbi::TcParser::GenericFallback, // fallback |
2937 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
2938 | | ::_pbi::TcParser::GetTable<::gifProtoFuzzer::ImageData>(), // to_prefetch |
2939 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
2940 | | }, {{ |
2941 | | // repeated .gifProtoFuzzer.SubBlock subs = 2; |
2942 | | {::_pbi::TcParser::FastMtR1, |
2943 | | {18, 63, 0, PROTOBUF_FIELD_OFFSET(ImageData, _impl_.subs_)}}, |
2944 | | // required uint32 lzw = 1; |
2945 | | {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ImageData, _impl_.lzw_), 0>(), |
2946 | | {8, 0, 0, PROTOBUF_FIELD_OFFSET(ImageData, _impl_.lzw_)}}, |
2947 | | }}, {{ |
2948 | | 65535, 65535 |
2949 | | }}, {{ |
2950 | | // required uint32 lzw = 1; |
2951 | | {PROTOBUF_FIELD_OFFSET(ImageData, _impl_.lzw_), _Internal::kHasBitsOffset + 0, 0, |
2952 | | (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, |
2953 | | // repeated .gifProtoFuzzer.SubBlock subs = 2; |
2954 | | {PROTOBUF_FIELD_OFFSET(ImageData, _impl_.subs_), -1, 0, |
2955 | | (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
2956 | | }}, {{ |
2957 | | {::_pbi::TcParser::GetTable<::gifProtoFuzzer::SubBlock>()}, |
2958 | | }}, {{ |
2959 | | }}, |
2960 | | }; |
2961 | | |
2962 | 1.49k | PROTOBUF_NOINLINE void ImageData::Clear() { |
2963 | | // @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.ImageData) |
2964 | 1.49k | ::google::protobuf::internal::TSanWrite(&_impl_); |
2965 | 1.49k | ::uint32_t cached_has_bits = 0; |
2966 | | // Prevent compiler warnings about cached_has_bits being unused |
2967 | 1.49k | (void) cached_has_bits; |
2968 | | |
2969 | 1.49k | _impl_.subs_.Clear(); |
2970 | 1.49k | _impl_.lzw_ = 0u; |
2971 | 1.49k | _impl_._has_bits_.Clear(); |
2972 | 1.49k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
2973 | 1.49k | } |
2974 | | |
2975 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2976 | | ::uint8_t* ImageData::_InternalSerialize( |
2977 | | const MessageLite& base, ::uint8_t* target, |
2978 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
2979 | | const ImageData& this_ = static_cast<const ImageData&>(base); |
2980 | | #else // PROTOBUF_CUSTOM_VTABLE |
2981 | | ::uint8_t* ImageData::_InternalSerialize( |
2982 | | ::uint8_t* target, |
2983 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
2984 | 0 | const ImageData& this_ = *this; |
2985 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
2986 | | // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.ImageData) |
2987 | 0 | ::uint32_t cached_has_bits = 0; |
2988 | 0 | (void)cached_has_bits; |
2989 | |
|
2990 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
2991 | | // required uint32 lzw = 1; |
2992 | 0 | if (cached_has_bits & 0x00000001u) { |
2993 | 0 | target = stream->EnsureSpace(target); |
2994 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray( |
2995 | 0 | 1, this_._internal_lzw(), target); |
2996 | 0 | } |
2997 | | |
2998 | | // repeated .gifProtoFuzzer.SubBlock subs = 2; |
2999 | 0 | for (unsigned i = 0, n = static_cast<unsigned>( |
3000 | 0 | this_._internal_subs_size()); |
3001 | 0 | i < n; i++) { |
3002 | 0 | const auto& repfield = this_._internal_subs().Get(i); |
3003 | 0 | target = |
3004 | 0 | ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
3005 | 0 | 2, repfield, repfield.GetCachedSize(), |
3006 | 0 | target, stream); |
3007 | 0 | } |
3008 | |
|
3009 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
3010 | 0 | target = |
3011 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
3012 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
3013 | 0 | } |
3014 | | // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.ImageData) |
3015 | 0 | return target; |
3016 | 0 | } |
3017 | | |
3018 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3019 | | ::size_t ImageData::ByteSizeLong(const MessageLite& base) { |
3020 | | const ImageData& this_ = static_cast<const ImageData&>(base); |
3021 | | #else // PROTOBUF_CUSTOM_VTABLE |
3022 | 0 | ::size_t ImageData::ByteSizeLong() const { |
3023 | 0 | const ImageData& this_ = *this; |
3024 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3025 | | // @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.ImageData) |
3026 | 0 | ::size_t total_size = 0; |
3027 | |
|
3028 | 0 | ::uint32_t cached_has_bits = 0; |
3029 | | // Prevent compiler warnings about cached_has_bits being unused |
3030 | 0 | (void)cached_has_bits; |
3031 | |
|
3032 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
3033 | 0 | { |
3034 | | // repeated .gifProtoFuzzer.SubBlock subs = 2; |
3035 | 0 | { |
3036 | 0 | total_size += 1UL * this_._internal_subs_size(); |
3037 | 0 | for (const auto& msg : this_._internal_subs()) { |
3038 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); |
3039 | 0 | } |
3040 | 0 | } |
3041 | 0 | } |
3042 | 0 | { |
3043 | | // required uint32 lzw = 1; |
3044 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
3045 | 0 | if (cached_has_bits & 0x00000001u) { |
3046 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( |
3047 | 0 | this_._internal_lzw()); |
3048 | 0 | } |
3049 | 0 | } |
3050 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
3051 | 0 | &this_._impl_._cached_size_); |
3052 | 0 | } |
3053 | | |
3054 | 747 | void ImageData::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
3055 | 747 | auto* const _this = static_cast<ImageData*>(&to_msg); |
3056 | 747 | auto& from = static_cast<const ImageData&>(from_msg); |
3057 | | // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.ImageData) |
3058 | 747 | ABSL_DCHECK_NE(&from, _this); |
3059 | 747 | ::uint32_t cached_has_bits = 0; |
3060 | 747 | (void) cached_has_bits; |
3061 | | |
3062 | 747 | _this->_internal_mutable_subs()->MergeFrom( |
3063 | 747 | from._internal_subs()); |
3064 | 747 | cached_has_bits = from._impl_._has_bits_[0]; |
3065 | 747 | if (cached_has_bits & 0x00000001u) { |
3066 | 0 | _this->_impl_.lzw_ = from._impl_.lzw_; |
3067 | 0 | } |
3068 | 747 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
3069 | 747 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
3070 | 747 | } |
3071 | | |
3072 | 0 | void ImageData::CopyFrom(const ImageData& from) { |
3073 | | // @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.ImageData) |
3074 | 0 | if (&from == this) return; |
3075 | 0 | Clear(); |
3076 | 0 | MergeFrom(from); |
3077 | 0 | } |
3078 | | |
3079 | | PROTOBUF_NOINLINE bool ImageData::IsInitializedImpl( |
3080 | 0 | const MessageLite& msg) { |
3081 | 0 | auto& this_ = static_cast<const ImageData&>(msg); |
3082 | 0 | if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { |
3083 | 0 | return false; |
3084 | 0 | } |
3085 | 0 | if (!::google::protobuf::internal::AllAreInitialized(this_._internal_subs())) |
3086 | 0 | return false; |
3087 | 0 | return true; |
3088 | 0 | } |
3089 | | |
3090 | 0 | void ImageData::InternalSwap(ImageData* PROTOBUF_RESTRICT other) { |
3091 | 0 | using std::swap; |
3092 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
3093 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
3094 | 0 | _impl_.subs_.InternalSwap(&other->_impl_.subs_); |
3095 | 0 | swap(_impl_.lzw_, other->_impl_.lzw_); |
3096 | 0 | } |
3097 | | |
3098 | 0 | ::google::protobuf::Metadata ImageData::GetMetadata() const { |
3099 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
3100 | 0 | } |
3101 | | // =================================================================== |
3102 | | |
3103 | | class BasicChunk::_Internal { |
3104 | | public: |
3105 | | using HasBits = |
3106 | | decltype(std::declval<BasicChunk>()._impl_._has_bits_); |
3107 | | static constexpr ::int32_t kHasBitsOffset = |
3108 | | 8 * PROTOBUF_FIELD_OFFSET(BasicChunk, _impl_._has_bits_); |
3109 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
3110 | 0 | return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; |
3111 | 0 | } |
3112 | | }; |
3113 | | |
3114 | | BasicChunk::BasicChunk(::google::protobuf::Arena* arena) |
3115 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3116 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
3117 | | #else // PROTOBUF_CUSTOM_VTABLE |
3118 | 2.00k | : ::google::protobuf::Message(arena) { |
3119 | 2.00k | #endif // PROTOBUF_CUSTOM_VTABLE |
3120 | 2.00k | SharedCtor(arena); |
3121 | | // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.BasicChunk) |
3122 | 2.00k | } |
3123 | | inline PROTOBUF_NDEBUG_INLINE BasicChunk::Impl_::Impl_( |
3124 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
3125 | | const Impl_& from, const ::gifProtoFuzzer::BasicChunk& from_msg) |
3126 | 0 | : _has_bits_{from._has_bits_}, |
3127 | 0 | _cached_size_{0} {} |
3128 | | |
3129 | | BasicChunk::BasicChunk( |
3130 | | ::google::protobuf::Arena* arena, |
3131 | | const BasicChunk& from) |
3132 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3133 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
3134 | | #else // PROTOBUF_CUSTOM_VTABLE |
3135 | 0 | : ::google::protobuf::Message(arena) { |
3136 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3137 | 0 | BasicChunk* const _this = this; |
3138 | 0 | (void)_this; |
3139 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
3140 | 0 | from._internal_metadata_); |
3141 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
3142 | 0 | ::uint32_t cached_has_bits = _impl_._has_bits_[0]; |
3143 | 0 | _impl_.imdescriptor_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::ImageDescriptor>( |
3144 | 0 | arena, *from._impl_.imdescriptor_) |
3145 | 0 | : nullptr; |
3146 | 0 | _impl_.lct_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::LocalColorTable>( |
3147 | 0 | arena, *from._impl_.lct_) |
3148 | 0 | : nullptr; |
3149 | 0 | _impl_.img_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::ImageData>( |
3150 | 0 | arena, *from._impl_.img_) |
3151 | 0 | : nullptr; |
3152 | 0 | _impl_.gcext_ = (cached_has_bits & 0x00000008u) ? ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::GraphicControlExtension>( |
3153 | 0 | arena, *from._impl_.gcext_) |
3154 | 0 | : nullptr; |
3155 | | |
3156 | | // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.BasicChunk) |
3157 | 0 | } |
3158 | | inline PROTOBUF_NDEBUG_INLINE BasicChunk::Impl_::Impl_( |
3159 | | ::google::protobuf::internal::InternalVisibility visibility, |
3160 | | ::google::protobuf::Arena* arena) |
3161 | 2.00k | : _cached_size_{0} {} |
3162 | | |
3163 | 2.00k | inline void BasicChunk::SharedCtor(::_pb::Arena* arena) { |
3164 | 2.00k | new (&_impl_) Impl_(internal_visibility(), arena); |
3165 | 2.00k | ::memset(reinterpret_cast<char *>(&_impl_) + |
3166 | 2.00k | offsetof(Impl_, imdescriptor_), |
3167 | 2.00k | 0, |
3168 | 2.00k | offsetof(Impl_, gcext_) - |
3169 | 2.00k | offsetof(Impl_, imdescriptor_) + |
3170 | 2.00k | sizeof(Impl_::gcext_)); |
3171 | 2.00k | } |
3172 | 2.00k | BasicChunk::~BasicChunk() { |
3173 | | // @@protoc_insertion_point(destructor:gifProtoFuzzer.BasicChunk) |
3174 | 2.00k | SharedDtor(*this); |
3175 | 2.00k | } |
3176 | 2.00k | inline void BasicChunk::SharedDtor(MessageLite& self) { |
3177 | 2.00k | BasicChunk& this_ = static_cast<BasicChunk&>(self); |
3178 | 2.00k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
3179 | 2.00k | ABSL_DCHECK(this_.GetArena() == nullptr); |
3180 | 2.00k | delete this_._impl_.imdescriptor_; |
3181 | 2.00k | delete this_._impl_.lct_; |
3182 | 2.00k | delete this_._impl_.img_; |
3183 | 2.00k | delete this_._impl_.gcext_; |
3184 | 2.00k | this_._impl_.~Impl_(); |
3185 | 2.00k | } |
3186 | | |
3187 | | inline void* BasicChunk::PlacementNew_(const void*, void* mem, |
3188 | 2.00k | ::google::protobuf::Arena* arena) { |
3189 | 2.00k | return ::new (mem) BasicChunk(arena); |
3190 | 2.00k | } |
3191 | 0 | constexpr auto BasicChunk::InternalNewImpl_() { |
3192 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(BasicChunk), |
3193 | 0 | alignof(BasicChunk)); |
3194 | 0 | } |
3195 | | PROTOBUF_CONSTINIT |
3196 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
3197 | | const ::google::protobuf::internal::ClassDataFull BasicChunk::_class_data_ = { |
3198 | | ::google::protobuf::internal::ClassData{ |
3199 | | &_BasicChunk_default_instance_._instance, |
3200 | | &_table_.header, |
3201 | | nullptr, // OnDemandRegisterArenaDtor |
3202 | | BasicChunk::IsInitializedImpl, |
3203 | | &BasicChunk::MergeImpl, |
3204 | | ::google::protobuf::Message::GetNewImpl<BasicChunk>(), |
3205 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3206 | | &BasicChunk::SharedDtor, |
3207 | | ::google::protobuf::Message::GetClearImpl<BasicChunk>(), &BasicChunk::ByteSizeLong, |
3208 | | &BasicChunk::_InternalSerialize, |
3209 | | #endif // PROTOBUF_CUSTOM_VTABLE |
3210 | | PROTOBUF_FIELD_OFFSET(BasicChunk, _impl_._cached_size_), |
3211 | | false, |
3212 | | }, |
3213 | | &BasicChunk::kDescriptorMethods, |
3214 | | &descriptor_table_gif_5ffuzz_5fproto_2eproto, |
3215 | | nullptr, // tracker |
3216 | | }; |
3217 | 23.4k | const ::google::protobuf::internal::ClassData* BasicChunk::GetClassData() const { |
3218 | 23.4k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
3219 | 23.4k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
3220 | 23.4k | return _class_data_.base(); |
3221 | 23.4k | } |
3222 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
3223 | | const ::_pbi::TcParseTable<2, 4, 4, 0, 2> BasicChunk::_table_ = { |
3224 | | { |
3225 | | PROTOBUF_FIELD_OFFSET(BasicChunk, _impl_._has_bits_), |
3226 | | 0, // no _extensions_ |
3227 | | 4, 24, // max_field_number, fast_idx_mask |
3228 | | offsetof(decltype(_table_), field_lookup_table), |
3229 | | 4294967280, // skipmap |
3230 | | offsetof(decltype(_table_), field_entries), |
3231 | | 4, // num_field_entries |
3232 | | 4, // num_aux_entries |
3233 | | offsetof(decltype(_table_), aux_entries), |
3234 | | _class_data_.base(), |
3235 | | nullptr, // post_loop_handler |
3236 | | ::_pbi::TcParser::GenericFallback, // fallback |
3237 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
3238 | | ::_pbi::TcParser::GetTable<::gifProtoFuzzer::BasicChunk>(), // to_prefetch |
3239 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
3240 | | }, {{ |
3241 | | // optional .gifProtoFuzzer.GraphicControlExtension gcExt = 4; |
3242 | | {::_pbi::TcParser::FastMtS1, |
3243 | | {34, 3, 3, PROTOBUF_FIELD_OFFSET(BasicChunk, _impl_.gcext_)}}, |
3244 | | // required .gifProtoFuzzer.ImageDescriptor imDescriptor = 1; |
3245 | | {::_pbi::TcParser::FastMtS1, |
3246 | | {10, 0, 0, PROTOBUF_FIELD_OFFSET(BasicChunk, _impl_.imdescriptor_)}}, |
3247 | | // required .gifProtoFuzzer.LocalColorTable lct = 2; |
3248 | | {::_pbi::TcParser::FastMtS1, |
3249 | | {18, 1, 1, PROTOBUF_FIELD_OFFSET(BasicChunk, _impl_.lct_)}}, |
3250 | | // required .gifProtoFuzzer.ImageData img = 3; |
3251 | | {::_pbi::TcParser::FastMtS1, |
3252 | | {26, 2, 2, PROTOBUF_FIELD_OFFSET(BasicChunk, _impl_.img_)}}, |
3253 | | }}, {{ |
3254 | | 65535, 65535 |
3255 | | }}, {{ |
3256 | | // required .gifProtoFuzzer.ImageDescriptor imDescriptor = 1; |
3257 | | {PROTOBUF_FIELD_OFFSET(BasicChunk, _impl_.imdescriptor_), _Internal::kHasBitsOffset + 0, 0, |
3258 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
3259 | | // required .gifProtoFuzzer.LocalColorTable lct = 2; |
3260 | | {PROTOBUF_FIELD_OFFSET(BasicChunk, _impl_.lct_), _Internal::kHasBitsOffset + 1, 1, |
3261 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
3262 | | // required .gifProtoFuzzer.ImageData img = 3; |
3263 | | {PROTOBUF_FIELD_OFFSET(BasicChunk, _impl_.img_), _Internal::kHasBitsOffset + 2, 2, |
3264 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
3265 | | // optional .gifProtoFuzzer.GraphicControlExtension gcExt = 4; |
3266 | | {PROTOBUF_FIELD_OFFSET(BasicChunk, _impl_.gcext_), _Internal::kHasBitsOffset + 3, 3, |
3267 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
3268 | | }}, {{ |
3269 | | {::_pbi::TcParser::GetTable<::gifProtoFuzzer::ImageDescriptor>()}, |
3270 | | {::_pbi::TcParser::GetTable<::gifProtoFuzzer::LocalColorTable>()}, |
3271 | | {::_pbi::TcParser::GetTable<::gifProtoFuzzer::ImageData>()}, |
3272 | | {::_pbi::TcParser::GetTable<::gifProtoFuzzer::GraphicControlExtension>()}, |
3273 | | }}, {{ |
3274 | | }}, |
3275 | | }; |
3276 | | |
3277 | 0 | PROTOBUF_NOINLINE void BasicChunk::Clear() { |
3278 | | // @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.BasicChunk) |
3279 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3280 | 0 | ::uint32_t cached_has_bits = 0; |
3281 | | // Prevent compiler warnings about cached_has_bits being unused |
3282 | 0 | (void) cached_has_bits; |
3283 | |
|
3284 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
3285 | 0 | if (cached_has_bits & 0x0000000fu) { |
3286 | 0 | if (cached_has_bits & 0x00000001u) { |
3287 | 0 | ABSL_DCHECK(_impl_.imdescriptor_ != nullptr); |
3288 | 0 | _impl_.imdescriptor_->Clear(); |
3289 | 0 | } |
3290 | 0 | if (cached_has_bits & 0x00000002u) { |
3291 | 0 | ABSL_DCHECK(_impl_.lct_ != nullptr); |
3292 | 0 | _impl_.lct_->Clear(); |
3293 | 0 | } |
3294 | 0 | if (cached_has_bits & 0x00000004u) { |
3295 | 0 | ABSL_DCHECK(_impl_.img_ != nullptr); |
3296 | 0 | _impl_.img_->Clear(); |
3297 | 0 | } |
3298 | 0 | if (cached_has_bits & 0x00000008u) { |
3299 | 0 | ABSL_DCHECK(_impl_.gcext_ != nullptr); |
3300 | 0 | _impl_.gcext_->Clear(); |
3301 | 0 | } |
3302 | 0 | } |
3303 | 0 | _impl_._has_bits_.Clear(); |
3304 | 0 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
3305 | 0 | } |
3306 | | |
3307 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3308 | | ::uint8_t* BasicChunk::_InternalSerialize( |
3309 | | const MessageLite& base, ::uint8_t* target, |
3310 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
3311 | | const BasicChunk& this_ = static_cast<const BasicChunk&>(base); |
3312 | | #else // PROTOBUF_CUSTOM_VTABLE |
3313 | | ::uint8_t* BasicChunk::_InternalSerialize( |
3314 | | ::uint8_t* target, |
3315 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
3316 | 0 | const BasicChunk& this_ = *this; |
3317 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3318 | | // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.BasicChunk) |
3319 | 0 | ::uint32_t cached_has_bits = 0; |
3320 | 0 | (void)cached_has_bits; |
3321 | |
|
3322 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
3323 | | // required .gifProtoFuzzer.ImageDescriptor imDescriptor = 1; |
3324 | 0 | if (cached_has_bits & 0x00000001u) { |
3325 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
3326 | 0 | 1, *this_._impl_.imdescriptor_, this_._impl_.imdescriptor_->GetCachedSize(), target, |
3327 | 0 | stream); |
3328 | 0 | } |
3329 | | |
3330 | | // required .gifProtoFuzzer.LocalColorTable lct = 2; |
3331 | 0 | if (cached_has_bits & 0x00000002u) { |
3332 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
3333 | 0 | 2, *this_._impl_.lct_, this_._impl_.lct_->GetCachedSize(), target, |
3334 | 0 | stream); |
3335 | 0 | } |
3336 | | |
3337 | | // required .gifProtoFuzzer.ImageData img = 3; |
3338 | 0 | if (cached_has_bits & 0x00000004u) { |
3339 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
3340 | 0 | 3, *this_._impl_.img_, this_._impl_.img_->GetCachedSize(), target, |
3341 | 0 | stream); |
3342 | 0 | } |
3343 | | |
3344 | | // optional .gifProtoFuzzer.GraphicControlExtension gcExt = 4; |
3345 | 0 | if (cached_has_bits & 0x00000008u) { |
3346 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
3347 | 0 | 4, *this_._impl_.gcext_, this_._impl_.gcext_->GetCachedSize(), target, |
3348 | 0 | stream); |
3349 | 0 | } |
3350 | |
|
3351 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
3352 | 0 | target = |
3353 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
3354 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
3355 | 0 | } |
3356 | | // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.BasicChunk) |
3357 | 0 | return target; |
3358 | 0 | } |
3359 | | |
3360 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3361 | | ::size_t BasicChunk::ByteSizeLong(const MessageLite& base) { |
3362 | | const BasicChunk& this_ = static_cast<const BasicChunk&>(base); |
3363 | | #else // PROTOBUF_CUSTOM_VTABLE |
3364 | 0 | ::size_t BasicChunk::ByteSizeLong() const { |
3365 | 0 | const BasicChunk& this_ = *this; |
3366 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3367 | | // @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.BasicChunk) |
3368 | 0 | ::size_t total_size = 0; |
3369 | |
|
3370 | 0 | ::uint32_t cached_has_bits = 0; |
3371 | | // Prevent compiler warnings about cached_has_bits being unused |
3372 | 0 | (void)cached_has_bits; |
3373 | |
|
3374 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
3375 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
3376 | 0 | if (cached_has_bits & 0x00000007u) { |
3377 | | // required .gifProtoFuzzer.ImageDescriptor imDescriptor = 1; |
3378 | 0 | if (cached_has_bits & 0x00000001u) { |
3379 | 0 | total_size += 1 + |
3380 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.imdescriptor_); |
3381 | 0 | } |
3382 | | // required .gifProtoFuzzer.LocalColorTable lct = 2; |
3383 | 0 | if (cached_has_bits & 0x00000002u) { |
3384 | 0 | total_size += 1 + |
3385 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.lct_); |
3386 | 0 | } |
3387 | | // required .gifProtoFuzzer.ImageData img = 3; |
3388 | 0 | if (cached_has_bits & 0x00000004u) { |
3389 | 0 | total_size += 1 + |
3390 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.img_); |
3391 | 0 | } |
3392 | 0 | } |
3393 | 0 | { |
3394 | | // optional .gifProtoFuzzer.GraphicControlExtension gcExt = 4; |
3395 | 0 | if (cached_has_bits & 0x00000008u) { |
3396 | 0 | total_size += 1 + |
3397 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.gcext_); |
3398 | 0 | } |
3399 | 0 | } |
3400 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
3401 | 0 | &this_._impl_._cached_size_); |
3402 | 0 | } |
3403 | | |
3404 | 0 | void BasicChunk::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
3405 | 0 | auto* const _this = static_cast<BasicChunk*>(&to_msg); |
3406 | 0 | auto& from = static_cast<const BasicChunk&>(from_msg); |
3407 | 0 | ::google::protobuf::Arena* arena = _this->GetArena(); |
3408 | | // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.BasicChunk) |
3409 | 0 | ABSL_DCHECK_NE(&from, _this); |
3410 | 0 | ::uint32_t cached_has_bits = 0; |
3411 | 0 | (void) cached_has_bits; |
3412 | |
|
3413 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
3414 | 0 | if (cached_has_bits & 0x0000000fu) { |
3415 | 0 | if (cached_has_bits & 0x00000001u) { |
3416 | 0 | ABSL_DCHECK(from._impl_.imdescriptor_ != nullptr); |
3417 | 0 | if (_this->_impl_.imdescriptor_ == nullptr) { |
3418 | 0 | _this->_impl_.imdescriptor_ = |
3419 | 0 | ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::ImageDescriptor>(arena, *from._impl_.imdescriptor_); |
3420 | 0 | } else { |
3421 | 0 | _this->_impl_.imdescriptor_->MergeFrom(*from._impl_.imdescriptor_); |
3422 | 0 | } |
3423 | 0 | } |
3424 | 0 | if (cached_has_bits & 0x00000002u) { |
3425 | 0 | ABSL_DCHECK(from._impl_.lct_ != nullptr); |
3426 | 0 | if (_this->_impl_.lct_ == nullptr) { |
3427 | 0 | _this->_impl_.lct_ = |
3428 | 0 | ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::LocalColorTable>(arena, *from._impl_.lct_); |
3429 | 0 | } else { |
3430 | 0 | _this->_impl_.lct_->MergeFrom(*from._impl_.lct_); |
3431 | 0 | } |
3432 | 0 | } |
3433 | 0 | if (cached_has_bits & 0x00000004u) { |
3434 | 0 | ABSL_DCHECK(from._impl_.img_ != nullptr); |
3435 | 0 | if (_this->_impl_.img_ == nullptr) { |
3436 | 0 | _this->_impl_.img_ = |
3437 | 0 | ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::ImageData>(arena, *from._impl_.img_); |
3438 | 0 | } else { |
3439 | 0 | _this->_impl_.img_->MergeFrom(*from._impl_.img_); |
3440 | 0 | } |
3441 | 0 | } |
3442 | 0 | if (cached_has_bits & 0x00000008u) { |
3443 | 0 | ABSL_DCHECK(from._impl_.gcext_ != nullptr); |
3444 | 0 | if (_this->_impl_.gcext_ == nullptr) { |
3445 | 0 | _this->_impl_.gcext_ = |
3446 | 0 | ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::GraphicControlExtension>(arena, *from._impl_.gcext_); |
3447 | 0 | } else { |
3448 | 0 | _this->_impl_.gcext_->MergeFrom(*from._impl_.gcext_); |
3449 | 0 | } |
3450 | 0 | } |
3451 | 0 | } |
3452 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
3453 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
3454 | 0 | } |
3455 | | |
3456 | 0 | void BasicChunk::CopyFrom(const BasicChunk& from) { |
3457 | | // @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.BasicChunk) |
3458 | 0 | if (&from == this) return; |
3459 | 0 | Clear(); |
3460 | 0 | MergeFrom(from); |
3461 | 0 | } |
3462 | | |
3463 | | PROTOBUF_NOINLINE bool BasicChunk::IsInitializedImpl( |
3464 | 0 | const MessageLite& msg) { |
3465 | 0 | auto& this_ = static_cast<const BasicChunk&>(msg); |
3466 | 0 | if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { |
3467 | 0 | return false; |
3468 | 0 | } |
3469 | 0 | if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { |
3470 | 0 | if (!this_._impl_.imdescriptor_->IsInitialized()) return false; |
3471 | 0 | } |
3472 | 0 | if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { |
3473 | 0 | if (!this_._impl_.lct_->IsInitialized()) return false; |
3474 | 0 | } |
3475 | 0 | if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { |
3476 | 0 | if (!this_._impl_.img_->IsInitialized()) return false; |
3477 | 0 | } |
3478 | 0 | if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { |
3479 | 0 | if (!this_._impl_.gcext_->IsInitialized()) return false; |
3480 | 0 | } |
3481 | 0 | return true; |
3482 | 0 | } |
3483 | | |
3484 | 0 | void BasicChunk::InternalSwap(BasicChunk* PROTOBUF_RESTRICT other) { |
3485 | 0 | using std::swap; |
3486 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
3487 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
3488 | 0 | ::google::protobuf::internal::memswap< |
3489 | 0 | PROTOBUF_FIELD_OFFSET(BasicChunk, _impl_.gcext_) |
3490 | 0 | + sizeof(BasicChunk::_impl_.gcext_) |
3491 | 0 | - PROTOBUF_FIELD_OFFSET(BasicChunk, _impl_.imdescriptor_)>( |
3492 | 0 | reinterpret_cast<char*>(&_impl_.imdescriptor_), |
3493 | 0 | reinterpret_cast<char*>(&other->_impl_.imdescriptor_)); |
3494 | 0 | } |
3495 | | |
3496 | 0 | ::google::protobuf::Metadata BasicChunk::GetMetadata() const { |
3497 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
3498 | 0 | } |
3499 | | // =================================================================== |
3500 | | |
3501 | | class ApplicationExtension::_Internal { |
3502 | | public: |
3503 | | using HasBits = |
3504 | | decltype(std::declval<ApplicationExtension>()._impl_._has_bits_); |
3505 | | static constexpr ::int32_t kHasBitsOffset = |
3506 | | 8 * PROTOBUF_FIELD_OFFSET(ApplicationExtension, _impl_._has_bits_); |
3507 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
3508 | 0 | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
3509 | 0 | } |
3510 | | }; |
3511 | | |
3512 | | ApplicationExtension::ApplicationExtension(::google::protobuf::Arena* arena) |
3513 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3514 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
3515 | | #else // PROTOBUF_CUSTOM_VTABLE |
3516 | 1.50k | : ::google::protobuf::Message(arena) { |
3517 | 1.50k | #endif // PROTOBUF_CUSTOM_VTABLE |
3518 | 1.50k | SharedCtor(arena); |
3519 | | // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.ApplicationExtension) |
3520 | 1.50k | } |
3521 | | inline PROTOBUF_NDEBUG_INLINE ApplicationExtension::Impl_::Impl_( |
3522 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
3523 | | const Impl_& from, const ::gifProtoFuzzer::ApplicationExtension& from_msg) |
3524 | 0 | : _has_bits_{from._has_bits_}, |
3525 | 0 | _cached_size_{0}, |
3526 | 0 | subs_{visibility, arena, from.subs_} {} |
3527 | | |
3528 | | ApplicationExtension::ApplicationExtension( |
3529 | | ::google::protobuf::Arena* arena, |
3530 | | const ApplicationExtension& from) |
3531 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3532 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
3533 | | #else // PROTOBUF_CUSTOM_VTABLE |
3534 | 0 | : ::google::protobuf::Message(arena) { |
3535 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3536 | 0 | ApplicationExtension* const _this = this; |
3537 | 0 | (void)_this; |
3538 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
3539 | 0 | from._internal_metadata_); |
3540 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
3541 | 0 | _impl_.appid_ = from._impl_.appid_; |
3542 | | |
3543 | | // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.ApplicationExtension) |
3544 | 0 | } |
3545 | | inline PROTOBUF_NDEBUG_INLINE ApplicationExtension::Impl_::Impl_( |
3546 | | ::google::protobuf::internal::InternalVisibility visibility, |
3547 | | ::google::protobuf::Arena* arena) |
3548 | 1.50k | : _cached_size_{0}, |
3549 | 1.50k | subs_{visibility, arena} {} |
3550 | | |
3551 | 1.50k | inline void ApplicationExtension::SharedCtor(::_pb::Arena* arena) { |
3552 | 1.50k | new (&_impl_) Impl_(internal_visibility(), arena); |
3553 | 1.50k | _impl_.appid_ = {}; |
3554 | 1.50k | } |
3555 | 1.50k | ApplicationExtension::~ApplicationExtension() { |
3556 | | // @@protoc_insertion_point(destructor:gifProtoFuzzer.ApplicationExtension) |
3557 | 1.50k | SharedDtor(*this); |
3558 | 1.50k | } |
3559 | 1.50k | inline void ApplicationExtension::SharedDtor(MessageLite& self) { |
3560 | 1.50k | ApplicationExtension& this_ = static_cast<ApplicationExtension&>(self); |
3561 | 1.50k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
3562 | 1.50k | ABSL_DCHECK(this_.GetArena() == nullptr); |
3563 | 1.50k | this_._impl_.~Impl_(); |
3564 | 1.50k | } |
3565 | | |
3566 | | inline void* ApplicationExtension::PlacementNew_(const void*, void* mem, |
3567 | 1.50k | ::google::protobuf::Arena* arena) { |
3568 | 1.50k | return ::new (mem) ApplicationExtension(arena); |
3569 | 1.50k | } |
3570 | 0 | constexpr auto ApplicationExtension::InternalNewImpl_() { |
3571 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
3572 | 0 | PROTOBUF_FIELD_OFFSET(ApplicationExtension, _impl_.subs_) + |
3573 | 0 | decltype(ApplicationExtension::_impl_.subs_):: |
3574 | 0 | InternalGetArenaOffset( |
3575 | 0 | ::google::protobuf::Message::internal_visibility()), |
3576 | 0 | }); |
3577 | 0 | if (arena_bits.has_value()) { |
3578 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit( |
3579 | 0 | sizeof(ApplicationExtension), alignof(ApplicationExtension), *arena_bits); |
3580 | 0 | } else { |
3581 | 0 | return ::google::protobuf::internal::MessageCreator(&ApplicationExtension::PlacementNew_, |
3582 | 0 | sizeof(ApplicationExtension), |
3583 | 0 | alignof(ApplicationExtension)); |
3584 | 0 | } |
3585 | 0 | } |
3586 | | PROTOBUF_CONSTINIT |
3587 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
3588 | | const ::google::protobuf::internal::ClassDataFull ApplicationExtension::_class_data_ = { |
3589 | | ::google::protobuf::internal::ClassData{ |
3590 | | &_ApplicationExtension_default_instance_._instance, |
3591 | | &_table_.header, |
3592 | | nullptr, // OnDemandRegisterArenaDtor |
3593 | | ApplicationExtension::IsInitializedImpl, |
3594 | | &ApplicationExtension::MergeImpl, |
3595 | | ::google::protobuf::Message::GetNewImpl<ApplicationExtension>(), |
3596 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3597 | | &ApplicationExtension::SharedDtor, |
3598 | | ::google::protobuf::Message::GetClearImpl<ApplicationExtension>(), &ApplicationExtension::ByteSizeLong, |
3599 | | &ApplicationExtension::_InternalSerialize, |
3600 | | #endif // PROTOBUF_CUSTOM_VTABLE |
3601 | | PROTOBUF_FIELD_OFFSET(ApplicationExtension, _impl_._cached_size_), |
3602 | | false, |
3603 | | }, |
3604 | | &ApplicationExtension::kDescriptorMethods, |
3605 | | &descriptor_table_gif_5ffuzz_5fproto_2eproto, |
3606 | | nullptr, // tracker |
3607 | | }; |
3608 | 19.2k | const ::google::protobuf::internal::ClassData* ApplicationExtension::GetClassData() const { |
3609 | 19.2k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
3610 | 19.2k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
3611 | 19.2k | return _class_data_.base(); |
3612 | 19.2k | } |
3613 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
3614 | | const ::_pbi::TcParseTable<1, 2, 1, 0, 2> ApplicationExtension::_table_ = { |
3615 | | { |
3616 | | PROTOBUF_FIELD_OFFSET(ApplicationExtension, _impl_._has_bits_), |
3617 | | 0, // no _extensions_ |
3618 | | 2, 8, // max_field_number, fast_idx_mask |
3619 | | offsetof(decltype(_table_), field_lookup_table), |
3620 | | 4294967292, // skipmap |
3621 | | offsetof(decltype(_table_), field_entries), |
3622 | | 2, // num_field_entries |
3623 | | 1, // num_aux_entries |
3624 | | offsetof(decltype(_table_), aux_entries), |
3625 | | _class_data_.base(), |
3626 | | nullptr, // post_loop_handler |
3627 | | ::_pbi::TcParser::GenericFallback, // fallback |
3628 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
3629 | | ::_pbi::TcParser::GetTable<::gifProtoFuzzer::ApplicationExtension>(), // to_prefetch |
3630 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
3631 | | }, {{ |
3632 | | // repeated .gifProtoFuzzer.SubBlock subs = 2; |
3633 | | {::_pbi::TcParser::FastMtR1, |
3634 | | {18, 63, 0, PROTOBUF_FIELD_OFFSET(ApplicationExtension, _impl_.subs_)}}, |
3635 | | // required fixed64 appid = 1; |
3636 | | {::_pbi::TcParser::FastF64S1, |
3637 | | {9, 0, 0, PROTOBUF_FIELD_OFFSET(ApplicationExtension, _impl_.appid_)}}, |
3638 | | }}, {{ |
3639 | | 65535, 65535 |
3640 | | }}, {{ |
3641 | | // required fixed64 appid = 1; |
3642 | | {PROTOBUF_FIELD_OFFSET(ApplicationExtension, _impl_.appid_), _Internal::kHasBitsOffset + 0, 0, |
3643 | | (0 | ::_fl::kFcOptional | ::_fl::kFixed64)}, |
3644 | | // repeated .gifProtoFuzzer.SubBlock subs = 2; |
3645 | | {PROTOBUF_FIELD_OFFSET(ApplicationExtension, _impl_.subs_), -1, 0, |
3646 | | (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
3647 | | }}, {{ |
3648 | | {::_pbi::TcParser::GetTable<::gifProtoFuzzer::SubBlock>()}, |
3649 | | }}, {{ |
3650 | | }}, |
3651 | | }; |
3652 | | |
3653 | 0 | PROTOBUF_NOINLINE void ApplicationExtension::Clear() { |
3654 | | // @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.ApplicationExtension) |
3655 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3656 | 0 | ::uint32_t cached_has_bits = 0; |
3657 | | // Prevent compiler warnings about cached_has_bits being unused |
3658 | 0 | (void) cached_has_bits; |
3659 | |
|
3660 | 0 | _impl_.subs_.Clear(); |
3661 | 0 | _impl_.appid_ = ::uint64_t{0u}; |
3662 | 0 | _impl_._has_bits_.Clear(); |
3663 | 0 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
3664 | 0 | } |
3665 | | |
3666 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3667 | | ::uint8_t* ApplicationExtension::_InternalSerialize( |
3668 | | const MessageLite& base, ::uint8_t* target, |
3669 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
3670 | | const ApplicationExtension& this_ = static_cast<const ApplicationExtension&>(base); |
3671 | | #else // PROTOBUF_CUSTOM_VTABLE |
3672 | | ::uint8_t* ApplicationExtension::_InternalSerialize( |
3673 | | ::uint8_t* target, |
3674 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
3675 | 0 | const ApplicationExtension& this_ = *this; |
3676 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3677 | | // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.ApplicationExtension) |
3678 | 0 | ::uint32_t cached_has_bits = 0; |
3679 | 0 | (void)cached_has_bits; |
3680 | |
|
3681 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
3682 | | // required fixed64 appid = 1; |
3683 | 0 | if (cached_has_bits & 0x00000001u) { |
3684 | 0 | target = stream->EnsureSpace(target); |
3685 | 0 | target = ::_pbi::WireFormatLite::WriteFixed64ToArray( |
3686 | 0 | 1, this_._internal_appid(), target); |
3687 | 0 | } |
3688 | | |
3689 | | // repeated .gifProtoFuzzer.SubBlock subs = 2; |
3690 | 0 | for (unsigned i = 0, n = static_cast<unsigned>( |
3691 | 0 | this_._internal_subs_size()); |
3692 | 0 | i < n; i++) { |
3693 | 0 | const auto& repfield = this_._internal_subs().Get(i); |
3694 | 0 | target = |
3695 | 0 | ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
3696 | 0 | 2, repfield, repfield.GetCachedSize(), |
3697 | 0 | target, stream); |
3698 | 0 | } |
3699 | |
|
3700 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
3701 | 0 | target = |
3702 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
3703 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
3704 | 0 | } |
3705 | | // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.ApplicationExtension) |
3706 | 0 | return target; |
3707 | 0 | } |
3708 | | |
3709 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3710 | | ::size_t ApplicationExtension::ByteSizeLong(const MessageLite& base) { |
3711 | | const ApplicationExtension& this_ = static_cast<const ApplicationExtension&>(base); |
3712 | | #else // PROTOBUF_CUSTOM_VTABLE |
3713 | 0 | ::size_t ApplicationExtension::ByteSizeLong() const { |
3714 | 0 | const ApplicationExtension& this_ = *this; |
3715 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3716 | | // @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.ApplicationExtension) |
3717 | 0 | ::size_t total_size = 0; |
3718 | |
|
3719 | 0 | ::uint32_t cached_has_bits = 0; |
3720 | | // Prevent compiler warnings about cached_has_bits being unused |
3721 | 0 | (void)cached_has_bits; |
3722 | |
|
3723 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
3724 | 0 | { |
3725 | | // repeated .gifProtoFuzzer.SubBlock subs = 2; |
3726 | 0 | { |
3727 | 0 | total_size += 1UL * this_._internal_subs_size(); |
3728 | 0 | for (const auto& msg : this_._internal_subs()) { |
3729 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); |
3730 | 0 | } |
3731 | 0 | } |
3732 | 0 | } |
3733 | 0 | { |
3734 | | // required fixed64 appid = 1; |
3735 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
3736 | 0 | if (cached_has_bits & 0x00000001u) { |
3737 | 0 | total_size += 9; |
3738 | 0 | } |
3739 | 0 | } |
3740 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
3741 | 0 | &this_._impl_._cached_size_); |
3742 | 0 | } |
3743 | | |
3744 | 0 | void ApplicationExtension::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
3745 | 0 | auto* const _this = static_cast<ApplicationExtension*>(&to_msg); |
3746 | 0 | auto& from = static_cast<const ApplicationExtension&>(from_msg); |
3747 | | // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.ApplicationExtension) |
3748 | 0 | ABSL_DCHECK_NE(&from, _this); |
3749 | 0 | ::uint32_t cached_has_bits = 0; |
3750 | 0 | (void) cached_has_bits; |
3751 | |
|
3752 | 0 | _this->_internal_mutable_subs()->MergeFrom( |
3753 | 0 | from._internal_subs()); |
3754 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
3755 | 0 | if (cached_has_bits & 0x00000001u) { |
3756 | 0 | _this->_impl_.appid_ = from._impl_.appid_; |
3757 | 0 | } |
3758 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
3759 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
3760 | 0 | } |
3761 | | |
3762 | 0 | void ApplicationExtension::CopyFrom(const ApplicationExtension& from) { |
3763 | | // @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.ApplicationExtension) |
3764 | 0 | if (&from == this) return; |
3765 | 0 | Clear(); |
3766 | 0 | MergeFrom(from); |
3767 | 0 | } |
3768 | | |
3769 | | PROTOBUF_NOINLINE bool ApplicationExtension::IsInitializedImpl( |
3770 | 0 | const MessageLite& msg) { |
3771 | 0 | auto& this_ = static_cast<const ApplicationExtension&>(msg); |
3772 | 0 | if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { |
3773 | 0 | return false; |
3774 | 0 | } |
3775 | 0 | if (!::google::protobuf::internal::AllAreInitialized(this_._internal_subs())) |
3776 | 0 | return false; |
3777 | 0 | return true; |
3778 | 0 | } |
3779 | | |
3780 | 0 | void ApplicationExtension::InternalSwap(ApplicationExtension* PROTOBUF_RESTRICT other) { |
3781 | 0 | using std::swap; |
3782 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
3783 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
3784 | 0 | _impl_.subs_.InternalSwap(&other->_impl_.subs_); |
3785 | 0 | swap(_impl_.appid_, other->_impl_.appid_); |
3786 | 0 | } |
3787 | | |
3788 | 0 | ::google::protobuf::Metadata ApplicationExtension::GetMetadata() const { |
3789 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
3790 | 0 | } |
3791 | | // =================================================================== |
3792 | | |
3793 | | class CommentExtension::_Internal { |
3794 | | public: |
3795 | | }; |
3796 | | |
3797 | | CommentExtension::CommentExtension(::google::protobuf::Arena* arena) |
3798 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3799 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
3800 | | #else // PROTOBUF_CUSTOM_VTABLE |
3801 | 709 | : ::google::protobuf::Message(arena) { |
3802 | 709 | #endif // PROTOBUF_CUSTOM_VTABLE |
3803 | 709 | SharedCtor(arena); |
3804 | | // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.CommentExtension) |
3805 | 709 | } |
3806 | | inline PROTOBUF_NDEBUG_INLINE CommentExtension::Impl_::Impl_( |
3807 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
3808 | | const Impl_& from, const ::gifProtoFuzzer::CommentExtension& from_msg) |
3809 | 0 | : subs_{visibility, arena, from.subs_}, |
3810 | 0 | _cached_size_{0} {} |
3811 | | |
3812 | | CommentExtension::CommentExtension( |
3813 | | ::google::protobuf::Arena* arena, |
3814 | | const CommentExtension& from) |
3815 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3816 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
3817 | | #else // PROTOBUF_CUSTOM_VTABLE |
3818 | 0 | : ::google::protobuf::Message(arena) { |
3819 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3820 | 0 | CommentExtension* const _this = this; |
3821 | 0 | (void)_this; |
3822 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
3823 | 0 | from._internal_metadata_); |
3824 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
3825 | | |
3826 | | // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.CommentExtension) |
3827 | 0 | } |
3828 | | inline PROTOBUF_NDEBUG_INLINE CommentExtension::Impl_::Impl_( |
3829 | | ::google::protobuf::internal::InternalVisibility visibility, |
3830 | | ::google::protobuf::Arena* arena) |
3831 | 709 | : subs_{visibility, arena}, |
3832 | 709 | _cached_size_{0} {} |
3833 | | |
3834 | 709 | inline void CommentExtension::SharedCtor(::_pb::Arena* arena) { |
3835 | 709 | new (&_impl_) Impl_(internal_visibility(), arena); |
3836 | 709 | } |
3837 | 709 | CommentExtension::~CommentExtension() { |
3838 | | // @@protoc_insertion_point(destructor:gifProtoFuzzer.CommentExtension) |
3839 | 709 | SharedDtor(*this); |
3840 | 709 | } |
3841 | 709 | inline void CommentExtension::SharedDtor(MessageLite& self) { |
3842 | 709 | CommentExtension& this_ = static_cast<CommentExtension&>(self); |
3843 | 709 | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
3844 | 709 | ABSL_DCHECK(this_.GetArena() == nullptr); |
3845 | 709 | this_._impl_.~Impl_(); |
3846 | 709 | } |
3847 | | |
3848 | | inline void* CommentExtension::PlacementNew_(const void*, void* mem, |
3849 | 709 | ::google::protobuf::Arena* arena) { |
3850 | 709 | return ::new (mem) CommentExtension(arena); |
3851 | 709 | } |
3852 | 0 | constexpr auto CommentExtension::InternalNewImpl_() { |
3853 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
3854 | 0 | PROTOBUF_FIELD_OFFSET(CommentExtension, _impl_.subs_) + |
3855 | 0 | decltype(CommentExtension::_impl_.subs_):: |
3856 | 0 | InternalGetArenaOffset( |
3857 | 0 | ::google::protobuf::Message::internal_visibility()), |
3858 | 0 | }); |
3859 | 0 | if (arena_bits.has_value()) { |
3860 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit( |
3861 | 0 | sizeof(CommentExtension), alignof(CommentExtension), *arena_bits); |
3862 | 0 | } else { |
3863 | 0 | return ::google::protobuf::internal::MessageCreator(&CommentExtension::PlacementNew_, |
3864 | 0 | sizeof(CommentExtension), |
3865 | 0 | alignof(CommentExtension)); |
3866 | 0 | } |
3867 | 0 | } |
3868 | | PROTOBUF_CONSTINIT |
3869 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
3870 | | const ::google::protobuf::internal::ClassDataFull CommentExtension::_class_data_ = { |
3871 | | ::google::protobuf::internal::ClassData{ |
3872 | | &_CommentExtension_default_instance_._instance, |
3873 | | &_table_.header, |
3874 | | nullptr, // OnDemandRegisterArenaDtor |
3875 | | CommentExtension::IsInitializedImpl, |
3876 | | &CommentExtension::MergeImpl, |
3877 | | ::google::protobuf::Message::GetNewImpl<CommentExtension>(), |
3878 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3879 | | &CommentExtension::SharedDtor, |
3880 | | ::google::protobuf::Message::GetClearImpl<CommentExtension>(), &CommentExtension::ByteSizeLong, |
3881 | | &CommentExtension::_InternalSerialize, |
3882 | | #endif // PROTOBUF_CUSTOM_VTABLE |
3883 | | PROTOBUF_FIELD_OFFSET(CommentExtension, _impl_._cached_size_), |
3884 | | false, |
3885 | | }, |
3886 | | &CommentExtension::kDescriptorMethods, |
3887 | | &descriptor_table_gif_5ffuzz_5fproto_2eproto, |
3888 | | nullptr, // tracker |
3889 | | }; |
3890 | 43.9k | const ::google::protobuf::internal::ClassData* CommentExtension::GetClassData() const { |
3891 | 43.9k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
3892 | 43.9k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
3893 | 43.9k | return _class_data_.base(); |
3894 | 43.9k | } |
3895 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
3896 | | const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CommentExtension::_table_ = { |
3897 | | { |
3898 | | 0, // no _has_bits_ |
3899 | | 0, // no _extensions_ |
3900 | | 1, 0, // max_field_number, fast_idx_mask |
3901 | | offsetof(decltype(_table_), field_lookup_table), |
3902 | | 4294967294, // skipmap |
3903 | | offsetof(decltype(_table_), field_entries), |
3904 | | 1, // num_field_entries |
3905 | | 1, // num_aux_entries |
3906 | | offsetof(decltype(_table_), aux_entries), |
3907 | | _class_data_.base(), |
3908 | | nullptr, // post_loop_handler |
3909 | | ::_pbi::TcParser::GenericFallback, // fallback |
3910 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
3911 | | ::_pbi::TcParser::GetTable<::gifProtoFuzzer::CommentExtension>(), // to_prefetch |
3912 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
3913 | | }, {{ |
3914 | | // repeated .gifProtoFuzzer.SubBlock subs = 1; |
3915 | | {::_pbi::TcParser::FastMtR1, |
3916 | | {10, 63, 0, PROTOBUF_FIELD_OFFSET(CommentExtension, _impl_.subs_)}}, |
3917 | | }}, {{ |
3918 | | 65535, 65535 |
3919 | | }}, {{ |
3920 | | // repeated .gifProtoFuzzer.SubBlock subs = 1; |
3921 | | {PROTOBUF_FIELD_OFFSET(CommentExtension, _impl_.subs_), 0, 0, |
3922 | | (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
3923 | | }}, {{ |
3924 | | {::_pbi::TcParser::GetTable<::gifProtoFuzzer::SubBlock>()}, |
3925 | | }}, {{ |
3926 | | }}, |
3927 | | }; |
3928 | | |
3929 | 0 | PROTOBUF_NOINLINE void CommentExtension::Clear() { |
3930 | | // @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.CommentExtension) |
3931 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3932 | 0 | ::uint32_t cached_has_bits = 0; |
3933 | | // Prevent compiler warnings about cached_has_bits being unused |
3934 | 0 | (void) cached_has_bits; |
3935 | |
|
3936 | 0 | _impl_.subs_.Clear(); |
3937 | 0 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
3938 | 0 | } |
3939 | | |
3940 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3941 | | ::uint8_t* CommentExtension::_InternalSerialize( |
3942 | | const MessageLite& base, ::uint8_t* target, |
3943 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
3944 | | const CommentExtension& this_ = static_cast<const CommentExtension&>(base); |
3945 | | #else // PROTOBUF_CUSTOM_VTABLE |
3946 | | ::uint8_t* CommentExtension::_InternalSerialize( |
3947 | | ::uint8_t* target, |
3948 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
3949 | 0 | const CommentExtension& this_ = *this; |
3950 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3951 | | // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.CommentExtension) |
3952 | 0 | ::uint32_t cached_has_bits = 0; |
3953 | 0 | (void)cached_has_bits; |
3954 | | |
3955 | | // repeated .gifProtoFuzzer.SubBlock subs = 1; |
3956 | 0 | for (unsigned i = 0, n = static_cast<unsigned>( |
3957 | 0 | this_._internal_subs_size()); |
3958 | 0 | i < n; i++) { |
3959 | 0 | const auto& repfield = this_._internal_subs().Get(i); |
3960 | 0 | target = |
3961 | 0 | ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
3962 | 0 | 1, repfield, repfield.GetCachedSize(), |
3963 | 0 | target, stream); |
3964 | 0 | } |
3965 | |
|
3966 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
3967 | 0 | target = |
3968 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
3969 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
3970 | 0 | } |
3971 | | // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.CommentExtension) |
3972 | 0 | return target; |
3973 | 0 | } |
3974 | | |
3975 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
3976 | | ::size_t CommentExtension::ByteSizeLong(const MessageLite& base) { |
3977 | | const CommentExtension& this_ = static_cast<const CommentExtension&>(base); |
3978 | | #else // PROTOBUF_CUSTOM_VTABLE |
3979 | 0 | ::size_t CommentExtension::ByteSizeLong() const { |
3980 | 0 | const CommentExtension& this_ = *this; |
3981 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
3982 | | // @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.CommentExtension) |
3983 | 0 | ::size_t total_size = 0; |
3984 | |
|
3985 | 0 | ::uint32_t cached_has_bits = 0; |
3986 | | // Prevent compiler warnings about cached_has_bits being unused |
3987 | 0 | (void)cached_has_bits; |
3988 | |
|
3989 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
3990 | 0 | { |
3991 | | // repeated .gifProtoFuzzer.SubBlock subs = 1; |
3992 | 0 | { |
3993 | 0 | total_size += 1UL * this_._internal_subs_size(); |
3994 | 0 | for (const auto& msg : this_._internal_subs()) { |
3995 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); |
3996 | 0 | } |
3997 | 0 | } |
3998 | 0 | } |
3999 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
4000 | 0 | &this_._impl_._cached_size_); |
4001 | 0 | } |
4002 | | |
4003 | 0 | void CommentExtension::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
4004 | 0 | auto* const _this = static_cast<CommentExtension*>(&to_msg); |
4005 | 0 | auto& from = static_cast<const CommentExtension&>(from_msg); |
4006 | | // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.CommentExtension) |
4007 | 0 | ABSL_DCHECK_NE(&from, _this); |
4008 | 0 | ::uint32_t cached_has_bits = 0; |
4009 | 0 | (void) cached_has_bits; |
4010 | |
|
4011 | 0 | _this->_internal_mutable_subs()->MergeFrom( |
4012 | 0 | from._internal_subs()); |
4013 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
4014 | 0 | } |
4015 | | |
4016 | 0 | void CommentExtension::CopyFrom(const CommentExtension& from) { |
4017 | | // @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.CommentExtension) |
4018 | 0 | if (&from == this) return; |
4019 | 0 | Clear(); |
4020 | 0 | MergeFrom(from); |
4021 | 0 | } |
4022 | | |
4023 | | PROTOBUF_NOINLINE bool CommentExtension::IsInitializedImpl( |
4024 | 0 | const MessageLite& msg) { |
4025 | 0 | auto& this_ = static_cast<const CommentExtension&>(msg); |
4026 | 0 | if (!::google::protobuf::internal::AllAreInitialized(this_._internal_subs())) |
4027 | 0 | return false; |
4028 | 0 | return true; |
4029 | 0 | } |
4030 | | |
4031 | 0 | void CommentExtension::InternalSwap(CommentExtension* PROTOBUF_RESTRICT other) { |
4032 | 0 | using std::swap; |
4033 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
4034 | 0 | _impl_.subs_.InternalSwap(&other->_impl_.subs_); |
4035 | 0 | } |
4036 | | |
4037 | 0 | ::google::protobuf::Metadata CommentExtension::GetMetadata() const { |
4038 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
4039 | 0 | } |
4040 | | // =================================================================== |
4041 | | |
4042 | | class Header::_Internal { |
4043 | | public: |
4044 | | using HasBits = |
4045 | | decltype(std::declval<Header>()._impl_._has_bits_); |
4046 | | static constexpr ::int32_t kHasBitsOffset = |
4047 | | 8 * PROTOBUF_FIELD_OFFSET(Header, _impl_._has_bits_); |
4048 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
4049 | 0 | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
4050 | 0 | } |
4051 | | }; |
4052 | | |
4053 | | Header::Header(::google::protobuf::Arena* arena) |
4054 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4055 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
4056 | | #else // PROTOBUF_CUSTOM_VTABLE |
4057 | 1.40k | : ::google::protobuf::Message(arena) { |
4058 | 1.40k | #endif // PROTOBUF_CUSTOM_VTABLE |
4059 | 1.40k | SharedCtor(arena); |
4060 | | // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.Header) |
4061 | 1.40k | } |
4062 | | Header::Header( |
4063 | | ::google::protobuf::Arena* arena, const Header& from) |
4064 | 0 | : Header(arena) { |
4065 | 0 | MergeFrom(from); |
4066 | 0 | } |
4067 | | inline PROTOBUF_NDEBUG_INLINE Header::Impl_::Impl_( |
4068 | | ::google::protobuf::internal::InternalVisibility visibility, |
4069 | | ::google::protobuf::Arena* arena) |
4070 | 1.40k | : _cached_size_{0}, |
4071 | 1.40k | ver_{static_cast< ::gifProtoFuzzer::Header_Version >(1)} {} |
4072 | | |
4073 | 1.40k | inline void Header::SharedCtor(::_pb::Arena* arena) { |
4074 | 1.40k | new (&_impl_) Impl_(internal_visibility(), arena); |
4075 | 1.40k | } |
4076 | 1.40k | Header::~Header() { |
4077 | | // @@protoc_insertion_point(destructor:gifProtoFuzzer.Header) |
4078 | 1.40k | SharedDtor(*this); |
4079 | 1.40k | } |
4080 | 1.40k | inline void Header::SharedDtor(MessageLite& self) { |
4081 | 1.40k | Header& this_ = static_cast<Header&>(self); |
4082 | 1.40k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
4083 | 1.40k | ABSL_DCHECK(this_.GetArena() == nullptr); |
4084 | 1.40k | this_._impl_.~Impl_(); |
4085 | 1.40k | } |
4086 | | |
4087 | | inline void* Header::PlacementNew_(const void*, void* mem, |
4088 | 1.40k | ::google::protobuf::Arena* arena) { |
4089 | 1.40k | return ::new (mem) Header(arena); |
4090 | 1.40k | } |
4091 | 0 | constexpr auto Header::InternalNewImpl_() { |
4092 | 0 | return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Header), |
4093 | 0 | alignof(Header)); |
4094 | 0 | } |
4095 | | PROTOBUF_CONSTINIT |
4096 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
4097 | | const ::google::protobuf::internal::ClassDataFull Header::_class_data_ = { |
4098 | | ::google::protobuf::internal::ClassData{ |
4099 | | &_Header_default_instance_._instance, |
4100 | | &_table_.header, |
4101 | | nullptr, // OnDemandRegisterArenaDtor |
4102 | | Header::IsInitializedImpl, |
4103 | | &Header::MergeImpl, |
4104 | | ::google::protobuf::Message::GetNewImpl<Header>(), |
4105 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4106 | | &Header::SharedDtor, |
4107 | | ::google::protobuf::Message::GetClearImpl<Header>(), &Header::ByteSizeLong, |
4108 | | &Header::_InternalSerialize, |
4109 | | #endif // PROTOBUF_CUSTOM_VTABLE |
4110 | | PROTOBUF_FIELD_OFFSET(Header, _impl_._cached_size_), |
4111 | | false, |
4112 | | }, |
4113 | | &Header::kDescriptorMethods, |
4114 | | &descriptor_table_gif_5ffuzz_5fproto_2eproto, |
4115 | | nullptr, // tracker |
4116 | | }; |
4117 | 9.50k | const ::google::protobuf::internal::ClassData* Header::GetClassData() const { |
4118 | 9.50k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
4119 | 9.50k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
4120 | 9.50k | return _class_data_.base(); |
4121 | 9.50k | } |
4122 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
4123 | | const ::_pbi::TcParseTable<0, 1, 1, 0, 2> Header::_table_ = { |
4124 | | { |
4125 | | PROTOBUF_FIELD_OFFSET(Header, _impl_._has_bits_), |
4126 | | 0, // no _extensions_ |
4127 | | 1, 0, // max_field_number, fast_idx_mask |
4128 | | offsetof(decltype(_table_), field_lookup_table), |
4129 | | 4294967294, // skipmap |
4130 | | offsetof(decltype(_table_), field_entries), |
4131 | | 1, // num_field_entries |
4132 | | 1, // num_aux_entries |
4133 | | offsetof(decltype(_table_), aux_entries), |
4134 | | _class_data_.base(), |
4135 | | nullptr, // post_loop_handler |
4136 | | ::_pbi::TcParser::GenericFallback, // fallback |
4137 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
4138 | | ::_pbi::TcParser::GetTable<::gifProtoFuzzer::Header>(), // to_prefetch |
4139 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
4140 | | }, {{ |
4141 | | // required .gifProtoFuzzer.Header.Version ver = 1; |
4142 | | {::_pbi::TcParser::FastEr1S1, |
4143 | | {8, 0, 3, PROTOBUF_FIELD_OFFSET(Header, _impl_.ver_)}}, |
4144 | | }}, {{ |
4145 | | 65535, 65535 |
4146 | | }}, {{ |
4147 | | // required .gifProtoFuzzer.Header.Version ver = 1; |
4148 | | {PROTOBUF_FIELD_OFFSET(Header, _impl_.ver_), _Internal::kHasBitsOffset + 0, 0, |
4149 | | (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, |
4150 | | }}, {{ |
4151 | | {1, 3}, |
4152 | | }}, {{ |
4153 | | }}, |
4154 | | }; |
4155 | | |
4156 | 822 | PROTOBUF_NOINLINE void Header::Clear() { |
4157 | | // @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.Header) |
4158 | 822 | ::google::protobuf::internal::TSanWrite(&_impl_); |
4159 | 822 | ::uint32_t cached_has_bits = 0; |
4160 | | // Prevent compiler warnings about cached_has_bits being unused |
4161 | 822 | (void) cached_has_bits; |
4162 | | |
4163 | 822 | _impl_.ver_ = 1; |
4164 | 822 | _impl_._has_bits_.Clear(); |
4165 | 822 | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
4166 | 822 | } |
4167 | | |
4168 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4169 | | ::uint8_t* Header::_InternalSerialize( |
4170 | | const MessageLite& base, ::uint8_t* target, |
4171 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
4172 | | const Header& this_ = static_cast<const Header&>(base); |
4173 | | #else // PROTOBUF_CUSTOM_VTABLE |
4174 | | ::uint8_t* Header::_InternalSerialize( |
4175 | | ::uint8_t* target, |
4176 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
4177 | 0 | const Header& this_ = *this; |
4178 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4179 | | // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.Header) |
4180 | 0 | ::uint32_t cached_has_bits = 0; |
4181 | 0 | (void)cached_has_bits; |
4182 | |
|
4183 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
4184 | | // required .gifProtoFuzzer.Header.Version ver = 1; |
4185 | 0 | if (cached_has_bits & 0x00000001u) { |
4186 | 0 | target = stream->EnsureSpace(target); |
4187 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
4188 | 0 | 1, this_._internal_ver(), target); |
4189 | 0 | } |
4190 | |
|
4191 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
4192 | 0 | target = |
4193 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
4194 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
4195 | 0 | } |
4196 | | // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.Header) |
4197 | 0 | return target; |
4198 | 0 | } |
4199 | | |
4200 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4201 | | ::size_t Header::ByteSizeLong(const MessageLite& base) { |
4202 | | const Header& this_ = static_cast<const Header&>(base); |
4203 | | #else // PROTOBUF_CUSTOM_VTABLE |
4204 | 0 | ::size_t Header::ByteSizeLong() const { |
4205 | 0 | const Header& this_ = *this; |
4206 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4207 | | // @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.Header) |
4208 | 0 | ::size_t total_size = 0; |
4209 | |
|
4210 | 0 | ::uint32_t cached_has_bits = 0; |
4211 | | // Prevent compiler warnings about cached_has_bits being unused |
4212 | 0 | (void)cached_has_bits; |
4213 | |
|
4214 | 0 | { |
4215 | | // required .gifProtoFuzzer.Header.Version ver = 1; |
4216 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
4217 | 0 | if (cached_has_bits & 0x00000001u) { |
4218 | 0 | total_size += 1 + |
4219 | 0 | ::_pbi::WireFormatLite::EnumSize(this_._internal_ver()); |
4220 | 0 | } |
4221 | 0 | } |
4222 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
4223 | 0 | &this_._impl_._cached_size_); |
4224 | 0 | } |
4225 | | |
4226 | 401 | void Header::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
4227 | 401 | auto* const _this = static_cast<Header*>(&to_msg); |
4228 | 401 | auto& from = static_cast<const Header&>(from_msg); |
4229 | | // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.Header) |
4230 | 401 | ABSL_DCHECK_NE(&from, _this); |
4231 | 401 | ::uint32_t cached_has_bits = 0; |
4232 | 401 | (void) cached_has_bits; |
4233 | | |
4234 | 401 | cached_has_bits = from._impl_._has_bits_[0]; |
4235 | 401 | if (cached_has_bits & 0x00000001u) { |
4236 | 0 | _this->_impl_.ver_ = from._impl_.ver_; |
4237 | 0 | } |
4238 | 401 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
4239 | 401 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
4240 | 401 | } |
4241 | | |
4242 | 0 | void Header::CopyFrom(const Header& from) { |
4243 | | // @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.Header) |
4244 | 0 | if (&from == this) return; |
4245 | 0 | Clear(); |
4246 | 0 | MergeFrom(from); |
4247 | 0 | } |
4248 | | |
4249 | | PROTOBUF_NOINLINE bool Header::IsInitializedImpl( |
4250 | 0 | const MessageLite& msg) { |
4251 | 0 | auto& this_ = static_cast<const Header&>(msg); |
4252 | 0 | if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { |
4253 | 0 | return false; |
4254 | 0 | } |
4255 | 0 | return true; |
4256 | 0 | } |
4257 | | |
4258 | 0 | void Header::InternalSwap(Header* PROTOBUF_RESTRICT other) { |
4259 | 0 | using std::swap; |
4260 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
4261 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
4262 | 0 | swap(_impl_.ver_, other->_impl_.ver_); |
4263 | 0 | } |
4264 | | |
4265 | 0 | ::google::protobuf::Metadata Header::GetMetadata() const { |
4266 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
4267 | 0 | } |
4268 | | // =================================================================== |
4269 | | |
4270 | | class Trailer::_Internal { |
4271 | | public: |
4272 | | }; |
4273 | | |
4274 | | Trailer::Trailer(::google::protobuf::Arena* arena) |
4275 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4276 | | : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { |
4277 | | #else // PROTOBUF_CUSTOM_VTABLE |
4278 | 1.35k | : ::google::protobuf::internal::ZeroFieldsBase(arena) { |
4279 | 1.35k | #endif // PROTOBUF_CUSTOM_VTABLE |
4280 | | // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.Trailer) |
4281 | 1.35k | } |
4282 | | Trailer::Trailer( |
4283 | | ::google::protobuf::Arena* arena, |
4284 | | const Trailer& from) |
4285 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4286 | | : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { |
4287 | | #else // PROTOBUF_CUSTOM_VTABLE |
4288 | 0 | : ::google::protobuf::internal::ZeroFieldsBase(arena) { |
4289 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4290 | 0 | Trailer* const _this = this; |
4291 | 0 | (void)_this; |
4292 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
4293 | 0 | from._internal_metadata_); |
4294 | | |
4295 | | // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.Trailer) |
4296 | 0 | } |
4297 | | |
4298 | | inline void* Trailer::PlacementNew_(const void*, void* mem, |
4299 | 1.35k | ::google::protobuf::Arena* arena) { |
4300 | 1.35k | return ::new (mem) Trailer(arena); |
4301 | 1.35k | } |
4302 | 0 | constexpr auto Trailer::InternalNewImpl_() { |
4303 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Trailer), |
4304 | 0 | alignof(Trailer)); |
4305 | 0 | } |
4306 | | PROTOBUF_CONSTINIT |
4307 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
4308 | | const ::google::protobuf::internal::ClassDataFull Trailer::_class_data_ = { |
4309 | | ::google::protobuf::internal::ClassData{ |
4310 | | &_Trailer_default_instance_._instance, |
4311 | | &_table_.header, |
4312 | | nullptr, // OnDemandRegisterArenaDtor |
4313 | | nullptr, // IsInitialized |
4314 | | &Trailer::MergeImpl, |
4315 | | ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl<Trailer>(), |
4316 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4317 | | &Trailer::SharedDtor, |
4318 | | ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl<Trailer>(), &Trailer::ByteSizeLong, |
4319 | | &Trailer::_InternalSerialize, |
4320 | | #endif // PROTOBUF_CUSTOM_VTABLE |
4321 | | PROTOBUF_FIELD_OFFSET(Trailer, _impl_._cached_size_), |
4322 | | false, |
4323 | | }, |
4324 | | &Trailer::kDescriptorMethods, |
4325 | | &descriptor_table_gif_5ffuzz_5fproto_2eproto, |
4326 | | nullptr, // tracker |
4327 | | }; |
4328 | 7.07k | const ::google::protobuf::internal::ClassData* Trailer::GetClassData() const { |
4329 | 7.07k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
4330 | 7.07k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
4331 | 7.07k | return _class_data_.base(); |
4332 | 7.07k | } |
4333 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
4334 | | const ::_pbi::TcParseTable<0, 0, 0, 0, 2> Trailer::_table_ = { |
4335 | | { |
4336 | | 0, // no _has_bits_ |
4337 | | 0, // no _extensions_ |
4338 | | 0, 0, // max_field_number, fast_idx_mask |
4339 | | offsetof(decltype(_table_), field_lookup_table), |
4340 | | 4294967295, // skipmap |
4341 | | offsetof(decltype(_table_), field_names), // no field_entries |
4342 | | 0, // num_field_entries |
4343 | | 0, // num_aux_entries |
4344 | | offsetof(decltype(_table_), field_names), // no aux_entries |
4345 | | _class_data_.base(), |
4346 | | nullptr, // post_loop_handler |
4347 | | ::_pbi::TcParser::GenericFallback, // fallback |
4348 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
4349 | | ::_pbi::TcParser::GetTable<::gifProtoFuzzer::Trailer>(), // to_prefetch |
4350 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
4351 | | }, {{ |
4352 | | {::_pbi::TcParser::MiniParse, {}}, |
4353 | | }}, {{ |
4354 | | 65535, 65535 |
4355 | | }}, |
4356 | | // no field_entries, or aux_entries |
4357 | | {{ |
4358 | | }}, |
4359 | | }; |
4360 | | |
4361 | | |
4362 | | |
4363 | | |
4364 | | |
4365 | | |
4366 | | |
4367 | | |
4368 | 0 | ::google::protobuf::Metadata Trailer::GetMetadata() const { |
4369 | 0 | return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); |
4370 | 0 | } |
4371 | | // =================================================================== |
4372 | | |
4373 | | class ImageChunk::_Internal { |
4374 | | public: |
4375 | | static constexpr ::int32_t kOneofCaseOffset = |
4376 | | PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageChunk, _impl_._oneof_case_); |
4377 | | }; |
4378 | | |
4379 | 0 | void ImageChunk::set_allocated_basic(::gifProtoFuzzer::BasicChunk* basic) { |
4380 | 0 | ::google::protobuf::Arena* message_arena = GetArena(); |
4381 | 0 | clear_chunk_oneof(); |
4382 | 0 | if (basic) { |
4383 | 0 | ::google::protobuf::Arena* submessage_arena = basic->GetArena(); |
4384 | 0 | if (message_arena != submessage_arena) { |
4385 | 0 | basic = ::google::protobuf::internal::GetOwnedMessage(message_arena, basic, submessage_arena); |
4386 | 0 | } |
4387 | 0 | set_has_basic(); |
4388 | 0 | _impl_.chunk_oneof_.basic_ = basic; |
4389 | 0 | } |
4390 | | // @@protoc_insertion_point(field_set_allocated:gifProtoFuzzer.ImageChunk.basic) |
4391 | 0 | } |
4392 | 0 | void ImageChunk::set_allocated_plaintext(::gifProtoFuzzer::PlainTextExtension* plaintext) { |
4393 | 0 | ::google::protobuf::Arena* message_arena = GetArena(); |
4394 | 0 | clear_chunk_oneof(); |
4395 | 0 | if (plaintext) { |
4396 | 0 | ::google::protobuf::Arena* submessage_arena = plaintext->GetArena(); |
4397 | 0 | if (message_arena != submessage_arena) { |
4398 | 0 | plaintext = ::google::protobuf::internal::GetOwnedMessage(message_arena, plaintext, submessage_arena); |
4399 | 0 | } |
4400 | 0 | set_has_plaintext(); |
4401 | 0 | _impl_.chunk_oneof_.plaintext_ = plaintext; |
4402 | 0 | } |
4403 | | // @@protoc_insertion_point(field_set_allocated:gifProtoFuzzer.ImageChunk.plaintext) |
4404 | 0 | } |
4405 | 0 | void ImageChunk::set_allocated_appext(::gifProtoFuzzer::ApplicationExtension* appext) { |
4406 | 0 | ::google::protobuf::Arena* message_arena = GetArena(); |
4407 | 0 | clear_chunk_oneof(); |
4408 | 0 | if (appext) { |
4409 | 0 | ::google::protobuf::Arena* submessage_arena = appext->GetArena(); |
4410 | 0 | if (message_arena != submessage_arena) { |
4411 | 0 | appext = ::google::protobuf::internal::GetOwnedMessage(message_arena, appext, submessage_arena); |
4412 | 0 | } |
4413 | 0 | set_has_appext(); |
4414 | 0 | _impl_.chunk_oneof_.appext_ = appext; |
4415 | 0 | } |
4416 | | // @@protoc_insertion_point(field_set_allocated:gifProtoFuzzer.ImageChunk.appExt) |
4417 | 0 | } |
4418 | 0 | void ImageChunk::set_allocated_comext(::gifProtoFuzzer::CommentExtension* comext) { |
4419 | 0 | ::google::protobuf::Arena* message_arena = GetArena(); |
4420 | 0 | clear_chunk_oneof(); |
4421 | 0 | if (comext) { |
4422 | 0 | ::google::protobuf::Arena* submessage_arena = comext->GetArena(); |
4423 | 0 | if (message_arena != submessage_arena) { |
4424 | 0 | comext = ::google::protobuf::internal::GetOwnedMessage(message_arena, comext, submessage_arena); |
4425 | 0 | } |
4426 | 0 | set_has_comext(); |
4427 | 0 | _impl_.chunk_oneof_.comext_ = comext; |
4428 | 0 | } |
4429 | | // @@protoc_insertion_point(field_set_allocated:gifProtoFuzzer.ImageChunk.comExt) |
4430 | 0 | } |
4431 | | ImageChunk::ImageChunk(::google::protobuf::Arena* arena) |
4432 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4433 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
4434 | | #else // PROTOBUF_CUSTOM_VTABLE |
4435 | 35.7k | : ::google::protobuf::Message(arena) { |
4436 | 35.7k | #endif // PROTOBUF_CUSTOM_VTABLE |
4437 | 35.7k | SharedCtor(arena); |
4438 | | // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.ImageChunk) |
4439 | 35.7k | } |
4440 | | inline PROTOBUF_NDEBUG_INLINE ImageChunk::Impl_::Impl_( |
4441 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
4442 | | const Impl_& from, const ::gifProtoFuzzer::ImageChunk& from_msg) |
4443 | 0 | : chunk_oneof_{}, |
4444 | 0 | _cached_size_{0}, |
4445 | 0 | _oneof_case_{from._oneof_case_[0]} {} |
4446 | | |
4447 | | ImageChunk::ImageChunk( |
4448 | | ::google::protobuf::Arena* arena, |
4449 | | const ImageChunk& from) |
4450 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4451 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
4452 | | #else // PROTOBUF_CUSTOM_VTABLE |
4453 | 0 | : ::google::protobuf::Message(arena) { |
4454 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4455 | 0 | ImageChunk* const _this = this; |
4456 | 0 | (void)_this; |
4457 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
4458 | 0 | from._internal_metadata_); |
4459 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
4460 | 0 | switch (chunk_oneof_case()) { |
4461 | 0 | case CHUNK_ONEOF_NOT_SET: |
4462 | 0 | break; |
4463 | 0 | case kBasic: |
4464 | 0 | _impl_.chunk_oneof_.basic_ = ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::BasicChunk>(arena, *from._impl_.chunk_oneof_.basic_); |
4465 | 0 | break; |
4466 | 0 | case kPlaintext: |
4467 | 0 | _impl_.chunk_oneof_.plaintext_ = ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::PlainTextExtension>(arena, *from._impl_.chunk_oneof_.plaintext_); |
4468 | 0 | break; |
4469 | 0 | case kAppExt: |
4470 | 0 | _impl_.chunk_oneof_.appext_ = ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::ApplicationExtension>(arena, *from._impl_.chunk_oneof_.appext_); |
4471 | 0 | break; |
4472 | 0 | case kComExt: |
4473 | 0 | _impl_.chunk_oneof_.comext_ = ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::CommentExtension>(arena, *from._impl_.chunk_oneof_.comext_); |
4474 | 0 | break; |
4475 | 0 | } |
4476 | | |
4477 | | // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.ImageChunk) |
4478 | 0 | } |
4479 | | inline PROTOBUF_NDEBUG_INLINE ImageChunk::Impl_::Impl_( |
4480 | | ::google::protobuf::internal::InternalVisibility visibility, |
4481 | | ::google::protobuf::Arena* arena) |
4482 | 35.7k | : chunk_oneof_{}, |
4483 | 35.7k | _cached_size_{0}, |
4484 | 35.7k | _oneof_case_{} {} |
4485 | | |
4486 | 35.7k | inline void ImageChunk::SharedCtor(::_pb::Arena* arena) { |
4487 | 35.7k | new (&_impl_) Impl_(internal_visibility(), arena); |
4488 | 35.7k | } |
4489 | 35.7k | ImageChunk::~ImageChunk() { |
4490 | | // @@protoc_insertion_point(destructor:gifProtoFuzzer.ImageChunk) |
4491 | 35.7k | SharedDtor(*this); |
4492 | 35.7k | } |
4493 | 35.7k | inline void ImageChunk::SharedDtor(MessageLite& self) { |
4494 | 35.7k | ImageChunk& this_ = static_cast<ImageChunk&>(self); |
4495 | 35.7k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
4496 | 35.7k | ABSL_DCHECK(this_.GetArena() == nullptr); |
4497 | 35.7k | if (this_.has_chunk_oneof()) { |
4498 | 4.38k | this_.clear_chunk_oneof(); |
4499 | 4.38k | } |
4500 | 35.7k | this_._impl_.~Impl_(); |
4501 | 35.7k | } |
4502 | | |
4503 | 34.9k | void ImageChunk::clear_chunk_oneof() { |
4504 | | // @@protoc_insertion_point(one_of_clear_start:gifProtoFuzzer.ImageChunk) |
4505 | 34.9k | ::google::protobuf::internal::TSanWrite(&_impl_); |
4506 | 34.9k | switch (chunk_oneof_case()) { |
4507 | 2.00k | case kBasic: { |
4508 | 2.00k | if (GetArena() == nullptr) { |
4509 | 2.00k | delete _impl_.chunk_oneof_.basic_; |
4510 | 2.00k | } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { |
4511 | 0 | ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.chunk_oneof_.basic_); |
4512 | 0 | } |
4513 | 2.00k | break; |
4514 | 0 | } |
4515 | 1.04k | case kPlaintext: { |
4516 | 1.04k | if (GetArena() == nullptr) { |
4517 | 1.04k | delete _impl_.chunk_oneof_.plaintext_; |
4518 | 1.04k | } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { |
4519 | 0 | ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.chunk_oneof_.plaintext_); |
4520 | 0 | } |
4521 | 1.04k | break; |
4522 | 0 | } |
4523 | 1.50k | case kAppExt: { |
4524 | 1.50k | if (GetArena() == nullptr) { |
4525 | 1.50k | delete _impl_.chunk_oneof_.appext_; |
4526 | 1.50k | } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { |
4527 | 0 | ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.chunk_oneof_.appext_); |
4528 | 0 | } |
4529 | 1.50k | break; |
4530 | 0 | } |
4531 | 709 | case kComExt: { |
4532 | 709 | if (GetArena() == nullptr) { |
4533 | 709 | delete _impl_.chunk_oneof_.comext_; |
4534 | 709 | } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { |
4535 | 0 | ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.chunk_oneof_.comext_); |
4536 | 0 | } |
4537 | 709 | break; |
4538 | 0 | } |
4539 | 29.7k | case CHUNK_ONEOF_NOT_SET: { |
4540 | 29.7k | break; |
4541 | 0 | } |
4542 | 34.9k | } |
4543 | 34.9k | _impl_._oneof_case_[0] = CHUNK_ONEOF_NOT_SET; |
4544 | 34.9k | } |
4545 | | |
4546 | | |
4547 | | inline void* ImageChunk::PlacementNew_(const void*, void* mem, |
4548 | 35.7k | ::google::protobuf::Arena* arena) { |
4549 | 35.7k | return ::new (mem) ImageChunk(arena); |
4550 | 35.7k | } |
4551 | 0 | constexpr auto ImageChunk::InternalNewImpl_() { |
4552 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ImageChunk), |
4553 | 0 | alignof(ImageChunk)); |
4554 | 0 | } |
4555 | | PROTOBUF_CONSTINIT |
4556 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
4557 | | const ::google::protobuf::internal::ClassDataFull ImageChunk::_class_data_ = { |
4558 | | ::google::protobuf::internal::ClassData{ |
4559 | | &_ImageChunk_default_instance_._instance, |
4560 | | &_table_.header, |
4561 | | nullptr, // OnDemandRegisterArenaDtor |
4562 | | ImageChunk::IsInitializedImpl, |
4563 | | &ImageChunk::MergeImpl, |
4564 | | ::google::protobuf::Message::GetNewImpl<ImageChunk>(), |
4565 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4566 | | &ImageChunk::SharedDtor, |
4567 | | ::google::protobuf::Message::GetClearImpl<ImageChunk>(), &ImageChunk::ByteSizeLong, |
4568 | | &ImageChunk::_InternalSerialize, |
4569 | | #endif // PROTOBUF_CUSTOM_VTABLE |
4570 | | PROTOBUF_FIELD_OFFSET(ImageChunk, _impl_._cached_size_), |
4571 | | false, |
4572 | | }, |
4573 | | &ImageChunk::kDescriptorMethods, |
4574 | | &descriptor_table_gif_5ffuzz_5fproto_2eproto, |
4575 | | nullptr, // tracker |
4576 | | }; |
4577 | 82.7k | const ::google::protobuf::internal::ClassData* ImageChunk::GetClassData() const { |
4578 | 82.7k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
4579 | 82.7k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
4580 | 82.7k | return _class_data_.base(); |
4581 | 82.7k | } |
4582 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
4583 | | const ::_pbi::TcParseTable<0, 4, 4, 0, 2> ImageChunk::_table_ = { |
4584 | | { |
4585 | | 0, // no _has_bits_ |
4586 | | 0, // no _extensions_ |
4587 | | 4, 0, // max_field_number, fast_idx_mask |
4588 | | offsetof(decltype(_table_), field_lookup_table), |
4589 | | 4294967280, // skipmap |
4590 | | offsetof(decltype(_table_), field_entries), |
4591 | | 4, // num_field_entries |
4592 | | 4, // num_aux_entries |
4593 | | offsetof(decltype(_table_), aux_entries), |
4594 | | _class_data_.base(), |
4595 | | nullptr, // post_loop_handler |
4596 | | ::_pbi::TcParser::GenericFallback, // fallback |
4597 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
4598 | | ::_pbi::TcParser::GetTable<::gifProtoFuzzer::ImageChunk>(), // to_prefetch |
4599 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
4600 | | }, {{ |
4601 | | {::_pbi::TcParser::MiniParse, {}}, |
4602 | | }}, {{ |
4603 | | 65535, 65535 |
4604 | | }}, {{ |
4605 | | // .gifProtoFuzzer.BasicChunk basic = 1; |
4606 | | {PROTOBUF_FIELD_OFFSET(ImageChunk, _impl_.chunk_oneof_.basic_), _Internal::kOneofCaseOffset + 0, 0, |
4607 | | (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, |
4608 | | // .gifProtoFuzzer.PlainTextExtension plaintext = 2; |
4609 | | {PROTOBUF_FIELD_OFFSET(ImageChunk, _impl_.chunk_oneof_.plaintext_), _Internal::kOneofCaseOffset + 0, 1, |
4610 | | (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, |
4611 | | // .gifProtoFuzzer.ApplicationExtension appExt = 3; |
4612 | | {PROTOBUF_FIELD_OFFSET(ImageChunk, _impl_.chunk_oneof_.appext_), _Internal::kOneofCaseOffset + 0, 2, |
4613 | | (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, |
4614 | | // .gifProtoFuzzer.CommentExtension comExt = 4; |
4615 | | {PROTOBUF_FIELD_OFFSET(ImageChunk, _impl_.chunk_oneof_.comext_), _Internal::kOneofCaseOffset + 0, 3, |
4616 | | (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, |
4617 | | }}, {{ |
4618 | | {::_pbi::TcParser::GetTable<::gifProtoFuzzer::BasicChunk>()}, |
4619 | | {::_pbi::TcParser::GetTable<::gifProtoFuzzer::PlainTextExtension>()}, |
4620 | | {::_pbi::TcParser::GetTable<::gifProtoFuzzer::ApplicationExtension>()}, |
4621 | | {::_pbi::TcParser::GetTable<::gifProtoFuzzer::CommentExtension>()}, |
4622 | | }}, {{ |
4623 | | }}, |
4624 | | }; |
4625 | | |
4626 | 30.6k | PROTOBUF_NOINLINE void ImageChunk::Clear() { |
4627 | | // @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.ImageChunk) |
4628 | 30.6k | ::google::protobuf::internal::TSanWrite(&_impl_); |
4629 | 30.6k | ::uint32_t cached_has_bits = 0; |
4630 | | // Prevent compiler warnings about cached_has_bits being unused |
4631 | 30.6k | (void) cached_has_bits; |
4632 | | |
4633 | 30.6k | clear_chunk_oneof(); |
4634 | 30.6k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
4635 | 30.6k | } |
4636 | | |
4637 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4638 | | ::uint8_t* ImageChunk::_InternalSerialize( |
4639 | | const MessageLite& base, ::uint8_t* target, |
4640 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
4641 | | const ImageChunk& this_ = static_cast<const ImageChunk&>(base); |
4642 | | #else // PROTOBUF_CUSTOM_VTABLE |
4643 | | ::uint8_t* ImageChunk::_InternalSerialize( |
4644 | | ::uint8_t* target, |
4645 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
4646 | 0 | const ImageChunk& this_ = *this; |
4647 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4648 | | // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.ImageChunk) |
4649 | 0 | ::uint32_t cached_has_bits = 0; |
4650 | 0 | (void)cached_has_bits; |
4651 | |
|
4652 | 0 | switch (this_.chunk_oneof_case()) { |
4653 | 0 | case kBasic: { |
4654 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
4655 | 0 | 1, *this_._impl_.chunk_oneof_.basic_, this_._impl_.chunk_oneof_.basic_->GetCachedSize(), target, |
4656 | 0 | stream); |
4657 | 0 | break; |
4658 | 0 | } |
4659 | 0 | case kPlaintext: { |
4660 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
4661 | 0 | 2, *this_._impl_.chunk_oneof_.plaintext_, this_._impl_.chunk_oneof_.plaintext_->GetCachedSize(), target, |
4662 | 0 | stream); |
4663 | 0 | break; |
4664 | 0 | } |
4665 | 0 | case kAppExt: { |
4666 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
4667 | 0 | 3, *this_._impl_.chunk_oneof_.appext_, this_._impl_.chunk_oneof_.appext_->GetCachedSize(), target, |
4668 | 0 | stream); |
4669 | 0 | break; |
4670 | 0 | } |
4671 | 0 | case kComExt: { |
4672 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
4673 | 0 | 4, *this_._impl_.chunk_oneof_.comext_, this_._impl_.chunk_oneof_.comext_->GetCachedSize(), target, |
4674 | 0 | stream); |
4675 | 0 | break; |
4676 | 0 | } |
4677 | 0 | default: |
4678 | 0 | break; |
4679 | 0 | } |
4680 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
4681 | 0 | target = |
4682 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
4683 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
4684 | 0 | } |
4685 | | // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.ImageChunk) |
4686 | 0 | return target; |
4687 | 0 | } |
4688 | | |
4689 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4690 | | ::size_t ImageChunk::ByteSizeLong(const MessageLite& base) { |
4691 | | const ImageChunk& this_ = static_cast<const ImageChunk&>(base); |
4692 | | #else // PROTOBUF_CUSTOM_VTABLE |
4693 | 0 | ::size_t ImageChunk::ByteSizeLong() const { |
4694 | 0 | const ImageChunk& this_ = *this; |
4695 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4696 | | // @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.ImageChunk) |
4697 | 0 | ::size_t total_size = 0; |
4698 | |
|
4699 | 0 | ::uint32_t cached_has_bits = 0; |
4700 | | // Prevent compiler warnings about cached_has_bits being unused |
4701 | 0 | (void)cached_has_bits; |
4702 | |
|
4703 | 0 | switch (this_.chunk_oneof_case()) { |
4704 | | // .gifProtoFuzzer.BasicChunk basic = 1; |
4705 | 0 | case kBasic: { |
4706 | 0 | total_size += 1 + |
4707 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.chunk_oneof_.basic_); |
4708 | 0 | break; |
4709 | 0 | } |
4710 | | // .gifProtoFuzzer.PlainTextExtension plaintext = 2; |
4711 | 0 | case kPlaintext: { |
4712 | 0 | total_size += 1 + |
4713 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.chunk_oneof_.plaintext_); |
4714 | 0 | break; |
4715 | 0 | } |
4716 | | // .gifProtoFuzzer.ApplicationExtension appExt = 3; |
4717 | 0 | case kAppExt: { |
4718 | 0 | total_size += 1 + |
4719 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.chunk_oneof_.appext_); |
4720 | 0 | break; |
4721 | 0 | } |
4722 | | // .gifProtoFuzzer.CommentExtension comExt = 4; |
4723 | 0 | case kComExt: { |
4724 | 0 | total_size += 1 + |
4725 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.chunk_oneof_.comext_); |
4726 | 0 | break; |
4727 | 0 | } |
4728 | 0 | case CHUNK_ONEOF_NOT_SET: { |
4729 | 0 | break; |
4730 | 0 | } |
4731 | 0 | } |
4732 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
4733 | 0 | &this_._impl_._cached_size_); |
4734 | 0 | } |
4735 | | |
4736 | 0 | void ImageChunk::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
4737 | 0 | auto* const _this = static_cast<ImageChunk*>(&to_msg); |
4738 | 0 | auto& from = static_cast<const ImageChunk&>(from_msg); |
4739 | 0 | ::google::protobuf::Arena* arena = _this->GetArena(); |
4740 | | // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.ImageChunk) |
4741 | 0 | ABSL_DCHECK_NE(&from, _this); |
4742 | 0 | ::uint32_t cached_has_bits = 0; |
4743 | 0 | (void) cached_has_bits; |
4744 | |
|
4745 | 0 | if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { |
4746 | 0 | const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; |
4747 | 0 | const bool oneof_needs_init = oneof_to_case != oneof_from_case; |
4748 | 0 | if (oneof_needs_init) { |
4749 | 0 | if (oneof_to_case != 0) { |
4750 | 0 | _this->clear_chunk_oneof(); |
4751 | 0 | } |
4752 | 0 | _this->_impl_._oneof_case_[0] = oneof_from_case; |
4753 | 0 | } |
4754 | |
|
4755 | 0 | switch (oneof_from_case) { |
4756 | 0 | case kBasic: { |
4757 | 0 | if (oneof_needs_init) { |
4758 | 0 | _this->_impl_.chunk_oneof_.basic_ = |
4759 | 0 | ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::BasicChunk>(arena, *from._impl_.chunk_oneof_.basic_); |
4760 | 0 | } else { |
4761 | 0 | _this->_impl_.chunk_oneof_.basic_->MergeFrom(from._internal_basic()); |
4762 | 0 | } |
4763 | 0 | break; |
4764 | 0 | } |
4765 | 0 | case kPlaintext: { |
4766 | 0 | if (oneof_needs_init) { |
4767 | 0 | _this->_impl_.chunk_oneof_.plaintext_ = |
4768 | 0 | ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::PlainTextExtension>(arena, *from._impl_.chunk_oneof_.plaintext_); |
4769 | 0 | } else { |
4770 | 0 | _this->_impl_.chunk_oneof_.plaintext_->MergeFrom(from._internal_plaintext()); |
4771 | 0 | } |
4772 | 0 | break; |
4773 | 0 | } |
4774 | 0 | case kAppExt: { |
4775 | 0 | if (oneof_needs_init) { |
4776 | 0 | _this->_impl_.chunk_oneof_.appext_ = |
4777 | 0 | ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::ApplicationExtension>(arena, *from._impl_.chunk_oneof_.appext_); |
4778 | 0 | } else { |
4779 | 0 | _this->_impl_.chunk_oneof_.appext_->MergeFrom(from._internal_appext()); |
4780 | 0 | } |
4781 | 0 | break; |
4782 | 0 | } |
4783 | 0 | case kComExt: { |
4784 | 0 | if (oneof_needs_init) { |
4785 | 0 | _this->_impl_.chunk_oneof_.comext_ = |
4786 | 0 | ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::CommentExtension>(arena, *from._impl_.chunk_oneof_.comext_); |
4787 | 0 | } else { |
4788 | 0 | _this->_impl_.chunk_oneof_.comext_->MergeFrom(from._internal_comext()); |
4789 | 0 | } |
4790 | 0 | break; |
4791 | 0 | } |
4792 | 0 | case CHUNK_ONEOF_NOT_SET: |
4793 | 0 | break; |
4794 | 0 | } |
4795 | 0 | } |
4796 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
4797 | 0 | } |
4798 | | |
4799 | 0 | void ImageChunk::CopyFrom(const ImageChunk& from) { |
4800 | | // @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.ImageChunk) |
4801 | 0 | if (&from == this) return; |
4802 | 0 | Clear(); |
4803 | 0 | MergeFrom(from); |
4804 | 0 | } |
4805 | | |
4806 | | PROTOBUF_NOINLINE bool ImageChunk::IsInitializedImpl( |
4807 | 0 | const MessageLite& msg) { |
4808 | 0 | auto& this_ = static_cast<const ImageChunk&>(msg); |
4809 | 0 | switch (this_.chunk_oneof_case()) { |
4810 | 0 | case kBasic: { |
4811 | 0 | if (this_.chunk_oneof_case() == kBasic && !this_._impl_.chunk_oneof_.basic_->IsInitialized()) |
4812 | 0 | return false; |
4813 | 0 | break; |
4814 | 0 | } |
4815 | 0 | case kPlaintext: { |
4816 | 0 | if (this_.chunk_oneof_case() == kPlaintext && !this_._impl_.chunk_oneof_.plaintext_->IsInitialized()) |
4817 | 0 | return false; |
4818 | 0 | break; |
4819 | 0 | } |
4820 | 0 | case kAppExt: { |
4821 | 0 | if (this_.chunk_oneof_case() == kAppExt && !this_._impl_.chunk_oneof_.appext_->IsInitialized()) |
4822 | 0 | return false; |
4823 | 0 | break; |
4824 | 0 | } |
4825 | 0 | case kComExt: { |
4826 | 0 | if (this_.chunk_oneof_case() == kComExt && !this_._impl_.chunk_oneof_.comext_->IsInitialized()) |
4827 | 0 | return false; |
4828 | 0 | break; |
4829 | 0 | } |
4830 | 0 | case CHUNK_ONEOF_NOT_SET: { |
4831 | 0 | break; |
4832 | 0 | } |
4833 | 0 | } |
4834 | 0 | return true; |
4835 | 0 | } |
4836 | | |
4837 | 0 | void ImageChunk::InternalSwap(ImageChunk* PROTOBUF_RESTRICT other) { |
4838 | 0 | using std::swap; |
4839 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
4840 | 0 | swap(_impl_.chunk_oneof_, other->_impl_.chunk_oneof_); |
4841 | 0 | swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); |
4842 | 0 | } |
4843 | | |
4844 | 0 | ::google::protobuf::Metadata ImageChunk::GetMetadata() const { |
4845 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
4846 | 0 | } |
4847 | | // =================================================================== |
4848 | | |
4849 | | class GifProto::_Internal { |
4850 | | public: |
4851 | | using HasBits = |
4852 | | decltype(std::declval<GifProto>()._impl_._has_bits_); |
4853 | | static constexpr ::int32_t kHasBitsOffset = |
4854 | | 8 * PROTOBUF_FIELD_OFFSET(GifProto, _impl_._has_bits_); |
4855 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
4856 | 0 | return ((has_bits[0] & 0x0000000f) ^ 0x0000000f) != 0; |
4857 | 0 | } |
4858 | | }; |
4859 | | |
4860 | | GifProto::GifProto(::google::protobuf::Arena* arena) |
4861 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4862 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
4863 | | #else // PROTOBUF_CUSTOM_VTABLE |
4864 | 1.12k | : ::google::protobuf::Message(arena) { |
4865 | 1.12k | #endif // PROTOBUF_CUSTOM_VTABLE |
4866 | 1.12k | SharedCtor(arena); |
4867 | | // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.GifProto) |
4868 | 1.12k | } |
4869 | | inline PROTOBUF_NDEBUG_INLINE GifProto::Impl_::Impl_( |
4870 | | ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
4871 | | const Impl_& from, const ::gifProtoFuzzer::GifProto& from_msg) |
4872 | 0 | : _has_bits_{from._has_bits_}, |
4873 | 0 | _cached_size_{0}, |
4874 | 0 | chunks_{visibility, arena, from.chunks_} {} |
4875 | | |
4876 | | GifProto::GifProto( |
4877 | | ::google::protobuf::Arena* arena, |
4878 | | const GifProto& from) |
4879 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4880 | | : ::google::protobuf::Message(arena, _class_data_.base()) { |
4881 | | #else // PROTOBUF_CUSTOM_VTABLE |
4882 | 0 | : ::google::protobuf::Message(arena) { |
4883 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
4884 | 0 | GifProto* const _this = this; |
4885 | 0 | (void)_this; |
4886 | 0 | _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
4887 | 0 | from._internal_metadata_); |
4888 | 0 | new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); |
4889 | 0 | ::uint32_t cached_has_bits = _impl_._has_bits_[0]; |
4890 | 0 | _impl_.header_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::Header>( |
4891 | 0 | arena, *from._impl_.header_) |
4892 | 0 | : nullptr; |
4893 | 0 | _impl_.lsd_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::LogicalScreenDescriptor>( |
4894 | 0 | arena, *from._impl_.lsd_) |
4895 | 0 | : nullptr; |
4896 | 0 | _impl_.gct_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::GlobalColorTable>( |
4897 | 0 | arena, *from._impl_.gct_) |
4898 | 0 | : nullptr; |
4899 | 0 | _impl_.trailer_ = (cached_has_bits & 0x00000008u) ? ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::Trailer>( |
4900 | 0 | arena, *from._impl_.trailer_) |
4901 | 0 | : nullptr; |
4902 | | |
4903 | | // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.GifProto) |
4904 | 0 | } |
4905 | | inline PROTOBUF_NDEBUG_INLINE GifProto::Impl_::Impl_( |
4906 | | ::google::protobuf::internal::InternalVisibility visibility, |
4907 | | ::google::protobuf::Arena* arena) |
4908 | 1.12k | : _cached_size_{0}, |
4909 | 1.12k | chunks_{visibility, arena} {} |
4910 | | |
4911 | 1.12k | inline void GifProto::SharedCtor(::_pb::Arena* arena) { |
4912 | 1.12k | new (&_impl_) Impl_(internal_visibility(), arena); |
4913 | 1.12k | ::memset(reinterpret_cast<char *>(&_impl_) + |
4914 | 1.12k | offsetof(Impl_, header_), |
4915 | 1.12k | 0, |
4916 | 1.12k | offsetof(Impl_, trailer_) - |
4917 | 1.12k | offsetof(Impl_, header_) + |
4918 | 1.12k | sizeof(Impl_::trailer_)); |
4919 | 1.12k | } |
4920 | 1.12k | GifProto::~GifProto() { |
4921 | | // @@protoc_insertion_point(destructor:gifProtoFuzzer.GifProto) |
4922 | 1.12k | SharedDtor(*this); |
4923 | 1.12k | } |
4924 | 1.12k | inline void GifProto::SharedDtor(MessageLite& self) { |
4925 | 1.12k | GifProto& this_ = static_cast<GifProto&>(self); |
4926 | 1.12k | this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); |
4927 | 1.12k | ABSL_DCHECK(this_.GetArena() == nullptr); |
4928 | 1.12k | delete this_._impl_.header_; |
4929 | 1.12k | delete this_._impl_.lsd_; |
4930 | 1.12k | delete this_._impl_.gct_; |
4931 | 1.12k | delete this_._impl_.trailer_; |
4932 | 1.12k | this_._impl_.~Impl_(); |
4933 | 1.12k | } |
4934 | | |
4935 | | inline void* GifProto::PlacementNew_(const void*, void* mem, |
4936 | 0 | ::google::protobuf::Arena* arena) { |
4937 | 0 | return ::new (mem) GifProto(arena); |
4938 | 0 | } |
4939 | 0 | constexpr auto GifProto::InternalNewImpl_() { |
4940 | 0 | constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ |
4941 | 0 | PROTOBUF_FIELD_OFFSET(GifProto, _impl_.chunks_) + |
4942 | 0 | decltype(GifProto::_impl_.chunks_):: |
4943 | 0 | InternalGetArenaOffset( |
4944 | 0 | ::google::protobuf::Message::internal_visibility()), |
4945 | 0 | }); |
4946 | 0 | if (arena_bits.has_value()) { |
4947 | 0 | return ::google::protobuf::internal::MessageCreator::ZeroInit( |
4948 | 0 | sizeof(GifProto), alignof(GifProto), *arena_bits); |
4949 | 0 | } else { |
4950 | 0 | return ::google::protobuf::internal::MessageCreator(&GifProto::PlacementNew_, |
4951 | 0 | sizeof(GifProto), |
4952 | 0 | alignof(GifProto)); |
4953 | 0 | } |
4954 | 0 | } |
4955 | | PROTOBUF_CONSTINIT |
4956 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
4957 | | const ::google::protobuf::internal::ClassDataFull GifProto::_class_data_ = { |
4958 | | ::google::protobuf::internal::ClassData{ |
4959 | | &_GifProto_default_instance_._instance, |
4960 | | &_table_.header, |
4961 | | nullptr, // OnDemandRegisterArenaDtor |
4962 | | GifProto::IsInitializedImpl, |
4963 | | &GifProto::MergeImpl, |
4964 | | ::google::protobuf::Message::GetNewImpl<GifProto>(), |
4965 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
4966 | | &GifProto::SharedDtor, |
4967 | | ::google::protobuf::Message::GetClearImpl<GifProto>(), &GifProto::ByteSizeLong, |
4968 | | &GifProto::_InternalSerialize, |
4969 | | #endif // PROTOBUF_CUSTOM_VTABLE |
4970 | | PROTOBUF_FIELD_OFFSET(GifProto, _impl_._cached_size_), |
4971 | | false, |
4972 | | }, |
4973 | | &GifProto::kDescriptorMethods, |
4974 | | &descriptor_table_gif_5ffuzz_5fproto_2eproto, |
4975 | | nullptr, // tracker |
4976 | | }; |
4977 | 125k | const ::google::protobuf::internal::ClassData* GifProto::GetClassData() const { |
4978 | 125k | ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); |
4979 | 125k | ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); |
4980 | 125k | return _class_data_.base(); |
4981 | 125k | } |
4982 | | PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 |
4983 | | const ::_pbi::TcParseTable<3, 5, 5, 0, 2> GifProto::_table_ = { |
4984 | | { |
4985 | | PROTOBUF_FIELD_OFFSET(GifProto, _impl_._has_bits_), |
4986 | | 0, // no _extensions_ |
4987 | | 5, 56, // max_field_number, fast_idx_mask |
4988 | | offsetof(decltype(_table_), field_lookup_table), |
4989 | | 4294967264, // skipmap |
4990 | | offsetof(decltype(_table_), field_entries), |
4991 | | 5, // num_field_entries |
4992 | | 5, // num_aux_entries |
4993 | | offsetof(decltype(_table_), aux_entries), |
4994 | | _class_data_.base(), |
4995 | | nullptr, // post_loop_handler |
4996 | | ::_pbi::TcParser::GenericFallback, // fallback |
4997 | | #ifdef PROTOBUF_PREFETCH_PARSE_TABLE |
4998 | | ::_pbi::TcParser::GetTable<::gifProtoFuzzer::GifProto>(), // to_prefetch |
4999 | | #endif // PROTOBUF_PREFETCH_PARSE_TABLE |
5000 | | }, {{ |
5001 | | {::_pbi::TcParser::MiniParse, {}}, |
5002 | | // required .gifProtoFuzzer.Header header = 1; |
5003 | | {::_pbi::TcParser::FastMtS1, |
5004 | | {10, 0, 0, PROTOBUF_FIELD_OFFSET(GifProto, _impl_.header_)}}, |
5005 | | // required .gifProtoFuzzer.LogicalScreenDescriptor lsd = 2; |
5006 | | {::_pbi::TcParser::FastMtS1, |
5007 | | {18, 1, 1, PROTOBUF_FIELD_OFFSET(GifProto, _impl_.lsd_)}}, |
5008 | | // required .gifProtoFuzzer.GlobalColorTable gct = 3; |
5009 | | {::_pbi::TcParser::FastMtS1, |
5010 | | {26, 2, 2, PROTOBUF_FIELD_OFFSET(GifProto, _impl_.gct_)}}, |
5011 | | // repeated .gifProtoFuzzer.ImageChunk chunks = 4; |
5012 | | {::_pbi::TcParser::FastMtR1, |
5013 | | {34, 63, 3, PROTOBUF_FIELD_OFFSET(GifProto, _impl_.chunks_)}}, |
5014 | | // required .gifProtoFuzzer.Trailer trailer = 5; |
5015 | | {::_pbi::TcParser::FastMtS1, |
5016 | | {42, 3, 4, PROTOBUF_FIELD_OFFSET(GifProto, _impl_.trailer_)}}, |
5017 | | {::_pbi::TcParser::MiniParse, {}}, |
5018 | | {::_pbi::TcParser::MiniParse, {}}, |
5019 | | }}, {{ |
5020 | | 65535, 65535 |
5021 | | }}, {{ |
5022 | | // required .gifProtoFuzzer.Header header = 1; |
5023 | | {PROTOBUF_FIELD_OFFSET(GifProto, _impl_.header_), _Internal::kHasBitsOffset + 0, 0, |
5024 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
5025 | | // required .gifProtoFuzzer.LogicalScreenDescriptor lsd = 2; |
5026 | | {PROTOBUF_FIELD_OFFSET(GifProto, _impl_.lsd_), _Internal::kHasBitsOffset + 1, 1, |
5027 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
5028 | | // required .gifProtoFuzzer.GlobalColorTable gct = 3; |
5029 | | {PROTOBUF_FIELD_OFFSET(GifProto, _impl_.gct_), _Internal::kHasBitsOffset + 2, 2, |
5030 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
5031 | | // repeated .gifProtoFuzzer.ImageChunk chunks = 4; |
5032 | | {PROTOBUF_FIELD_OFFSET(GifProto, _impl_.chunks_), -1, 3, |
5033 | | (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
5034 | | // required .gifProtoFuzzer.Trailer trailer = 5; |
5035 | | {PROTOBUF_FIELD_OFFSET(GifProto, _impl_.trailer_), _Internal::kHasBitsOffset + 3, 4, |
5036 | | (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
5037 | | }}, {{ |
5038 | | {::_pbi::TcParser::GetTable<::gifProtoFuzzer::Header>()}, |
5039 | | {::_pbi::TcParser::GetTable<::gifProtoFuzzer::LogicalScreenDescriptor>()}, |
5040 | | {::_pbi::TcParser::GetTable<::gifProtoFuzzer::GlobalColorTable>()}, |
5041 | | {::_pbi::TcParser::GetTable<::gifProtoFuzzer::ImageChunk>()}, |
5042 | | {::_pbi::TcParser::GetTable<::gifProtoFuzzer::Trailer>()}, |
5043 | | }}, {{ |
5044 | | }}, |
5045 | | }; |
5046 | | |
5047 | 2.37k | PROTOBUF_NOINLINE void GifProto::Clear() { |
5048 | | // @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.GifProto) |
5049 | 2.37k | ::google::protobuf::internal::TSanWrite(&_impl_); |
5050 | 2.37k | ::uint32_t cached_has_bits = 0; |
5051 | | // Prevent compiler warnings about cached_has_bits being unused |
5052 | 2.37k | (void) cached_has_bits; |
5053 | | |
5054 | 2.37k | _impl_.chunks_.Clear(); |
5055 | 2.37k | cached_has_bits = _impl_._has_bits_[0]; |
5056 | 2.37k | if (cached_has_bits & 0x0000000fu) { |
5057 | 39 | if (cached_has_bits & 0x00000001u) { |
5058 | 20 | ABSL_DCHECK(_impl_.header_ != nullptr); |
5059 | 20 | _impl_.header_->Clear(); |
5060 | 20 | } |
5061 | 39 | if (cached_has_bits & 0x00000002u) { |
5062 | 24 | ABSL_DCHECK(_impl_.lsd_ != nullptr); |
5063 | 24 | _impl_.lsd_->Clear(); |
5064 | 24 | } |
5065 | 39 | if (cached_has_bits & 0x00000004u) { |
5066 | 22 | ABSL_DCHECK(_impl_.gct_ != nullptr); |
5067 | 22 | _impl_.gct_->Clear(); |
5068 | 22 | } |
5069 | 39 | if (cached_has_bits & 0x00000008u) { |
5070 | 8 | ABSL_DCHECK(_impl_.trailer_ != nullptr); |
5071 | 8 | _impl_.trailer_->Clear(); |
5072 | 8 | } |
5073 | 39 | } |
5074 | 2.37k | _impl_._has_bits_.Clear(); |
5075 | 2.37k | _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
5076 | 2.37k | } |
5077 | | |
5078 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
5079 | | ::uint8_t* GifProto::_InternalSerialize( |
5080 | | const MessageLite& base, ::uint8_t* target, |
5081 | | ::google::protobuf::io::EpsCopyOutputStream* stream) { |
5082 | | const GifProto& this_ = static_cast<const GifProto&>(base); |
5083 | | #else // PROTOBUF_CUSTOM_VTABLE |
5084 | | ::uint8_t* GifProto::_InternalSerialize( |
5085 | | ::uint8_t* target, |
5086 | 0 | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
5087 | 0 | const GifProto& this_ = *this; |
5088 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
5089 | | // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.GifProto) |
5090 | 0 | ::uint32_t cached_has_bits = 0; |
5091 | 0 | (void)cached_has_bits; |
5092 | |
|
5093 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
5094 | | // required .gifProtoFuzzer.Header header = 1; |
5095 | 0 | if (cached_has_bits & 0x00000001u) { |
5096 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
5097 | 0 | 1, *this_._impl_.header_, this_._impl_.header_->GetCachedSize(), target, |
5098 | 0 | stream); |
5099 | 0 | } |
5100 | | |
5101 | | // required .gifProtoFuzzer.LogicalScreenDescriptor lsd = 2; |
5102 | 0 | if (cached_has_bits & 0x00000002u) { |
5103 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
5104 | 0 | 2, *this_._impl_.lsd_, this_._impl_.lsd_->GetCachedSize(), target, |
5105 | 0 | stream); |
5106 | 0 | } |
5107 | | |
5108 | | // required .gifProtoFuzzer.GlobalColorTable gct = 3; |
5109 | 0 | if (cached_has_bits & 0x00000004u) { |
5110 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
5111 | 0 | 3, *this_._impl_.gct_, this_._impl_.gct_->GetCachedSize(), target, |
5112 | 0 | stream); |
5113 | 0 | } |
5114 | | |
5115 | | // repeated .gifProtoFuzzer.ImageChunk chunks = 4; |
5116 | 0 | for (unsigned i = 0, n = static_cast<unsigned>( |
5117 | 0 | this_._internal_chunks_size()); |
5118 | 0 | i < n; i++) { |
5119 | 0 | const auto& repfield = this_._internal_chunks().Get(i); |
5120 | 0 | target = |
5121 | 0 | ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
5122 | 0 | 4, repfield, repfield.GetCachedSize(), |
5123 | 0 | target, stream); |
5124 | 0 | } |
5125 | | |
5126 | | // required .gifProtoFuzzer.Trailer trailer = 5; |
5127 | 0 | if (cached_has_bits & 0x00000008u) { |
5128 | 0 | target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( |
5129 | 0 | 5, *this_._impl_.trailer_, this_._impl_.trailer_->GetCachedSize(), target, |
5130 | 0 | stream); |
5131 | 0 | } |
5132 | |
|
5133 | 0 | if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { |
5134 | 0 | target = |
5135 | 0 | ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
5136 | 0 | this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); |
5137 | 0 | } |
5138 | | // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.GifProto) |
5139 | 0 | return target; |
5140 | 0 | } |
5141 | | |
5142 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
5143 | | ::size_t GifProto::ByteSizeLong(const MessageLite& base) { |
5144 | | const GifProto& this_ = static_cast<const GifProto&>(base); |
5145 | | #else // PROTOBUF_CUSTOM_VTABLE |
5146 | 0 | ::size_t GifProto::ByteSizeLong() const { |
5147 | 0 | const GifProto& this_ = *this; |
5148 | 0 | #endif // PROTOBUF_CUSTOM_VTABLE |
5149 | | // @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.GifProto) |
5150 | 0 | ::size_t total_size = 0; |
5151 | |
|
5152 | 0 | ::uint32_t cached_has_bits = 0; |
5153 | | // Prevent compiler warnings about cached_has_bits being unused |
5154 | 0 | (void)cached_has_bits; |
5155 | |
|
5156 | 0 | ::_pbi::Prefetch5LinesFrom7Lines(&this_); |
5157 | 0 | { |
5158 | | // repeated .gifProtoFuzzer.ImageChunk chunks = 4; |
5159 | 0 | { |
5160 | 0 | total_size += 1UL * this_._internal_chunks_size(); |
5161 | 0 | for (const auto& msg : this_._internal_chunks()) { |
5162 | 0 | total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); |
5163 | 0 | } |
5164 | 0 | } |
5165 | 0 | } |
5166 | 0 | cached_has_bits = this_._impl_._has_bits_[0]; |
5167 | 0 | if (cached_has_bits & 0x0000000fu) { |
5168 | | // required .gifProtoFuzzer.Header header = 1; |
5169 | 0 | if (cached_has_bits & 0x00000001u) { |
5170 | 0 | total_size += 1 + |
5171 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.header_); |
5172 | 0 | } |
5173 | | // required .gifProtoFuzzer.LogicalScreenDescriptor lsd = 2; |
5174 | 0 | if (cached_has_bits & 0x00000002u) { |
5175 | 0 | total_size += 1 + |
5176 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.lsd_); |
5177 | 0 | } |
5178 | | // required .gifProtoFuzzer.GlobalColorTable gct = 3; |
5179 | 0 | if (cached_has_bits & 0x00000004u) { |
5180 | 0 | total_size += 1 + |
5181 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.gct_); |
5182 | 0 | } |
5183 | | // required .gifProtoFuzzer.Trailer trailer = 5; |
5184 | 0 | if (cached_has_bits & 0x00000008u) { |
5185 | 0 | total_size += 1 + |
5186 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.trailer_); |
5187 | 0 | } |
5188 | 0 | } |
5189 | 0 | return this_.MaybeComputeUnknownFieldsSize(total_size, |
5190 | 0 | &this_._impl_._cached_size_); |
5191 | 0 | } |
5192 | | |
5193 | 0 | void GifProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { |
5194 | 0 | auto* const _this = static_cast<GifProto*>(&to_msg); |
5195 | 0 | auto& from = static_cast<const GifProto&>(from_msg); |
5196 | 0 | ::google::protobuf::Arena* arena = _this->GetArena(); |
5197 | | // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.GifProto) |
5198 | 0 | ABSL_DCHECK_NE(&from, _this); |
5199 | 0 | ::uint32_t cached_has_bits = 0; |
5200 | 0 | (void) cached_has_bits; |
5201 | |
|
5202 | 0 | _this->_internal_mutable_chunks()->MergeFrom( |
5203 | 0 | from._internal_chunks()); |
5204 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
5205 | 0 | if (cached_has_bits & 0x0000000fu) { |
5206 | 0 | if (cached_has_bits & 0x00000001u) { |
5207 | 0 | ABSL_DCHECK(from._impl_.header_ != nullptr); |
5208 | 0 | if (_this->_impl_.header_ == nullptr) { |
5209 | 0 | _this->_impl_.header_ = |
5210 | 0 | ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::Header>(arena, *from._impl_.header_); |
5211 | 0 | } else { |
5212 | 0 | _this->_impl_.header_->MergeFrom(*from._impl_.header_); |
5213 | 0 | } |
5214 | 0 | } |
5215 | 0 | if (cached_has_bits & 0x00000002u) { |
5216 | 0 | ABSL_DCHECK(from._impl_.lsd_ != nullptr); |
5217 | 0 | if (_this->_impl_.lsd_ == nullptr) { |
5218 | 0 | _this->_impl_.lsd_ = |
5219 | 0 | ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::LogicalScreenDescriptor>(arena, *from._impl_.lsd_); |
5220 | 0 | } else { |
5221 | 0 | _this->_impl_.lsd_->MergeFrom(*from._impl_.lsd_); |
5222 | 0 | } |
5223 | 0 | } |
5224 | 0 | if (cached_has_bits & 0x00000004u) { |
5225 | 0 | ABSL_DCHECK(from._impl_.gct_ != nullptr); |
5226 | 0 | if (_this->_impl_.gct_ == nullptr) { |
5227 | 0 | _this->_impl_.gct_ = |
5228 | 0 | ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::GlobalColorTable>(arena, *from._impl_.gct_); |
5229 | 0 | } else { |
5230 | 0 | _this->_impl_.gct_->MergeFrom(*from._impl_.gct_); |
5231 | 0 | } |
5232 | 0 | } |
5233 | 0 | if (cached_has_bits & 0x00000008u) { |
5234 | 0 | ABSL_DCHECK(from._impl_.trailer_ != nullptr); |
5235 | 0 | if (_this->_impl_.trailer_ == nullptr) { |
5236 | 0 | _this->_impl_.trailer_ = |
5237 | 0 | ::google::protobuf::Message::CopyConstruct<::gifProtoFuzzer::Trailer>(arena, *from._impl_.trailer_); |
5238 | 0 | } else { |
5239 | 0 | _this->_impl_.trailer_->MergeFrom(*from._impl_.trailer_); |
5240 | 0 | } |
5241 | 0 | } |
5242 | 0 | } |
5243 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
5244 | 0 | _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); |
5245 | 0 | } |
5246 | | |
5247 | 0 | void GifProto::CopyFrom(const GifProto& from) { |
5248 | | // @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.GifProto) |
5249 | 0 | if (&from == this) return; |
5250 | 0 | Clear(); |
5251 | 0 | MergeFrom(from); |
5252 | 0 | } |
5253 | | |
5254 | | PROTOBUF_NOINLINE bool GifProto::IsInitializedImpl( |
5255 | 0 | const MessageLite& msg) { |
5256 | 0 | auto& this_ = static_cast<const GifProto&>(msg); |
5257 | 0 | if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { |
5258 | 0 | return false; |
5259 | 0 | } |
5260 | 0 | if (!::google::protobuf::internal::AllAreInitialized(this_._internal_chunks())) |
5261 | 0 | return false; |
5262 | 0 | if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { |
5263 | 0 | if (!this_._impl_.header_->IsInitialized()) return false; |
5264 | 0 | } |
5265 | 0 | if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { |
5266 | 0 | if (!this_._impl_.lsd_->IsInitialized()) return false; |
5267 | 0 | } |
5268 | 0 | if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { |
5269 | 0 | if (!this_._impl_.gct_->IsInitialized()) return false; |
5270 | 0 | } |
5271 | 0 | return true; |
5272 | 0 | } |
5273 | | |
5274 | 0 | void GifProto::InternalSwap(GifProto* PROTOBUF_RESTRICT other) { |
5275 | 0 | using std::swap; |
5276 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
5277 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
5278 | 0 | _impl_.chunks_.InternalSwap(&other->_impl_.chunks_); |
5279 | 0 | ::google::protobuf::internal::memswap< |
5280 | 0 | PROTOBUF_FIELD_OFFSET(GifProto, _impl_.trailer_) |
5281 | 0 | + sizeof(GifProto::_impl_.trailer_) |
5282 | 0 | - PROTOBUF_FIELD_OFFSET(GifProto, _impl_.header_)>( |
5283 | 0 | reinterpret_cast<char*>(&_impl_.header_), |
5284 | 0 | reinterpret_cast<char*>(&other->_impl_.header_)); |
5285 | 0 | } |
5286 | | |
5287 | 0 | ::google::protobuf::Metadata GifProto::GetMetadata() const { |
5288 | 0 | return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); |
5289 | 0 | } |
5290 | | // @@protoc_insertion_point(namespace_scope) |
5291 | | } // namespace gifProtoFuzzer |
5292 | | namespace google { |
5293 | | namespace protobuf { |
5294 | | } // namespace protobuf |
5295 | | } // namespace google |
5296 | | // @@protoc_insertion_point(global_scope) |
5297 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type |
5298 | | _static_init2_ PROTOBUF_UNUSED = |
5299 | | (::_pbi::AddDescriptors(&descriptor_table_gif_5ffuzz_5fproto_2eproto), |
5300 | | ::std::false_type{}); |
5301 | | #include "google/protobuf/port_undef.inc" |