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