Debian Codegraph @

benchmark/data_codec.go

raw
1 // +build go1.6
2 // +build use_codec
3 // +build !easyjson_nounsafe
4 // +build !appengine
5
6 // Code generated by codecgen - DO NOT EDIT.
7
8 package benchmark
9
10 import (
11 "errors"
12 codec1978 "github.com/ugorji/go/codec"
13 "runtime"
14 "strconv"
15 )
16
17 const (
18 // ----- content types ----
19 codecSelferCcUTF82736 = 1
20 codecSelferCcRAW2736 = 255
21 // ----- value types used ----
22 codecSelferValueTypeArray2736 = 10
23 codecSelferValueTypeMap2736 = 9
24 codecSelferValueTypeString2736 = 6
25 codecSelferValueTypeInt2736 = 2
26 codecSelferValueTypeUint2736 = 3
27 codecSelferValueTypeFloat2736 = 4
28 codecSelferValueTypeNil2736 = 1
29 codecSelferBitsize2736 = uint8(32 << (^uint(0) >> 63))
30 codecSelferDecContainerLenNil2736 = -2147483648
31 )
32
33 var (
34 errCodecSelferOnlyMapOrArrayEncodeToStruct2736 = errors.New(`only encoded map or array can be decoded into a struct`)
35 )
36
37 type codecSelfer2736 struct{}
38
39 func codecSelfer2736False() bool { return false }
40
41 func init() {
42 if codec1978.GenVersion != 16 {
43 _, file, _, _ := runtime.Caller(0)
44 ver := strconv.FormatInt(int64(codec1978.GenVersion), 10)
45 panic("codecgen version mismatch: current: 16, need " + ver + ". Re-generate file: " + file)
46 }
47 }
48
49 func (x *SearchMetadata) CodecEncodeSelf(e *codec1978.Encoder) {
50 var h codecSelfer2736
51 z, r := codec1978.GenHelperEncoder(e)
52 _, _, _ = h, z, r
53 if x == nil {
54 r.EncodeNil()
55 } else {
56 yysep2 := !z.EncBinary()
57 yy2arr2 := z.EncBasicHandle().StructToArray
58 _, _ = yysep2, yy2arr2
59 const yyr2 bool = false // struct tag has 'toArray'
60 if yyr2 || yy2arr2 {
61 z.EncWriteArrayStart(9)
62 z.EncWriteArrayElem()
63 r.EncodeFloat64(float64(x.CompletedIn))
64 z.EncWriteArrayElem()
65 r.EncodeInt(int64(x.Count))
66 z.EncWriteArrayElem()
67 r.EncodeInt(int64(x.MaxID))
68 z.EncWriteArrayElem()
69 r.EncodeString(string(x.MaxIDStr))
70 z.EncWriteArrayElem()
71 r.EncodeString(string(x.NextResults))
72 z.EncWriteArrayElem()
73 r.EncodeString(string(x.Query))
74 z.EncWriteArrayElem()
75 r.EncodeString(string(x.RefreshURL))
76 z.EncWriteArrayElem()
77 r.EncodeInt(int64(x.SinceID))
78 z.EncWriteArrayElem()
79 r.EncodeString(string(x.SinceIDStr))
80 z.EncWriteArrayEnd()
81 } else {
82 z.EncWriteMapStart(9)
83 z.EncWriteMapElemKey()
84 r.EncodeString(`completed_in`)
85 z.EncWriteMapElemValue()
86 r.EncodeFloat64(float64(x.CompletedIn))
87 z.EncWriteMapElemKey()
88 if z.IsJSONHandle() {
89 z.WriteStr("\"count\"")
90 } else {
91 r.EncodeString(`count`)
92 }
93 z.EncWriteMapElemValue()
94 r.EncodeInt(int64(x.Count))
95 z.EncWriteMapElemKey()
96 r.EncodeString(`max_id`)
97 z.EncWriteMapElemValue()
98 r.EncodeInt(int64(x.MaxID))
99 z.EncWriteMapElemKey()
100 r.EncodeString(`max_id_str`)
101 z.EncWriteMapElemValue()
102 r.EncodeString(string(x.MaxIDStr))
103 z.EncWriteMapElemKey()
104 r.EncodeString(`next_results`)
105 z.EncWriteMapElemValue()
106 r.EncodeString(string(x.NextResults))
107 z.EncWriteMapElemKey()
108 if z.IsJSONHandle() {
109 z.WriteStr("\"query\"")
110 } else {
111 r.EncodeString(`query`)
112 }
113 z.EncWriteMapElemValue()
114 r.EncodeString(string(x.Query))
115 z.EncWriteMapElemKey()
116 r.EncodeString(`refresh_url`)
117 z.EncWriteMapElemValue()
118 r.EncodeString(string(x.RefreshURL))
119 z.EncWriteMapElemKey()
120 r.EncodeString(`since_id`)
121 z.EncWriteMapElemValue()
122 r.EncodeInt(int64(x.SinceID))
123 z.EncWriteMapElemKey()
124 r.EncodeString(`since_id_str`)
125 z.EncWriteMapElemValue()
126 r.EncodeString(string(x.SinceIDStr))
127 z.EncWriteMapEnd()
128 }
129 }
130 }
131
132 func (x *SearchMetadata) CodecDecodeSelf(d *codec1978.Decoder) {
133 var h codecSelfer2736
134 z, r := codec1978.GenHelperDecoder(d)
135 _, _, _ = h, z, r
136 yyct2 := r.ContainerType()
137 if yyct2 == codecSelferValueTypeNil2736 {
138 *(x) = SearchMetadata{}
139 } else if yyct2 == codecSelferValueTypeMap2736 {
140 yyl2 := z.DecReadMapStart()
141 if yyl2 == 0 {
142 } else {
143 x.codecDecodeSelfFromMap(yyl2, d)
144 }
145 z.DecReadMapEnd()
146 } else if yyct2 == codecSelferValueTypeArray2736 {
147 yyl2 := z.DecReadArrayStart()
148 if yyl2 != 0 {
149 x.codecDecodeSelfFromArray(yyl2, d)
150 }
151 z.DecReadArrayEnd()
152 } else {
153 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct2736)
154 }
155 }
156
157 func (x *SearchMetadata) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
158 var h codecSelfer2736
159 z, r := codec1978.GenHelperDecoder(d)
160 _, _, _ = h, z, r
161 var yyhl3 bool = l >= 0
162 for yyj3 := 0; ; yyj3++ {
163 if yyhl3 {
164 if yyj3 >= l {
165 break
166 }
167 } else {
168 if z.DecCheckBreak() {
169 break
170 }
171 }
172 z.DecReadMapElemKey()
173 yys3 := z.StringView(r.DecodeStringAsBytes())
174 z.DecReadMapElemValue()
175 switch yys3 {
176 case "completed_in":
177 x.CompletedIn = (float64)(r.DecodeFloat64())
178 case "count":
179 x.Count = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize2736))
180 case "max_id":
181 x.MaxID = (int64)(r.DecodeInt64())
182 case "max_id_str":
183 x.MaxIDStr = (string)(string(r.DecodeStringAsBytes()))
184 case "next_results":
185 x.NextResults = (string)(string(r.DecodeStringAsBytes()))
186 case "query":
187 x.Query = (string)(string(r.DecodeStringAsBytes()))
188 case "refresh_url":
189 x.RefreshURL = (string)(string(r.DecodeStringAsBytes()))
190 case "since_id":
191 x.SinceID = (int64)(r.DecodeInt64())
192 case "since_id_str":
193 x.SinceIDStr = (string)(string(r.DecodeStringAsBytes()))
194 default:
195 z.DecStructFieldNotFound(-1, yys3)
196 } // end switch yys3
197 } // end for yyj3
198 }
199
200 func (x *SearchMetadata) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
201 var h codecSelfer2736
202 z, r := codec1978.GenHelperDecoder(d)
203 _, _, _ = h, z, r
204 var yyj13 int
205 var yyb13 bool
206 var yyhl13 bool = l >= 0
207 yyj13++
208 if yyhl13 {
209 yyb13 = yyj13 > l
210 } else {
211 yyb13 = z.DecCheckBreak()
212 }
213 if yyb13 {
214 z.DecReadArrayEnd()
215 return
216 }
217 z.DecReadArrayElem()
218 x.CompletedIn = (float64)(r.DecodeFloat64())
219 yyj13++
220 if yyhl13 {
221 yyb13 = yyj13 > l
222 } else {
223 yyb13 = z.DecCheckBreak()
224 }
225 if yyb13 {
226 z.DecReadArrayEnd()
227 return
228 }
229 z.DecReadArrayElem()
230 x.Count = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize2736))
231 yyj13++
232 if yyhl13 {
233 yyb13 = yyj13 > l
234 } else {
235 yyb13 = z.DecCheckBreak()
236 }
237 if yyb13 {
238 z.DecReadArrayEnd()
239 return
240 }
241 z.DecReadArrayElem()
242 x.MaxID = (int64)(r.DecodeInt64())
243 yyj13++
244 if yyhl13 {
245 yyb13 = yyj13 > l
246 } else {
247 yyb13 = z.DecCheckBreak()
248 }
249 if yyb13 {
250 z.DecReadArrayEnd()
251 return
252 }
253 z.DecReadArrayElem()
254 x.MaxIDStr = (string)(string(r.DecodeStringAsBytes()))
255 yyj13++
256 if yyhl13 {
257 yyb13 = yyj13 > l
258 } else {
259 yyb13 = z.DecCheckBreak()
260 }
261 if yyb13 {
262 z.DecReadArrayEnd()
263 return
264 }
265 z.DecReadArrayElem()
266 x.NextResults = (string)(string(r.DecodeStringAsBytes()))
267 yyj13++
268 if yyhl13 {
269 yyb13 = yyj13 > l
270 } else {
271 yyb13 = z.DecCheckBreak()
272 }
273 if yyb13 {
274 z.DecReadArrayEnd()
275 return
276 }
277 z.DecReadArrayElem()
278 x.Query = (string)(string(r.DecodeStringAsBytes()))
279 yyj13++
280 if yyhl13 {
281 yyb13 = yyj13 > l
282 } else {
283 yyb13 = z.DecCheckBreak()
284 }
285 if yyb13 {
286 z.DecReadArrayEnd()
287 return
288 }
289 z.DecReadArrayElem()
290 x.RefreshURL = (string)(string(r.DecodeStringAsBytes()))
291 yyj13++
292 if yyhl13 {
293 yyb13 = yyj13 > l
294 } else {
295 yyb13 = z.DecCheckBreak()
296 }
297 if yyb13 {
298 z.DecReadArrayEnd()
299 return
300 }
301 z.DecReadArrayElem()
302 x.SinceID = (int64)(r.DecodeInt64())
303 yyj13++
304 if yyhl13 {
305 yyb13 = yyj13 > l
306 } else {
307 yyb13 = z.DecCheckBreak()
308 }
309 if yyb13 {
310 z.DecReadArrayEnd()
311 return
312 }
313 z.DecReadArrayElem()
314 x.SinceIDStr = (string)(string(r.DecodeStringAsBytes()))
315 for {
316 yyj13++
317 if yyhl13 {
318 yyb13 = yyj13 > l
319 } else {
320 yyb13 = z.DecCheckBreak()
321 }
322 if yyb13 {
323 break
324 }
325 z.DecReadArrayElem()
326 z.DecStructFieldNotFound(yyj13-1, "")
327 }
328 }
329
330 func (x *Hashtag) CodecEncodeSelf(e *codec1978.Encoder) {
331 var h codecSelfer2736
332 z, r := codec1978.GenHelperEncoder(e)
333 _, _, _ = h, z, r
334 if x == nil {
335 r.EncodeNil()
336 } else {
337 yysep2 := !z.EncBinary()
338 yy2arr2 := z.EncBasicHandle().StructToArray
339 _, _ = yysep2, yy2arr2
340 const yyr2 bool = false // struct tag has 'toArray'
341 if yyr2 || yy2arr2 {
342 z.EncWriteArrayStart(2)
343 z.EncWriteArrayElem()
344 if x.Indices == nil {
345 r.EncodeNil()
346 } else {
347 z.F.EncSliceIntV(x.Indices, e)
348 } // end block: if x.Indices slice == nil
349 z.EncWriteArrayElem()
350 r.EncodeString(string(x.Text))
351 z.EncWriteArrayEnd()
352 } else {
353 z.EncWriteMapStart(2)
354 z.EncWriteMapElemKey()
355 if z.IsJSONHandle() {
356 z.WriteStr("\"indices\"")
357 } else {
358 r.EncodeString(`indices`)
359 }
360 z.EncWriteMapElemValue()
361 if x.Indices == nil {
362 r.EncodeNil()
363 } else {
364 z.F.EncSliceIntV(x.Indices, e)
365 } // end block: if x.Indices slice == nil
366 z.EncWriteMapElemKey()
367 if z.IsJSONHandle() {
368 z.WriteStr("\"text\"")
369 } else {
370 r.EncodeString(`text`)
371 }
372 z.EncWriteMapElemValue()
373 r.EncodeString(string(x.Text))
374 z.EncWriteMapEnd()
375 }
376 }
377 }
378
379 func (x *Hashtag) CodecDecodeSelf(d *codec1978.Decoder) {
380 var h codecSelfer2736
381 z, r := codec1978.GenHelperDecoder(d)
382 _, _, _ = h, z, r
383 yyct2 := r.ContainerType()
384 if yyct2 == codecSelferValueTypeNil2736 {
385 *(x) = Hashtag{}
386 } else if yyct2 == codecSelferValueTypeMap2736 {
387 yyl2 := z.DecReadMapStart()
388 if yyl2 == 0 {
389 } else {
390 x.codecDecodeSelfFromMap(yyl2, d)
391 }
392 z.DecReadMapEnd()
393 } else if yyct2 == codecSelferValueTypeArray2736 {
394 yyl2 := z.DecReadArrayStart()
395 if yyl2 != 0 {
396 x.codecDecodeSelfFromArray(yyl2, d)
397 }
398 z.DecReadArrayEnd()
399 } else {
400 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct2736)
401 }
402 }
403
404 func (x *Hashtag) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
405 var h codecSelfer2736
406 z, r := codec1978.GenHelperDecoder(d)
407 _, _, _ = h, z, r
408 var yyhl3 bool = l >= 0
409 for yyj3 := 0; ; yyj3++ {
410 if yyhl3 {
411 if yyj3 >= l {
412 break
413 }
414 } else {
415 if z.DecCheckBreak() {
416 break
417 }
418 }
419 z.DecReadMapElemKey()
420 yys3 := z.StringView(r.DecodeStringAsBytes())
421 z.DecReadMapElemValue()
422 switch yys3 {
423 case "indices":
424 z.F.DecSliceIntX(&x.Indices, d)
425 case "text":
426 x.Text = (string)(string(r.DecodeStringAsBytes()))
427 default:
428 z.DecStructFieldNotFound(-1, yys3)
429 } // end switch yys3
430 } // end for yyj3
431 }
432
433 func (x *Hashtag) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
434 var h codecSelfer2736
435 z, r := codec1978.GenHelperDecoder(d)
436 _, _, _ = h, z, r
437 var yyj7 int
438 var yyb7 bool
439 var yyhl7 bool = l >= 0
440 yyj7++
441 if yyhl7 {
442 yyb7 = yyj7 > l
443 } else {
444 yyb7 = z.DecCheckBreak()
445 }
446 if yyb7 {
447 z.DecReadArrayEnd()
448 return
449 }
450 z.DecReadArrayElem()
451 z.F.DecSliceIntX(&x.Indices, d)
452 yyj7++
453 if yyhl7 {
454 yyb7 = yyj7 > l
455 } else {
456 yyb7 = z.DecCheckBreak()
457 }
458 if yyb7 {
459 z.DecReadArrayEnd()
460 return
461 }
462 z.DecReadArrayElem()
463 x.Text = (string)(string(r.DecodeStringAsBytes()))
464 for {
465 yyj7++
466 if yyhl7 {
467 yyb7 = yyj7 > l
468 } else {
469 yyb7 = z.DecCheckBreak()
470 }
471 if yyb7 {
472 break
473 }
474 z.DecReadArrayElem()
475 z.DecStructFieldNotFound(yyj7-1, "")
476 }
477 }
478
479 func (x *Entities) CodecEncodeSelf(e *codec1978.Encoder) {
480 var h codecSelfer2736
481 z, r := codec1978.GenHelperEncoder(e)
482 _, _, _ = h, z, r
483 if x == nil {
484 r.EncodeNil()
485 } else {
486 yysep2 := !z.EncBinary()
487 yy2arr2 := z.EncBasicHandle().StructToArray
488 _, _ = yysep2, yy2arr2
489 const yyr2 bool = false // struct tag has 'toArray'
490 if yyr2 || yy2arr2 {
491 z.EncWriteArrayStart(3)
492 z.EncWriteArrayElem()
493 if x.Hashtags == nil {
494 r.EncodeNil()
495 } else {
496 h.encSliceHashtag(([]Hashtag)(x.Hashtags), e)
497 } // end block: if x.Hashtags slice == nil
498 z.EncWriteArrayElem()
499 if x.Urls == nil {
500 r.EncodeNil()
501 } else {
502 h.encSlicePtrtostring(([]*string)(x.Urls), e)
503 } // end block: if x.Urls slice == nil
504 z.EncWriteArrayElem()
505 if x.UserMentions == nil {
506 r.EncodeNil()
507 } else {
508 h.encSlicePtrtostring(([]*string)(x.UserMentions), e)
509 } // end block: if x.UserMentions slice == nil
510 z.EncWriteArrayEnd()
511 } else {
512 z.EncWriteMapStart(3)
513 z.EncWriteMapElemKey()
514 if z.IsJSONHandle() {
515 z.WriteStr("\"hashtags\"")
516 } else {
517 r.EncodeString(`hashtags`)
518 }
519 z.EncWriteMapElemValue()
520 if x.Hashtags == nil {
521 r.EncodeNil()
522 } else {
523 h.encSliceHashtag(([]Hashtag)(x.Hashtags), e)
524 } // end block: if x.Hashtags slice == nil
525 z.EncWriteMapElemKey()
526 if z.IsJSONHandle() {
527 z.WriteStr("\"urls\"")
528 } else {
529 r.EncodeString(`urls`)
530 }
531 z.EncWriteMapElemValue()
532 if x.Urls == nil {
533 r.EncodeNil()
534 } else {
535 h.encSlicePtrtostring(([]*string)(x.Urls), e)
536 } // end block: if x.Urls slice == nil
537 z.EncWriteMapElemKey()
538 r.EncodeString(`user_mentions`)
539 z.EncWriteMapElemValue()
540 if x.UserMentions == nil {
541 r.EncodeNil()
542 } else {
543 h.encSlicePtrtostring(([]*string)(x.UserMentions), e)
544 } // end block: if x.UserMentions slice == nil
545 z.EncWriteMapEnd()
546 }
547 }
548 }
549
550 func (x *Entities) CodecDecodeSelf(d *codec1978.Decoder) {
551 var h codecSelfer2736
552 z, r := codec1978.GenHelperDecoder(d)
553 _, _, _ = h, z, r
554 yyct2 := r.ContainerType()
555 if yyct2 == codecSelferValueTypeNil2736 {
556 *(x) = Entities{}
557 } else if yyct2 == codecSelferValueTypeMap2736 {
558 yyl2 := z.DecReadMapStart()
559 if yyl2 == 0 {
560 } else {
561 x.codecDecodeSelfFromMap(yyl2, d)
562 }
563 z.DecReadMapEnd()
564 } else if yyct2 == codecSelferValueTypeArray2736 {
565 yyl2 := z.DecReadArrayStart()
566 if yyl2 != 0 {
567 x.codecDecodeSelfFromArray(yyl2, d)
568 }
569 z.DecReadArrayEnd()
570 } else {
571 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct2736)
572 }
573 }
574
575 func (x *Entities) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
576 var h codecSelfer2736
577 z, r := codec1978.GenHelperDecoder(d)
578 _, _, _ = h, z, r
579 var yyhl3 bool = l >= 0
580 for yyj3 := 0; ; yyj3++ {
581 if yyhl3 {
582 if yyj3 >= l {
583 break
584 }
585 } else {
586 if z.DecCheckBreak() {
587 break
588 }
589 }
590 z.DecReadMapElemKey()
591 yys3 := z.StringView(r.DecodeStringAsBytes())
592 z.DecReadMapElemValue()
593 switch yys3 {
594 case "hashtags":
595 h.decSliceHashtag((*[]Hashtag)(&x.Hashtags), d)
596 case "urls":
597 h.decSlicePtrtostring((*[]*string)(&x.Urls), d)
598 case "user_mentions":
599 h.decSlicePtrtostring((*[]*string)(&x.UserMentions), d)
600 default:
601 z.DecStructFieldNotFound(-1, yys3)
602 } // end switch yys3
603 } // end for yyj3
604 }
605
606 func (x *Entities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
607 var h codecSelfer2736
608 z, r := codec1978.GenHelperDecoder(d)
609 _, _, _ = h, z, r
610 var yyj10 int
611 var yyb10 bool
612 var yyhl10 bool = l >= 0
613 yyj10++
614 if yyhl10 {
615 yyb10 = yyj10 > l
616 } else {
617 yyb10 = z.DecCheckBreak()
618 }
619 if yyb10 {
620 z.DecReadArrayEnd()
621 return
622 }
623 z.DecReadArrayElem()
624 h.decSliceHashtag((*[]Hashtag)(&x.Hashtags), d)
625 yyj10++
626 if yyhl10 {
627 yyb10 = yyj10 > l
628 } else {
629 yyb10 = z.DecCheckBreak()
630 }
631 if yyb10 {
632 z.DecReadArrayEnd()
633 return
634 }
635 z.DecReadArrayElem()
636 h.decSlicePtrtostring((*[]*string)(&x.Urls), d)
637 yyj10++
638 if yyhl10 {
639 yyb10 = yyj10 > l
640 } else {
641 yyb10 = z.DecCheckBreak()
642 }
643 if yyb10 {
644 z.DecReadArrayEnd()
645 return
646 }
647 z.DecReadArrayElem()
648 h.decSlicePtrtostring((*[]*string)(&x.UserMentions), d)
649 for {
650 yyj10++
651 if yyhl10 {
652 yyb10 = yyj10 > l
653 } else {
654 yyb10 = z.DecCheckBreak()
655 }
656 if yyb10 {
657 break
658 }
659 z.DecReadArrayElem()
660 z.DecStructFieldNotFound(yyj10-1, "")
661 }
662 }
663
664 func (x *UserEntityDescription) CodecEncodeSelf(e *codec1978.Encoder) {
665 var h codecSelfer2736
666 z, r := codec1978.GenHelperEncoder(e)
667 _, _, _ = h, z, r
668 if x == nil {
669 r.EncodeNil()
670 } else {
671 yysep2 := !z.EncBinary()
672 yy2arr2 := z.EncBasicHandle().StructToArray
673 _, _ = yysep2, yy2arr2
674 const yyr2 bool = false // struct tag has 'toArray'
675 if yyr2 || yy2arr2 {
676 z.EncWriteArrayStart(1)
677 z.EncWriteArrayElem()
678 if x.Urls == nil {
679 r.EncodeNil()
680 } else {
681 h.encSlicePtrtostring(([]*string)(x.Urls), e)
682 } // end block: if x.Urls slice == nil
683 z.EncWriteArrayEnd()
684 } else {
685 z.EncWriteMapStart(1)
686 z.EncWriteMapElemKey()
687 if z.IsJSONHandle() {
688 z.WriteStr("\"urls\"")
689 } else {
690 r.EncodeString(`urls`)
691 }
692 z.EncWriteMapElemValue()
693 if x.Urls == nil {
694 r.EncodeNil()
695 } else {
696 h.encSlicePtrtostring(([]*string)(x.Urls), e)
697 } // end block: if x.Urls slice == nil
698 z.EncWriteMapEnd()
699 }
700 }
701 }
702
703 func (x *UserEntityDescription) CodecDecodeSelf(d *codec1978.Decoder) {
704 var h codecSelfer2736
705 z, r := codec1978.GenHelperDecoder(d)
706 _, _, _ = h, z, r
707 yyct2 := r.ContainerType()
708 if yyct2 == codecSelferValueTypeNil2736 {
709 *(x) = UserEntityDescription{}
710 } else if yyct2 == codecSelferValueTypeMap2736 {
711 yyl2 := z.DecReadMapStart()
712 if yyl2 == 0 {
713 } else {
714 x.codecDecodeSelfFromMap(yyl2, d)
715 }
716 z.DecReadMapEnd()
717 } else if yyct2 == codecSelferValueTypeArray2736 {
718 yyl2 := z.DecReadArrayStart()
719 if yyl2 != 0 {
720 x.codecDecodeSelfFromArray(yyl2, d)
721 }
722 z.DecReadArrayEnd()
723 } else {
724 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct2736)
725 }
726 }
727
728 func (x *UserEntityDescription) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
729 var h codecSelfer2736
730 z, r := codec1978.GenHelperDecoder(d)
731 _, _, _ = h, z, r
732 var yyhl3 bool = l >= 0
733 for yyj3 := 0; ; yyj3++ {
734 if yyhl3 {
735 if yyj3 >= l {
736 break
737 }
738 } else {
739 if z.DecCheckBreak() {
740 break
741 }
742 }
743 z.DecReadMapElemKey()
744 yys3 := z.StringView(r.DecodeStringAsBytes())
745 z.DecReadMapElemValue()
746 switch yys3 {
747 case "urls":
748 h.decSlicePtrtostring((*[]*string)(&x.Urls), d)
749 default:
750 z.DecStructFieldNotFound(-1, yys3)
751 } // end switch yys3
752 } // end for yyj3
753 }
754
755 func (x *UserEntityDescription) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
756 var h codecSelfer2736
757 z, r := codec1978.GenHelperDecoder(d)
758 _, _, _ = h, z, r
759 var yyj6 int
760 var yyb6 bool
761 var yyhl6 bool = l >= 0
762 yyj6++
763 if yyhl6 {
764 yyb6 = yyj6 > l
765 } else {
766 yyb6 = z.DecCheckBreak()
767 }
768 if yyb6 {
769 z.DecReadArrayEnd()
770 return
771 }
772 z.DecReadArrayElem()
773 h.decSlicePtrtostring((*[]*string)(&x.Urls), d)
774 for {
775 yyj6++
776 if yyhl6 {
777 yyb6 = yyj6 > l
778 } else {
779 yyb6 = z.DecCheckBreak()
780 }
781 if yyb6 {
782 break
783 }
784 z.DecReadArrayElem()
785 z.DecStructFieldNotFound(yyj6-1, "")
786 }
787 }
788
789 func (x *URL) CodecEncodeSelf(e *codec1978.Encoder) {
790 var h codecSelfer2736
791 z, r := codec1978.GenHelperEncoder(e)
792 _, _, _ = h, z, r
793 if x == nil {
794 r.EncodeNil()
795 } else {
796 yysep2 := !z.EncBinary()
797 yy2arr2 := z.EncBasicHandle().StructToArray
798 _, _ = yysep2, yy2arr2
799 const yyr2 bool = false // struct tag has 'toArray'
800 var yyn3 bool = x.ExpandedURL == nil
801 if yyr2 || yy2arr2 {
802 z.EncWriteArrayStart(3)
803 if yyn3 {
804 z.EncWriteArrayElem()
805 r.EncodeNil()
806 } else {
807 z.EncWriteArrayElem()
808 yy6 := *x.ExpandedURL
809 r.EncodeString(string(yy6))
810 }
811 z.EncWriteArrayElem()
812 if x.Indices == nil {
813 r.EncodeNil()
814 } else {
815 z.F.EncSliceIntV(x.Indices, e)
816 } // end block: if x.Indices slice == nil
817 z.EncWriteArrayElem()
818 r.EncodeString(string(x.URL))
819 z.EncWriteArrayEnd()
820 } else {
821 z.EncWriteMapStart(3)
822 z.EncWriteMapElemKey()
823 r.EncodeString(`expanded_url`)
824 z.EncWriteMapElemValue()
825 if yyn3 {
826 r.EncodeNil()
827 } else {
828 yy10 := *x.ExpandedURL
829 r.EncodeString(string(yy10))
830 }
831 z.EncWriteMapElemKey()
832 if z.IsJSONHandle() {
833 z.WriteStr("\"indices\"")
834 } else {
835 r.EncodeString(`indices`)
836 }
837 z.EncWriteMapElemValue()
838 if x.Indices == nil {
839 r.EncodeNil()
840 } else {
841 z.F.EncSliceIntV(x.Indices, e)
842 } // end block: if x.Indices slice == nil
843 z.EncWriteMapElemKey()
844 if z.IsJSONHandle() {
845 z.WriteStr("\"url\"")
846 } else {
847 r.EncodeString(`url`)
848 }
849 z.EncWriteMapElemValue()
850 r.EncodeString(string(x.URL))
851 z.EncWriteMapEnd()
852 }
853 }
854 }
855
856 func (x *URL) CodecDecodeSelf(d *codec1978.Decoder) {
857 var h codecSelfer2736
858 z, r := codec1978.GenHelperDecoder(d)
859 _, _, _ = h, z, r
860 yyct2 := r.ContainerType()
861 if yyct2 == codecSelferValueTypeNil2736 {
862 *(x) = URL{}
863 } else if yyct2 == codecSelferValueTypeMap2736 {
864 yyl2 := z.DecReadMapStart()
865 if yyl2 == 0 {
866 } else {
867 x.codecDecodeSelfFromMap(yyl2, d)
868 }
869 z.DecReadMapEnd()
870 } else if yyct2 == codecSelferValueTypeArray2736 {
871 yyl2 := z.DecReadArrayStart()
872 if yyl2 != 0 {
873 x.codecDecodeSelfFromArray(yyl2, d)
874 }
875 z.DecReadArrayEnd()
876 } else {
877 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct2736)
878 }
879 }
880
881 func (x *URL) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
882 var h codecSelfer2736
883 z, r := codec1978.GenHelperDecoder(d)
884 _, _, _ = h, z, r
885 var yyhl3 bool = l >= 0
886 for yyj3 := 0; ; yyj3++ {
887 if yyhl3 {
888 if yyj3 >= l {
889 break
890 }
891 } else {
892 if z.DecCheckBreak() {
893 break
894 }
895 }
896 z.DecReadMapElemKey()
897 yys3 := z.StringView(r.DecodeStringAsBytes())
898 z.DecReadMapElemValue()
899 switch yys3 {
900 case "expanded_url":
901 if r.TryNil() {
902 if x.ExpandedURL != nil { // remove the if-true
903 x.ExpandedURL = nil
904 }
905 } else {
906 if x.ExpandedURL == nil {
907 x.ExpandedURL = new(string)
908 }
909 *x.ExpandedURL = (string)(string(r.DecodeStringAsBytes()))
910 }
911 case "indices":
912 z.F.DecSliceIntX(&x.Indices, d)
913 case "url":
914 x.URL = (string)(string(r.DecodeStringAsBytes()))
915 default:
916 z.DecStructFieldNotFound(-1, yys3)
917 } // end switch yys3
918 } // end for yyj3
919 }
920
921 func (x *URL) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
922 var h codecSelfer2736
923 z, r := codec1978.GenHelperDecoder(d)
924 _, _, _ = h, z, r
925 var yyj9 int
926 var yyb9 bool
927 var yyhl9 bool = l >= 0
928 yyj9++
929 if yyhl9 {
930 yyb9 = yyj9 > l
931 } else {
932 yyb9 = z.DecCheckBreak()
933 }
934 if yyb9 {
935 z.DecReadArrayEnd()
936 return
937 }
938 z.DecReadArrayElem()
939 if r.TryNil() {
940 if x.ExpandedURL != nil { // remove the if-true
941 x.ExpandedURL = nil
942 }
943 } else {
944 if x.ExpandedURL == nil {
945 x.ExpandedURL = new(string)
946 }
947 *x.ExpandedURL = (string)(string(r.DecodeStringAsBytes()))
948 }
949 yyj9++
950 if yyhl9 {
951 yyb9 = yyj9 > l
952 } else {
953 yyb9 = z.DecCheckBreak()
954 }
955 if yyb9 {
956 z.DecReadArrayEnd()
957 return
958 }
959 z.DecReadArrayElem()
960 z.F.DecSliceIntX(&x.Indices, d)
961 yyj9++
962 if yyhl9 {
963 yyb9 = yyj9 > l
964 } else {
965 yyb9 = z.DecCheckBreak()
966 }
967 if yyb9 {
968 z.DecReadArrayEnd()
969 return
970 }
971 z.DecReadArrayElem()
972 x.URL = (string)(string(r.DecodeStringAsBytes()))
973 for {
974 yyj9++
975 if yyhl9 {
976 yyb9 = yyj9 > l
977 } else {
978 yyb9 = z.DecCheckBreak()
979 }
980 if yyb9 {
981 break
982 }
983 z.DecReadArrayElem()
984 z.DecStructFieldNotFound(yyj9-1, "")
985 }
986 }
987
988 func (x *UserEntityURL) CodecEncodeSelf(e *codec1978.Encoder) {
989 var h codecSelfer2736
990 z, r := codec1978.GenHelperEncoder(e)
991 _, _, _ = h, z, r
992 if x == nil {
993 r.EncodeNil()
994 } else {
995 yysep2 := !z.EncBinary()
996 yy2arr2 := z.EncBasicHandle().StructToArray
997 _, _ = yysep2, yy2arr2
998 const yyr2 bool = false // struct tag has 'toArray'
999 if yyr2 || yy2arr2 {
1000 z.EncWriteArrayStart(1)
1001 z.EncWriteArrayElem()
1002 if x.Urls == nil {
1003 r.EncodeNil()
1004 } else {
1005 h.encSliceURL(([]URL)(x.Urls), e)
1006 } // end block: if x.Urls slice == nil
1007 z.EncWriteArrayEnd()
1008 } else {
1009 z.EncWriteMapStart(1)
1010 z.EncWriteMapElemKey()
1011 if z.IsJSONHandle() {
1012 z.WriteStr("\"urls\"")
1013 } else {
1014 r.EncodeString(`urls`)
1015 }
1016 z.EncWriteMapElemValue()
1017 if x.Urls == nil {
1018 r.EncodeNil()
1019 } else {
1020 h.encSliceURL(([]URL)(x.Urls), e)
1021 } // end block: if x.Urls slice == nil
1022 z.EncWriteMapEnd()
1023 }
1024 }
1025 }
1026
1027 func (x *UserEntityURL) CodecDecodeSelf(d *codec1978.Decoder) {
1028 var h codecSelfer2736
1029 z, r := codec1978.GenHelperDecoder(d)
1030 _, _, _ = h, z, r
1031 yyct2 := r.ContainerType()
1032 if yyct2 == codecSelferValueTypeNil2736 {
1033 *(x) = UserEntityURL{}
1034 } else if yyct2 == codecSelferValueTypeMap2736 {
1035 yyl2 := z.DecReadMapStart()
1036 if yyl2 == 0 {
1037 } else {
1038 x.codecDecodeSelfFromMap(yyl2, d)
1039 }
1040 z.DecReadMapEnd()
1041 } else if yyct2 == codecSelferValueTypeArray2736 {
1042 yyl2 := z.DecReadArrayStart()
1043 if yyl2 != 0 {
1044 x.codecDecodeSelfFromArray(yyl2, d)
1045 }
1046 z.DecReadArrayEnd()
1047 } else {
1048 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct2736)
1049 }
1050 }
1051
1052 func (x *UserEntityURL) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
1053 var h codecSelfer2736
1054 z, r := codec1978.GenHelperDecoder(d)
1055 _, _, _ = h, z, r
1056 var yyhl3 bool = l >= 0
1057 for yyj3 := 0; ; yyj3++ {
1058 if yyhl3 {
1059 if yyj3 >= l {
1060 break
1061 }
1062 } else {
1063 if z.DecCheckBreak() {
1064 break
1065 }
1066 }
1067 z.DecReadMapElemKey()
1068 yys3 := z.StringView(r.DecodeStringAsBytes())
1069 z.DecReadMapElemValue()
1070 switch yys3 {
1071 case "urls":
1072 h.decSliceURL((*[]URL)(&x.Urls), d)
1073 default:
1074 z.DecStructFieldNotFound(-1, yys3)
1075 } // end switch yys3
1076 } // end for yyj3
1077 }
1078
1079 func (x *UserEntityURL) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
1080 var h codecSelfer2736
1081 z, r := codec1978.GenHelperDecoder(d)
1082 _, _, _ = h, z, r
1083 var yyj6 int
1084 var yyb6 bool
1085 var yyhl6 bool = l >= 0
1086 yyj6++
1087 if yyhl6 {
1088 yyb6 = yyj6 > l
1089 } else {
1090 yyb6 = z.DecCheckBreak()
1091 }
1092 if yyb6 {
1093 z.DecReadArrayEnd()
1094 return
1095 }
1096 z.DecReadArrayElem()
1097 h.decSliceURL((*[]URL)(&x.Urls), d)
1098 for {
1099 yyj6++
1100 if yyhl6 {
1101 yyb6 = yyj6 > l
1102 } else {
1103 yyb6 = z.DecCheckBreak()
1104 }
1105 if yyb6 {
1106 break
1107 }
1108 z.DecReadArrayElem()
1109 z.DecStructFieldNotFound(yyj6-1, "")
1110 }
1111 }
1112
1113 func (x *UserEntities) CodecEncodeSelf(e *codec1978.Encoder) {
1114 var h codecSelfer2736
1115 z, r := codec1978.GenHelperEncoder(e)
1116 _, _, _ = h, z, r
1117 if x == nil {
1118 r.EncodeNil()
1119 } else {
1120 yysep2 := !z.EncBinary()
1121 yy2arr2 := z.EncBasicHandle().StructToArray
1122 _, _ = yysep2, yy2arr2
1123 const yyr2 bool = false // struct tag has 'toArray'
1124 if yyr2 || yy2arr2 {
1125 z.EncWriteArrayStart(2)
1126 z.EncWriteArrayElem()
1127 yy5 := &x.Description
1128 yy5.CodecEncodeSelf(e)
1129 z.EncWriteArrayElem()
1130 yy7 := &x.URL
1131 yy7.CodecEncodeSelf(e)
1132 z.EncWriteArrayEnd()
1133 } else {
1134 z.EncWriteMapStart(2)
1135 z.EncWriteMapElemKey()
1136 if z.IsJSONHandle() {
1137 z.WriteStr("\"description\"")
1138 } else {
1139 r.EncodeString(`description`)
1140 }
1141 z.EncWriteMapElemValue()
1142 yy9 := &x.Description
1143 yy9.CodecEncodeSelf(e)
1144 z.EncWriteMapElemKey()
1145 if z.IsJSONHandle() {
1146 z.WriteStr("\"url\"")
1147 } else {
1148 r.EncodeString(`url`)
1149 }
1150 z.EncWriteMapElemValue()
1151 yy11 := &x.URL
1152 yy11.CodecEncodeSelf(e)
1153 z.EncWriteMapEnd()
1154 }
1155 }
1156 }
1157
1158 func (x *UserEntities) CodecDecodeSelf(d *codec1978.Decoder) {
1159 var h codecSelfer2736
1160 z, r := codec1978.GenHelperDecoder(d)
1161 _, _, _ = h, z, r
1162 yyct2 := r.ContainerType()
1163 if yyct2 == codecSelferValueTypeNil2736 {
1164 *(x) = UserEntities{}
1165 } else if yyct2 == codecSelferValueTypeMap2736 {
1166 yyl2 := z.DecReadMapStart()
1167 if yyl2 == 0 {
1168 } else {
1169 x.codecDecodeSelfFromMap(yyl2, d)
1170 }
1171 z.DecReadMapEnd()
1172 } else if yyct2 == codecSelferValueTypeArray2736 {
1173 yyl2 := z.DecReadArrayStart()
1174 if yyl2 != 0 {
1175 x.codecDecodeSelfFromArray(yyl2, d)
1176 }
1177 z.DecReadArrayEnd()
1178 } else {
1179 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct2736)
1180 }
1181 }
1182
1183 func (x *UserEntities) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
1184 var h codecSelfer2736
1185 z, r := codec1978.GenHelperDecoder(d)
1186 _, _, _ = h, z, r
1187 var yyhl3 bool = l >= 0
1188 for yyj3 := 0; ; yyj3++ {
1189 if yyhl3 {
1190 if yyj3 >= l {
1191 break
1192 }
1193 } else {
1194 if z.DecCheckBreak() {
1195 break
1196 }
1197 }
1198 z.DecReadMapElemKey()
1199 yys3 := z.StringView(r.DecodeStringAsBytes())
1200 z.DecReadMapElemValue()
1201 switch yys3 {
1202 case "description":
1203 x.Description.CodecDecodeSelf(d)
1204 case "url":
1205 x.URL.CodecDecodeSelf(d)
1206 default:
1207 z.DecStructFieldNotFound(-1, yys3)
1208 } // end switch yys3
1209 } // end for yyj3
1210 }
1211
1212 func (x *UserEntities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
1213 var h codecSelfer2736
1214 z, r := codec1978.GenHelperDecoder(d)
1215 _, _, _ = h, z, r
1216 var yyj6 int
1217 var yyb6 bool
1218 var yyhl6 bool = l >= 0
1219 yyj6++
1220 if yyhl6 {
1221 yyb6 = yyj6 > l
1222 } else {
1223 yyb6 = z.DecCheckBreak()
1224 }
1225 if yyb6 {
1226 z.DecReadArrayEnd()
1227 return
1228 }
1229 z.DecReadArrayElem()
1230 x.Description.CodecDecodeSelf(d)
1231 yyj6++
1232 if yyhl6 {
1233 yyb6 = yyj6 > l
1234 } else {
1235 yyb6 = z.DecCheckBreak()
1236 }
1237 if yyb6 {
1238 z.DecReadArrayEnd()
1239 return
1240 }
1241 z.DecReadArrayElem()
1242 x.URL.CodecDecodeSelf(d)
1243 for {
1244 yyj6++
1245 if yyhl6 {
1246 yyb6 = yyj6 > l
1247 } else {
1248 yyb6 = z.DecCheckBreak()
1249 }
1250 if yyb6 {
1251 break
1252 }
1253 z.DecReadArrayElem()
1254 z.DecStructFieldNotFound(yyj6-1, "")
1255 }
1256 }
1257
1258 func (x *User) CodecEncodeSelf(e *codec1978.Encoder) {
1259 var h codecSelfer2736
1260 z, r := codec1978.GenHelperEncoder(e)
1261 _, _, _ = h, z, r
1262 if x == nil {
1263 r.EncodeNil()
1264 } else {
1265 yysep2 := !z.EncBinary()
1266 yy2arr2 := z.EncBasicHandle().StructToArray
1267 _, _ = yysep2, yy2arr2
1268 const yyr2 bool = false // struct tag has 'toArray'
1269 var yyn10 bool = x.FollowRequestSent == nil
1270 var yyn12 bool = x.Following == nil
1271 var yyn22 bool = x.Notifications == nil
1272 var yyn39 bool = x.URL == nil
1273 if yyr2 || yy2arr2 {
1274 z.EncWriteArrayStart(39)
1275 z.EncWriteArrayElem()
1276 r.EncodeBool(bool(x.ContributorsEnabled))
1277 z.EncWriteArrayElem()
1278 r.EncodeString(string(x.CreatedAt))
1279 z.EncWriteArrayElem()
1280 r.EncodeBool(bool(x.DefaultProfile))
1281 z.EncWriteArrayElem()
1282 r.EncodeBool(bool(x.DefaultProfileImage))
1283 z.EncWriteArrayElem()
1284 r.EncodeString(string(x.Description))
1285 z.EncWriteArrayElem()
1286 yy47 := &x.Entities
1287 yy47.CodecEncodeSelf(e)
1288 z.EncWriteArrayElem()
1289 r.EncodeInt(int64(x.FavouritesCount))
1290 if yyn10 {
1291 z.EncWriteArrayElem()
1292 r.EncodeNil()
1293 } else {
1294 z.EncWriteArrayElem()
1295 yy50 := *x.FollowRequestSent
1296 r.EncodeString(string(yy50))
1297 }
1298 z.EncWriteArrayElem()
1299 r.EncodeInt(int64(x.FollowersCount))
1300 if yyn12 {
1301 z.EncWriteArrayElem()
1302 r.EncodeNil()
1303 } else {
1304 z.EncWriteArrayElem()
1305 yy53 := *x.Following
1306 r.EncodeString(string(yy53))
1307 }
1308 z.EncWriteArrayElem()
1309 r.EncodeInt(int64(x.FriendsCount))
1310 z.EncWriteArrayElem()
1311 r.EncodeBool(bool(x.GeoEnabled))
1312 z.EncWriteArrayElem()
1313 r.EncodeInt(int64(x.ID))
1314 z.EncWriteArrayElem()
1315 r.EncodeString(string(x.IDStr))
1316 z.EncWriteArrayElem()
1317 r.EncodeBool(bool(x.IsTranslator))
1318 z.EncWriteArrayElem()
1319 r.EncodeString(string(x.Lang))
1320 z.EncWriteArrayElem()
1321 r.EncodeInt(int64(x.ListedCount))
1322 z.EncWriteArrayElem()
1323 r.EncodeString(string(x.Location))
1324 z.EncWriteArrayElem()
1325 r.EncodeString(string(x.Name))
1326 if yyn22 {
1327 z.EncWriteArrayElem()
1328 r.EncodeNil()
1329 } else {
1330 z.EncWriteArrayElem()
1331 yy64 := *x.Notifications
1332 r.EncodeString(string(yy64))
1333 }
1334 z.EncWriteArrayElem()
1335 r.EncodeString(string(x.ProfileBackgroundColor))
1336 z.EncWriteArrayElem()
1337 r.EncodeString(string(x.ProfileBackgroundImageURL))
1338 z.EncWriteArrayElem()
1339 r.EncodeString(string(x.ProfileBackgroundImageURLHTTPS))
1340 z.EncWriteArrayElem()
1341 r.EncodeBool(bool(x.ProfileBackgroundTile))
1342 z.EncWriteArrayElem()
1343 r.EncodeString(string(x.ProfileImageURL))
1344 z.EncWriteArrayElem()
1345 r.EncodeString(string(x.ProfileImageURLHTTPS))
1346 z.EncWriteArrayElem()
1347 r.EncodeString(string(x.ProfileLinkColor))
1348 z.EncWriteArrayElem()
1349 r.EncodeString(string(x.ProfileSidebarBorderColor))
1350 z.EncWriteArrayElem()
1351 r.EncodeString(string(x.ProfileSidebarFillColor))
1352 z.EncWriteArrayElem()
1353 r.EncodeString(string(x.ProfileTextColor))
1354 z.EncWriteArrayElem()
1355 r.EncodeBool(bool(x.ProfileUseBackgroundImage))
1356 z.EncWriteArrayElem()
1357 r.EncodeBool(bool(x.Protected))
1358 z.EncWriteArrayElem()
1359 r.EncodeString(string(x.ScreenName))
1360 z.EncWriteArrayElem()
1361 r.EncodeBool(bool(x.ShowAllInlineMedia))
1362 z.EncWriteArrayElem()
1363 r.EncodeInt(int64(x.StatusesCount))
1364 z.EncWriteArrayElem()
1365 r.EncodeString(string(x.TimeZone))
1366 if yyn39 {
1367 z.EncWriteArrayElem()
1368 r.EncodeNil()
1369 } else {
1370 z.EncWriteArrayElem()
1371 yy82 := *x.URL
1372 r.EncodeString(string(yy82))
1373 }
1374 z.EncWriteArrayElem()
1375 r.EncodeInt(int64(x.UtcOffset))
1376 z.EncWriteArrayElem()
1377 r.EncodeBool(bool(x.Verified))
1378 z.EncWriteArrayEnd()
1379 } else {
1380 z.EncWriteMapStart(39)
1381 z.EncWriteMapElemKey()
1382 r.EncodeString(`contributors_enabled`)
1383 z.EncWriteMapElemValue()
1384 r.EncodeBool(bool(x.ContributorsEnabled))
1385 z.EncWriteMapElemKey()
1386 r.EncodeString(`created_at`)
1387 z.EncWriteMapElemValue()
1388 r.EncodeString(string(x.CreatedAt))
1389 z.EncWriteMapElemKey()
1390 r.EncodeString(`default_profile`)
1391 z.EncWriteMapElemValue()
1392 r.EncodeBool(bool(x.DefaultProfile))
1393 z.EncWriteMapElemKey()
1394 r.EncodeString(`default_profile_image`)
1395 z.EncWriteMapElemValue()
1396 r.EncodeBool(bool(x.DefaultProfileImage))
1397 z.EncWriteMapElemKey()
1398 if z.IsJSONHandle() {
1399 z.WriteStr("\"description\"")
1400 } else {
1401 r.EncodeString(`description`)
1402 }
1403 z.EncWriteMapElemValue()
1404 r.EncodeString(string(x.Description))
1405 z.EncWriteMapElemKey()
1406 if z.IsJSONHandle() {
1407 z.WriteStr("\"entities\"")
1408 } else {
1409 r.EncodeString(`entities`)
1410 }
1411 z.EncWriteMapElemValue()
1412 yy91 := &x.Entities
1413 yy91.CodecEncodeSelf(e)
1414 z.EncWriteMapElemKey()
1415 r.EncodeString(`favourites_count`)
1416 z.EncWriteMapElemValue()
1417 r.EncodeInt(int64(x.FavouritesCount))
1418 z.EncWriteMapElemKey()
1419 r.EncodeString(`follow_request_sent`)
1420 z.EncWriteMapElemValue()
1421 if yyn10 {
1422 r.EncodeNil()
1423 } else {
1424 yy94 := *x.FollowRequestSent
1425 r.EncodeString(string(yy94))
1426 }
1427 z.EncWriteMapElemKey()
1428 r.EncodeString(`followers_count`)
1429 z.EncWriteMapElemValue()
1430 r.EncodeInt(int64(x.FollowersCount))
1431 z.EncWriteMapElemKey()
1432 if z.IsJSONHandle() {
1433 z.WriteStr("\"following\"")
1434 } else {
1435 r.EncodeString(`following`)
1436 }
1437 z.EncWriteMapElemValue()
1438 if yyn12 {
1439 r.EncodeNil()
1440 } else {
1441 yy97 := *x.Following
1442 r.EncodeString(string(yy97))
1443 }
1444 z.EncWriteMapElemKey()
1445 r.EncodeString(`friends_count`)
1446 z.EncWriteMapElemValue()
1447 r.EncodeInt(int64(x.FriendsCount))
1448 z.EncWriteMapElemKey()
1449 r.EncodeString(`geo_enabled`)
1450 z.EncWriteMapElemValue()
1451 r.EncodeBool(bool(x.GeoEnabled))
1452 z.EncWriteMapElemKey()
1453 if z.IsJSONHandle() {
1454 z.WriteStr("\"id\"")
1455 } else {
1456 r.EncodeString(`id`)
1457 }
1458 z.EncWriteMapElemValue()
1459 r.EncodeInt(int64(x.ID))
1460 z.EncWriteMapElemKey()
1461 r.EncodeString(`id_str`)
1462 z.EncWriteMapElemValue()
1463 r.EncodeString(string(x.IDStr))
1464 z.EncWriteMapElemKey()
1465 r.EncodeString(`is_translator`)
1466 z.EncWriteMapElemValue()
1467 r.EncodeBool(bool(x.IsTranslator))
1468 z.EncWriteMapElemKey()
1469 if z.IsJSONHandle() {
1470 z.WriteStr("\"lang\"")
1471 } else {
1472 r.EncodeString(`lang`)
1473 }
1474 z.EncWriteMapElemValue()
1475 r.EncodeString(string(x.Lang))
1476 z.EncWriteMapElemKey()
1477 r.EncodeString(`listed_count`)
1478 z.EncWriteMapElemValue()
1479 r.EncodeInt(int64(x.ListedCount))
1480 z.EncWriteMapElemKey()
1481 if z.IsJSONHandle() {
1482 z.WriteStr("\"location\"")
1483 } else {
1484 r.EncodeString(`location`)
1485 }
1486 z.EncWriteMapElemValue()
1487 r.EncodeString(string(x.Location))
1488 z.EncWriteMapElemKey()
1489 if z.IsJSONHandle() {
1490 z.WriteStr("\"name\"")
1491 } else {
1492 r.EncodeString(`name`)
1493 }
1494 z.EncWriteMapElemValue()
1495 r.EncodeString(string(x.Name))
1496 z.EncWriteMapElemKey()
1497 if z.IsJSONHandle() {
1498 z.WriteStr("\"notifications\"")
1499 } else {
1500 r.EncodeString(`notifications`)
1501 }
1502 z.EncWriteMapElemValue()
1503 if yyn22 {
1504 r.EncodeNil()
1505 } else {
1506 yy108 := *x.Notifications
1507 r.EncodeString(string(yy108))
1508 }
1509 z.EncWriteMapElemKey()
1510 r.EncodeString(`profile_background_color`)
1511 z.EncWriteMapElemValue()
1512 r.EncodeString(string(x.ProfileBackgroundColor))
1513 z.EncWriteMapElemKey()
1514 r.EncodeString(`profile_background_image_url`)
1515 z.EncWriteMapElemValue()
1516 r.EncodeString(string(x.ProfileBackgroundImageURL))
1517 z.EncWriteMapElemKey()
1518 r.EncodeString(`profile_background_image_url_https`)
1519 z.EncWriteMapElemValue()
1520 r.EncodeString(string(x.ProfileBackgroundImageURLHTTPS))
1521 z.EncWriteMapElemKey()
1522 r.EncodeString(`profile_background_tile`)
1523 z.EncWriteMapElemValue()
1524 r.EncodeBool(bool(x.ProfileBackgroundTile))
1525 z.EncWriteMapElemKey()
1526 r.EncodeString(`profile_image_url`)
1527 z.EncWriteMapElemValue()
1528 r.EncodeString(string(x.ProfileImageURL))
1529 z.EncWriteMapElemKey()
1530 r.EncodeString(`profile_image_url_https`)
1531 z.EncWriteMapElemValue()
1532 r.EncodeString(string(x.ProfileImageURLHTTPS))
1533 z.EncWriteMapElemKey()
1534 r.EncodeString(`profile_link_color`)
1535 z.EncWriteMapElemValue()
1536 r.EncodeString(string(x.ProfileLinkColor))
1537 z.EncWriteMapElemKey()
1538 r.EncodeString(`profile_sidebar_border_color`)
1539 z.EncWriteMapElemValue()
1540 r.EncodeString(string(x.ProfileSidebarBorderColor))
1541 z.EncWriteMapElemKey()
1542 r.EncodeString(`profile_sidebar_fill_color`)
1543 z.EncWriteMapElemValue()
1544 r.EncodeString(string(x.ProfileSidebarFillColor))
1545 z.EncWriteMapElemKey()
1546 r.EncodeString(`profile_text_color`)
1547 z.EncWriteMapElemValue()
1548 r.EncodeString(string(x.ProfileTextColor))
1549 z.EncWriteMapElemKey()
1550 r.EncodeString(`profile_use_background_image`)
1551 z.EncWriteMapElemValue()
1552 r.EncodeBool(bool(x.ProfileUseBackgroundImage))
1553 z.EncWriteMapElemKey()
1554 if z.IsJSONHandle() {
1555 z.WriteStr("\"protected\"")
1556 } else {
1557 r.EncodeString(`protected`)
1558 }
1559 z.EncWriteMapElemValue()
1560 r.EncodeBool(bool(x.Protected))
1561 z.EncWriteMapElemKey()
1562 r.EncodeString(`screen_name`)
1563 z.EncWriteMapElemValue()
1564 r.EncodeString(string(x.ScreenName))
1565 z.EncWriteMapElemKey()
1566 r.EncodeString(`show_all_inline_media`)
1567 z.EncWriteMapElemValue()
1568 r.EncodeBool(bool(x.ShowAllInlineMedia))
1569 z.EncWriteMapElemKey()
1570 r.EncodeString(`statuses_count`)
1571 z.EncWriteMapElemValue()
1572 r.EncodeInt(int64(x.StatusesCount))
1573 z.EncWriteMapElemKey()
1574 r.EncodeString(`time_zone`)
1575 z.EncWriteMapElemValue()
1576 r.EncodeString(string(x.TimeZone))
1577 z.EncWriteMapElemKey()
1578 if z.IsJSONHandle() {
1579 z.WriteStr("\"url\"")
1580 } else {
1581 r.EncodeString(`url`)
1582 }
1583 z.EncWriteMapElemValue()
1584 if yyn39 {
1585 r.EncodeNil()
1586 } else {
1587 yy126 := *x.URL
1588 r.EncodeString(string(yy126))
1589 }
1590 z.EncWriteMapElemKey()
1591 r.EncodeString(`utc_offset`)
1592 z.EncWriteMapElemValue()
1593 r.EncodeInt(int64(x.UtcOffset))
1594 z.EncWriteMapElemKey()
1595 if z.IsJSONHandle() {
1596 z.WriteStr("\"verified\"")
1597 } else {
1598 r.EncodeString(`verified`)
1599 }
1600 z.EncWriteMapElemValue()
1601 r.EncodeBool(bool(x.Verified))
1602 z.EncWriteMapEnd()
1603 }
1604 }
1605 }
1606
1607 func (x *User) CodecDecodeSelf(d *codec1978.Decoder) {
1608 var h codecSelfer2736
1609 z, r := codec1978.GenHelperDecoder(d)
1610 _, _, _ = h, z, r
1611 yyct2 := r.ContainerType()
1612 if yyct2 == codecSelferValueTypeNil2736 {
1613 *(x) = User{}
1614 } else if yyct2 == codecSelferValueTypeMap2736 {
1615 yyl2 := z.DecReadMapStart()
1616 if yyl2 == 0 {
1617 } else {
1618 x.codecDecodeSelfFromMap(yyl2, d)
1619 }
1620 z.DecReadMapEnd()
1621 } else if yyct2 == codecSelferValueTypeArray2736 {
1622 yyl2 := z.DecReadArrayStart()
1623 if yyl2 != 0 {
1624 x.codecDecodeSelfFromArray(yyl2, d)
1625 }
1626 z.DecReadArrayEnd()
1627 } else {
1628 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct2736)
1629 }
1630 }
1631
1632 func (x *User) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
1633 var h codecSelfer2736
1634 z, r := codec1978.GenHelperDecoder(d)
1635 _, _, _ = h, z, r
1636 var yyhl3 bool = l >= 0
1637 for yyj3 := 0; ; yyj3++ {
1638 if yyhl3 {
1639 if yyj3 >= l {
1640 break
1641 }
1642 } else {
1643 if z.DecCheckBreak() {
1644 break
1645 }
1646 }
1647 z.DecReadMapElemKey()
1648 yys3 := z.StringView(r.DecodeStringAsBytes())
1649 z.DecReadMapElemValue()
1650 switch yys3 {
1651 case "contributors_enabled":
1652 x.ContributorsEnabled = (bool)(r.DecodeBool())
1653 case "created_at":
1654 x.CreatedAt = (string)(string(r.DecodeStringAsBytes()))
1655 case "default_profile":
1656 x.DefaultProfile = (bool)(r.DecodeBool())
1657 case "default_profile_image":
1658 x.DefaultProfileImage = (bool)(r.DecodeBool())
1659 case "description":
1660 x.Description = (string)(string(r.DecodeStringAsBytes()))
1661 case "entities":
1662 x.Entities.CodecDecodeSelf(d)
1663 case "favourites_count":
1664 x.FavouritesCount = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize2736))
1665 case "follow_request_sent":
1666 if r.TryNil() {
1667 if x.FollowRequestSent != nil { // remove the if-true
1668 x.FollowRequestSent = nil
1669 }
1670 } else {
1671 if x.FollowRequestSent == nil {
1672 x.FollowRequestSent = new(string)
1673 }
1674 *x.FollowRequestSent = (string)(string(r.DecodeStringAsBytes()))
1675 }
1676 case "followers_count":
1677 x.FollowersCount = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize2736))
1678 case "following":
1679 if r.TryNil() {
1680 if x.Following != nil { // remove the if-true
1681 x.Following = nil
1682 }
1683 } else {
1684 if x.Following == nil {
1685 x.Following = new(string)
1686 }
1687 *x.Following = (string)(string(r.DecodeStringAsBytes()))
1688 }
1689 case "friends_count":
1690 x.FriendsCount = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize2736))
1691 case "geo_enabled":
1692 x.GeoEnabled = (bool)(r.DecodeBool())
1693 case "id":
1694 x.ID = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize2736))
1695 case "id_str":
1696 x.IDStr = (string)(string(r.DecodeStringAsBytes()))
1697 case "is_translator":
1698 x.IsTranslator = (bool)(r.DecodeBool())
1699 case "lang":
1700 x.Lang = (string)(string(r.DecodeStringAsBytes()))
1701 case "listed_count":
1702 x.ListedCount = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize2736))
1703 case "location":
1704 x.Location = (string)(string(r.DecodeStringAsBytes()))
1705 case "name":
1706 x.Name = (string)(string(r.DecodeStringAsBytes()))
1707 case "notifications":
1708 if r.TryNil() {
1709 if x.Notifications != nil { // remove the if-true
1710 x.Notifications = nil
1711 }
1712 } else {
1713 if x.Notifications == nil {
1714 x.Notifications = new(string)
1715 }
1716 *x.Notifications = (string)(string(r.DecodeStringAsBytes()))
1717 }
1718 case "profile_background_color":
1719 x.ProfileBackgroundColor = (string)(string(r.DecodeStringAsBytes()))
1720 case "profile_background_image_url":
1721 x.ProfileBackgroundImageURL = (string)(string(r.DecodeStringAsBytes()))
1722 case "profile_background_image_url_https":
1723 x.ProfileBackgroundImageURLHTTPS = (string)(string(r.DecodeStringAsBytes()))
1724 case "profile_background_tile":
1725 x.ProfileBackgroundTile = (bool)(r.DecodeBool())
1726 case "profile_image_url":
1727 x.ProfileImageURL = (string)(string(r.DecodeStringAsBytes()))
1728 case "profile_image_url_https":
1729 x.ProfileImageURLHTTPS = (string)(string(r.DecodeStringAsBytes()))
1730 case "profile_link_color":
1731 x.ProfileLinkColor = (string)(string(r.DecodeStringAsBytes()))
1732 case "profile_sidebar_border_color":
1733 x.ProfileSidebarBorderColor = (string)(string(r.DecodeStringAsBytes()))
1734 case "profile_sidebar_fill_color":
1735 x.ProfileSidebarFillColor = (string)(string(r.DecodeStringAsBytes()))
1736 case "profile_text_color":
1737 x.ProfileTextColor = (string)(string(r.DecodeStringAsBytes()))
1738 case "profile_use_background_image":
1739 x.ProfileUseBackgroundImage = (bool)(r.DecodeBool())
1740 case "protected":
1741 x.Protected = (bool)(r.DecodeBool())
1742 case "screen_name":
1743 x.ScreenName = (string)(string(r.DecodeStringAsBytes()))
1744 case "show_all_inline_media":
1745 x.ShowAllInlineMedia = (bool)(r.DecodeBool())
1746 case "statuses_count":
1747 x.StatusesCount = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize2736))
1748 case "time_zone":
1749 x.TimeZone = (string)(string(r.DecodeStringAsBytes()))
1750 case "url":
1751 if r.TryNil() {
1752 if x.URL != nil { // remove the if-true
1753 x.URL = nil
1754 }
1755 } else {
1756 if x.URL == nil {
1757 x.URL = new(string)
1758 }
1759 *x.URL = (string)(string(r.DecodeStringAsBytes()))
1760 }
1761 case "utc_offset":
1762 x.UtcOffset = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize2736))
1763 case "verified":
1764 x.Verified = (bool)(r.DecodeBool())
1765 default:
1766 z.DecStructFieldNotFound(-1, yys3)
1767 } // end switch yys3
1768 } // end for yyj3
1769 }
1770
1771 func (x *User) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
1772 var h codecSelfer2736
1773 z, r := codec1978.GenHelperDecoder(d)
1774 _, _, _ = h, z, r
1775 var yyj47 int
1776 var yyb47 bool
1777 var yyhl47 bool = l >= 0
1778 yyj47++
1779 if yyhl47 {
1780 yyb47 = yyj47 > l
1781 } else {
1782 yyb47 = z.DecCheckBreak()
1783 }
1784 if yyb47 {
1785 z.DecReadArrayEnd()
1786 return
1787 }
1788 z.DecReadArrayElem()
1789 x.ContributorsEnabled = (bool)(r.DecodeBool())
1790 yyj47++
1791 if yyhl47 {
1792 yyb47 = yyj47 > l
1793 } else {
1794 yyb47 = z.DecCheckBreak()
1795 }
1796 if yyb47 {
1797 z.DecReadArrayEnd()
1798 return
1799 }
1800 z.DecReadArrayElem()
1801 x.CreatedAt = (string)(string(r.DecodeStringAsBytes()))
1802 yyj47++
1803 if yyhl47 {
1804 yyb47 = yyj47 > l
1805 } else {
1806 yyb47 = z.DecCheckBreak()
1807 }
1808 if yyb47 {
1809 z.DecReadArrayEnd()
1810 return
1811 }
1812 z.DecReadArrayElem()
1813 x.DefaultProfile = (bool)(r.DecodeBool())
1814 yyj47++
1815 if yyhl47 {
1816 yyb47 = yyj47 > l
1817 } else {
1818 yyb47 = z.DecCheckBreak()
1819 }
1820 if yyb47 {
1821 z.DecReadArrayEnd()
1822 return
1823 }
1824 z.DecReadArrayElem()
1825 x.DefaultProfileImage = (bool)(r.DecodeBool())
1826 yyj47++
1827 if yyhl47 {
1828 yyb47 = yyj47 > l
1829 } else {
1830 yyb47 = z.DecCheckBreak()
1831 }
1832 if yyb47 {
1833 z.DecReadArrayEnd()
1834 return
1835 }
1836 z.DecReadArrayElem()
1837 x.Description = (string)(string(r.DecodeStringAsBytes()))
1838 yyj47++
1839 if yyhl47 {
1840 yyb47 = yyj47 > l
1841 } else {
1842 yyb47 = z.DecCheckBreak()
1843 }
1844 if yyb47 {
1845 z.DecReadArrayEnd()
1846 return
1847 }
1848 z.DecReadArrayElem()
1849 x.Entities.CodecDecodeSelf(d)
1850 yyj47++
1851 if yyhl47 {
1852 yyb47 = yyj47 > l
1853 } else {
1854 yyb47 = z.DecCheckBreak()
1855 }
1856 if yyb47 {
1857 z.DecReadArrayEnd()
1858 return
1859 }
1860 z.DecReadArrayElem()
1861 x.FavouritesCount = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize2736))
1862 yyj47++
1863 if yyhl47 {
1864 yyb47 = yyj47 > l
1865 } else {
1866 yyb47 = z.DecCheckBreak()
1867 }
1868 if yyb47 {
1869 z.DecReadArrayEnd()
1870 return
1871 }
1872 z.DecReadArrayElem()
1873 if r.TryNil() {
1874 if x.FollowRequestSent != nil { // remove the if-true
1875 x.FollowRequestSent = nil
1876 }
1877 } else {
1878 if x.FollowRequestSent == nil {
1879 x.FollowRequestSent = new(string)
1880 }
1881 *x.FollowRequestSent = (string)(string(r.DecodeStringAsBytes()))
1882 }
1883 yyj47++
1884 if yyhl47 {
1885 yyb47 = yyj47 > l
1886 } else {
1887 yyb47 = z.DecCheckBreak()
1888 }
1889 if yyb47 {
1890 z.DecReadArrayEnd()
1891 return
1892 }
1893 z.DecReadArrayElem()
1894 x.FollowersCount = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize2736))
1895 yyj47++
1896 if yyhl47 {
1897 yyb47 = yyj47 > l
1898 } else {
1899 yyb47 = z.DecCheckBreak()
1900 }
1901 if yyb47 {
1902 z.DecReadArrayEnd()
1903 return
1904 }
1905 z.DecReadArrayElem()
1906 if r.TryNil() {
1907 if x.Following != nil { // remove the if-true
1908 x.Following = nil
1909 }
1910 } else {
1911 if x.Following == nil {
1912 x.Following = new(string)
1913 }
1914 *x.Following = (string)(string(r.DecodeStringAsBytes()))
1915 }
1916 yyj47++
1917 if yyhl47 {
1918 yyb47 = yyj47 > l
1919 } else {
1920 yyb47 = z.DecCheckBreak()
1921 }
1922 if yyb47 {
1923 z.DecReadArrayEnd()
1924 return
1925 }
1926 z.DecReadArrayElem()
1927 x.FriendsCount = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize2736))
1928 yyj47++
1929 if yyhl47 {
1930 yyb47 = yyj47 > l
1931 } else {
1932 yyb47 = z.DecCheckBreak()
1933 }
1934 if yyb47 {
1935 z.DecReadArrayEnd()
1936 return
1937 }
1938 z.DecReadArrayElem()
1939 x.GeoEnabled = (bool)(r.DecodeBool())
1940 yyj47++
1941 if yyhl47 {
1942 yyb47 = yyj47 > l
1943 } else {
1944 yyb47 = z.DecCheckBreak()
1945 }
1946 if yyb47 {
1947 z.DecReadArrayEnd()
1948 return
1949 }
1950 z.DecReadArrayElem()
1951 x.ID = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize2736))
1952 yyj47++
1953 if yyhl47 {
1954 yyb47 = yyj47 > l
1955 } else {
1956 yyb47 = z.DecCheckBreak()
1957 }
1958 if yyb47 {
1959 z.DecReadArrayEnd()
1960 return
1961 }
1962 z.DecReadArrayElem()
1963 x.IDStr = (string)(string(r.DecodeStringAsBytes()))
1964 yyj47++
1965 if yyhl47 {
1966 yyb47 = yyj47 > l
1967 } else {
1968 yyb47 = z.DecCheckBreak()
1969 }
1970 if yyb47 {
1971 z.DecReadArrayEnd()
1972 return
1973 }
1974 z.DecReadArrayElem()
1975 x.IsTranslator = (bool)(r.DecodeBool())
1976 yyj47++
1977 if yyhl47 {
1978 yyb47 = yyj47 > l
1979 } else {
1980 yyb47 = z.DecCheckBreak()
1981 }
1982 if yyb47 {
1983 z.DecReadArrayEnd()
1984 return
1985 }
1986 z.DecReadArrayElem()
1987 x.Lang = (string)(string(r.DecodeStringAsBytes()))
1988 yyj47++
1989 if yyhl47 {
1990 yyb47 = yyj47 > l
1991 } else {
1992 yyb47 = z.DecCheckBreak()
1993 }
1994 if yyb47 {
1995 z.DecReadArrayEnd()
1996 return
1997 }
1998 z.DecReadArrayElem()
1999 x.ListedCount = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize2736))
2000 yyj47++
2001 if yyhl47 {
2002 yyb47 = yyj47 > l
2003 } else {
2004 yyb47 = z.DecCheckBreak()
2005 }
2006 if yyb47 {
2007 z.DecReadArrayEnd()
2008 return
2009 }
2010 z.DecReadArrayElem()
2011 x.Location = (string)(string(r.DecodeStringAsBytes()))
2012 yyj47++
2013 if yyhl47 {
2014 yyb47 = yyj47 > l
2015 } else {
2016 yyb47 = z.DecCheckBreak()
2017 }
2018 if yyb47 {
2019 z.DecReadArrayEnd()
2020 return
2021 }
2022 z.DecReadArrayElem()
2023 x.Name = (string)(string(r.DecodeStringAsBytes()))
2024 yyj47++
2025 if yyhl47 {
2026 yyb47 = yyj47 > l
2027 } else {
2028 yyb47 = z.DecCheckBreak()
2029 }
2030 if yyb47 {
2031 z.DecReadArrayEnd()
2032 return
2033 }
2034 z.DecReadArrayElem()
2035 if r.TryNil() {
2036 if x.Notifications != nil { // remove the if-true
2037 x.Notifications = nil
2038 }
2039 } else {
2040 if x.Notifications == nil {
2041 x.Notifications = new(string)
2042 }
2043 *x.Notifications = (string)(string(r.DecodeStringAsBytes()))
2044 }
2045 yyj47++
2046 if yyhl47 {
2047 yyb47 = yyj47 > l
2048 } else {
2049 yyb47 = z.DecCheckBreak()
2050 }
2051 if yyb47 {
2052 z.DecReadArrayEnd()
2053 return
2054 }
2055 z.DecReadArrayElem()
2056 x.ProfileBackgroundColor = (string)(string(r.DecodeStringAsBytes()))
2057 yyj47++
2058 if yyhl47 {
2059 yyb47 = yyj47 > l
2060 } else {
2061 yyb47 = z.DecCheckBreak()
2062 }
2063 if yyb47 {
2064 z.DecReadArrayEnd()
2065 return
2066 }
2067 z.DecReadArrayElem()
2068 x.ProfileBackgroundImageURL = (string)(string(r.DecodeStringAsBytes()))
2069 yyj47++
2070 if yyhl47 {
2071 yyb47 = yyj47 > l
2072 } else {
2073 yyb47 = z.DecCheckBreak()
2074 }
2075 if yyb47 {
2076 z.DecReadArrayEnd()
2077 return
2078 }
2079 z.DecReadArrayElem()
2080 x.ProfileBackgroundImageURLHTTPS = (string)(string(r.DecodeStringAsBytes()))
2081 yyj47++
2082 if yyhl47 {
2083 yyb47 = yyj47 > l
2084 } else {
2085 yyb47 = z.DecCheckBreak()
2086 }
2087 if yyb47 {
2088 z.DecReadArrayEnd()
2089 return
2090 }
2091 z.DecReadArrayElem()
2092 x.ProfileBackgroundTile = (bool)(r.DecodeBool())
2093 yyj47++
2094 if yyhl47 {
2095 yyb47 = yyj47 > l
2096 } else {
2097 yyb47 = z.DecCheckBreak()
2098 }
2099 if yyb47 {
2100 z.DecReadArrayEnd()
2101 return
2102 }
2103 z.DecReadArrayElem()
2104 x.ProfileImageURL = (string)(string(r.DecodeStringAsBytes()))
2105 yyj47++
2106 if yyhl47 {
2107 yyb47 = yyj47 > l
2108 } else {
2109 yyb47 = z.DecCheckBreak()
2110 }
2111 if yyb47 {
2112 z.DecReadArrayEnd()
2113 return
2114 }
2115 z.DecReadArrayElem()
2116 x.ProfileImageURLHTTPS = (string)(string(r.DecodeStringAsBytes()))
2117 yyj47++
2118 if yyhl47 {
2119 yyb47 = yyj47 > l
2120 } else {
2121 yyb47 = z.DecCheckBreak()
2122 }
2123 if yyb47 {
2124 z.DecReadArrayEnd()
2125 return
2126 }
2127 z.DecReadArrayElem()
2128 x.ProfileLinkColor = (string)(string(r.DecodeStringAsBytes()))
2129 yyj47++
2130 if yyhl47 {
2131 yyb47 = yyj47 > l
2132 } else {
2133 yyb47 = z.DecCheckBreak()
2134 }
2135 if yyb47 {
2136 z.DecReadArrayEnd()
2137 return
2138 }
2139 z.DecReadArrayElem()
2140 x.ProfileSidebarBorderColor = (string)(string(r.DecodeStringAsBytes()))
2141 yyj47++
2142 if yyhl47 {
2143 yyb47 = yyj47 > l
2144 } else {
2145 yyb47 = z.DecCheckBreak()
2146 }
2147 if yyb47 {
2148 z.DecReadArrayEnd()
2149 return
2150 }
2151 z.DecReadArrayElem()
2152 x.ProfileSidebarFillColor = (string)(string(r.DecodeStringAsBytes()))
2153 yyj47++
2154 if yyhl47 {
2155 yyb47 = yyj47 > l
2156 } else {
2157 yyb47 = z.DecCheckBreak()
2158 }
2159 if yyb47 {
2160 z.DecReadArrayEnd()
2161 return
2162 }
2163 z.DecReadArrayElem()
2164 x.ProfileTextColor = (string)(string(r.DecodeStringAsBytes()))
2165 yyj47++
2166 if yyhl47 {
2167 yyb47 = yyj47 > l
2168 } else {
2169 yyb47 = z.DecCheckBreak()
2170 }
2171 if yyb47 {
2172 z.DecReadArrayEnd()
2173 return
2174 }
2175 z.DecReadArrayElem()
2176 x.ProfileUseBackgroundImage = (bool)(r.DecodeBool())
2177 yyj47++
2178 if yyhl47 {
2179 yyb47 = yyj47 > l
2180 } else {
2181 yyb47 = z.DecCheckBreak()
2182 }
2183 if yyb47 {
2184 z.DecReadArrayEnd()
2185 return
2186 }
2187 z.DecReadArrayElem()
2188 x.Protected = (bool)(r.DecodeBool())
2189 yyj47++
2190 if yyhl47 {
2191 yyb47 = yyj47 > l
2192 } else {
2193 yyb47 = z.DecCheckBreak()
2194 }
2195 if yyb47 {
2196 z.DecReadArrayEnd()
2197 return
2198 }
2199 z.DecReadArrayElem()
2200 x.ScreenName = (string)(string(r.DecodeStringAsBytes()))
2201 yyj47++
2202 if yyhl47 {
2203 yyb47 = yyj47 > l
2204 } else {
2205 yyb47 = z.DecCheckBreak()
2206 }
2207 if yyb47 {
2208 z.DecReadArrayEnd()
2209 return
2210 }
2211 z.DecReadArrayElem()
2212 x.ShowAllInlineMedia = (bool)(r.DecodeBool())
2213 yyj47++
2214 if yyhl47 {
2215 yyb47 = yyj47 > l
2216 } else {
2217 yyb47 = z.DecCheckBreak()
2218 }
2219 if yyb47 {
2220 z.DecReadArrayEnd()
2221 return
2222 }
2223 z.DecReadArrayElem()
2224 x.StatusesCount = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize2736))
2225 yyj47++
2226 if yyhl47 {
2227 yyb47 = yyj47 > l
2228 } else {
2229 yyb47 = z.DecCheckBreak()
2230 }
2231 if yyb47 {
2232 z.DecReadArrayEnd()
2233 return
2234 }
2235 z.DecReadArrayElem()
2236 x.TimeZone = (string)(string(r.DecodeStringAsBytes()))
2237 yyj47++
2238 if yyhl47 {
2239 yyb47 = yyj47 > l
2240 } else {
2241 yyb47 = z.DecCheckBreak()
2242 }
2243 if yyb47 {
2244 z.DecReadArrayEnd()
2245 return
2246 }
2247 z.DecReadArrayElem()
2248 if r.TryNil() {
2249 if x.URL != nil { // remove the if-true
2250 x.URL = nil
2251 }
2252 } else {
2253 if x.URL == nil {
2254 x.URL = new(string)
2255 }
2256 *x.URL = (string)(string(r.DecodeStringAsBytes()))
2257 }
2258 yyj47++
2259 if yyhl47 {
2260 yyb47 = yyj47 > l
2261 } else {
2262 yyb47 = z.DecCheckBreak()
2263 }
2264 if yyb47 {
2265 z.DecReadArrayEnd()
2266 return
2267 }
2268 z.DecReadArrayElem()
2269 x.UtcOffset = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize2736))
2270 yyj47++
2271 if yyhl47 {
2272 yyb47 = yyj47 > l
2273 } else {
2274 yyb47 = z.DecCheckBreak()
2275 }
2276 if yyb47 {
2277 z.DecReadArrayEnd()
2278 return
2279 }
2280 z.DecReadArrayElem()
2281 x.Verified = (bool)(r.DecodeBool())
2282 for {
2283 yyj47++
2284 if yyhl47 {
2285 yyb47 = yyj47 > l
2286 } else {
2287 yyb47 = z.DecCheckBreak()
2288 }
2289 if yyb47 {
2290 break
2291 }
2292 z.DecReadArrayElem()
2293 z.DecStructFieldNotFound(yyj47-1, "")
2294 }
2295 }
2296
2297 func (x *StatusMetadata) CodecEncodeSelf(e *codec1978.Encoder) {
2298 var h codecSelfer2736
2299 z, r := codec1978.GenHelperEncoder(e)
2300 _, _, _ = h, z, r
2301 if x == nil {
2302 r.EncodeNil()
2303 } else {
2304 yysep2 := !z.EncBinary()
2305 yy2arr2 := z.EncBasicHandle().StructToArray
2306 _, _ = yysep2, yy2arr2
2307 const yyr2 bool = false // struct tag has 'toArray'
2308 if yyr2 || yy2arr2 {
2309 z.EncWriteArrayStart(2)
2310 z.EncWriteArrayElem()
2311 r.EncodeString(string(x.IsoLanguageCode))
2312 z.EncWriteArrayElem()
2313 r.EncodeString(string(x.ResultType))
2314 z.EncWriteArrayEnd()
2315 } else {
2316 z.EncWriteMapStart(2)
2317 z.EncWriteMapElemKey()
2318 r.EncodeString(`iso_language_code`)
2319 z.EncWriteMapElemValue()
2320 r.EncodeString(string(x.IsoLanguageCode))
2321 z.EncWriteMapElemKey()
2322 r.EncodeString(`result_type`)
2323 z.EncWriteMapElemValue()
2324 r.EncodeString(string(x.ResultType))
2325 z.EncWriteMapEnd()
2326 }
2327 }
2328 }
2329
2330 func (x *StatusMetadata) CodecDecodeSelf(d *codec1978.Decoder) {
2331 var h codecSelfer2736
2332 z, r := codec1978.GenHelperDecoder(d)
2333 _, _, _ = h, z, r
2334 yyct2 := r.ContainerType()
2335 if yyct2 == codecSelferValueTypeNil2736 {
2336 *(x) = StatusMetadata{}
2337 } else if yyct2 == codecSelferValueTypeMap2736 {
2338 yyl2 := z.DecReadMapStart()
2339 if yyl2 == 0 {
2340 } else {
2341 x.codecDecodeSelfFromMap(yyl2, d)
2342 }
2343 z.DecReadMapEnd()
2344 } else if yyct2 == codecSelferValueTypeArray2736 {
2345 yyl2 := z.DecReadArrayStart()
2346 if yyl2 != 0 {
2347 x.codecDecodeSelfFromArray(yyl2, d)
2348 }
2349 z.DecReadArrayEnd()
2350 } else {
2351 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct2736)
2352 }
2353 }
2354
2355 func (x *StatusMetadata) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
2356 var h codecSelfer2736
2357 z, r := codec1978.GenHelperDecoder(d)
2358 _, _, _ = h, z, r
2359 var yyhl3 bool = l >= 0
2360 for yyj3 := 0; ; yyj3++ {
2361 if yyhl3 {
2362 if yyj3 >= l {
2363 break
2364 }
2365 } else {
2366 if z.DecCheckBreak() {
2367 break
2368 }
2369 }
2370 z.DecReadMapElemKey()
2371 yys3 := z.StringView(r.DecodeStringAsBytes())
2372 z.DecReadMapElemValue()
2373 switch yys3 {
2374 case "iso_language_code":
2375 x.IsoLanguageCode = (string)(string(r.DecodeStringAsBytes()))
2376 case "result_type":
2377 x.ResultType = (string)(string(r.DecodeStringAsBytes()))
2378 default:
2379 z.DecStructFieldNotFound(-1, yys3)
2380 } // end switch yys3
2381 } // end for yyj3
2382 }
2383
2384 func (x *StatusMetadata) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
2385 var h codecSelfer2736
2386 z, r := codec1978.GenHelperDecoder(d)
2387 _, _, _ = h, z, r
2388 var yyj6 int
2389 var yyb6 bool
2390 var yyhl6 bool = l >= 0
2391 yyj6++
2392 if yyhl6 {
2393 yyb6 = yyj6 > l
2394 } else {
2395 yyb6 = z.DecCheckBreak()
2396 }
2397 if yyb6 {
2398 z.DecReadArrayEnd()
2399 return
2400 }
2401 z.DecReadArrayElem()
2402 x.IsoLanguageCode = (string)(string(r.DecodeStringAsBytes()))
2403 yyj6++
2404 if yyhl6 {
2405 yyb6 = yyj6 > l
2406 } else {
2407 yyb6 = z.DecCheckBreak()
2408 }
2409 if yyb6 {
2410 z.DecReadArrayEnd()
2411 return
2412 }
2413 z.DecReadArrayElem()
2414 x.ResultType = (string)(string(r.DecodeStringAsBytes()))
2415 for {
2416 yyj6++
2417 if yyhl6 {
2418 yyb6 = yyj6 > l
2419 } else {
2420 yyb6 = z.DecCheckBreak()
2421 }
2422 if yyb6 {
2423 break
2424 }
2425 z.DecReadArrayElem()
2426 z.DecStructFieldNotFound(yyj6-1, "")
2427 }
2428 }
2429
2430 func (x *Status) CodecEncodeSelf(e *codec1978.Encoder) {
2431 var h codecSelfer2736
2432 z, r := codec1978.GenHelperEncoder(e)
2433 _, _, _ = h, z, r
2434 if x == nil {
2435 r.EncodeNil()
2436 } else {
2437 yysep2 := !z.EncBinary()
2438 yy2arr2 := z.EncBasicHandle().StructToArray
2439 _, _ = yysep2, yy2arr2
2440 const yyr2 bool = false // struct tag has 'toArray'
2441 var yyn3 bool = x.Contributors == nil
2442 var yyn4 bool = x.Coordinates == nil
2443 var yyn8 bool = x.Geo == nil
2444 var yyn11 bool = x.InReplyToScreenName == nil
2445 var yyn12 bool = x.InReplyToStatusID == nil
2446 var yyn13 bool = x.InReplyToStatusIDStr == nil
2447 var yyn14 bool = x.InReplyToUserID == nil
2448 var yyn15 bool = x.InReplyToUserIDStr == nil
2449 var yyn17 bool = x.Place == nil
2450 if yyr2 || yy2arr2 {
2451 z.EncWriteArrayStart(21)
2452 if yyn3 {
2453 z.EncWriteArrayElem()
2454 r.EncodeNil()
2455 } else {
2456 z.EncWriteArrayElem()
2457 yy24 := *x.Contributors
2458 r.EncodeString(string(yy24))
2459 }
2460 if yyn4 {
2461 z.EncWriteArrayElem()
2462 r.EncodeNil()
2463 } else {
2464 z.EncWriteArrayElem()
2465 yy26 := *x.Coordinates
2466 r.EncodeString(string(yy26))
2467 }
2468 z.EncWriteArrayElem()
2469 r.EncodeString(string(x.CreatedAt))
2470 z.EncWriteArrayElem()
2471 yy29 := &x.Entities
2472 yy29.CodecEncodeSelf(e)
2473 z.EncWriteArrayElem()
2474 r.EncodeBool(bool(x.Favorited))
2475 if yyn8 {
2476 z.EncWriteArrayElem()
2477 r.EncodeNil()
2478 } else {
2479 z.EncWriteArrayElem()
2480 yy32 := *x.Geo
2481 r.EncodeString(string(yy32))
2482 }
2483 z.EncWriteArrayElem()
2484 r.EncodeInt(int64(x.ID))
2485 z.EncWriteArrayElem()
2486 r.EncodeString(string(x.IDStr))
2487 if yyn11 {
2488 z.EncWriteArrayElem()
2489 r.EncodeNil()
2490 } else {
2491 z.EncWriteArrayElem()
2492 yy36 := *x.InReplyToScreenName
2493 r.EncodeString(string(yy36))
2494 }
2495 if yyn12 {
2496 z.EncWriteArrayElem()
2497 r.EncodeNil()
2498 } else {
2499 z.EncWriteArrayElem()
2500 yy38 := *x.InReplyToStatusID
2501 r.EncodeString(string(yy38))
2502 }
2503 if yyn13 {
2504 z.EncWriteArrayElem()
2505 r.EncodeNil()
2506 } else {
2507 z.EncWriteArrayElem()
2508 yy40 := *x.InReplyToStatusIDStr
2509 r.EncodeString(string(yy40))
2510 }
2511 if yyn14 {
2512 z.EncWriteArrayElem()
2513 r.EncodeNil()
2514 } else {
2515 z.EncWriteArrayElem()
2516 yy42 := *x.InReplyToUserID
2517 r.EncodeString(string(yy42))
2518 }
2519 if yyn15 {
2520 z.EncWriteArrayElem()
2521 r.EncodeNil()
2522 } else {
2523 z.EncWriteArrayElem()
2524 yy44 := *x.InReplyToUserIDStr
2525 r.EncodeString(string(yy44))
2526 }
2527 z.EncWriteArrayElem()
2528 yy46 := &x.Metadata
2529 yy46.CodecEncodeSelf(e)
2530 if yyn17 {
2531 z.EncWriteArrayElem()
2532 r.EncodeNil()
2533 } else {
2534 z.EncWriteArrayElem()
2535 yy48 := *x.Place
2536 r.EncodeString(string(yy48))
2537 }
2538 z.EncWriteArrayElem()
2539 r.EncodeInt(int64(x.RetweetCount))
2540 z.EncWriteArrayElem()
2541 r.EncodeBool(bool(x.Retweeted))
2542 z.EncWriteArrayElem()
2543 r.EncodeString(string(x.Source))
2544 z.EncWriteArrayElem()
2545 r.EncodeString(string(x.Text))
2546 z.EncWriteArrayElem()
2547 r.EncodeBool(bool(x.Truncated))
2548 z.EncWriteArrayElem()
2549 yy55 := &x.User
2550 yy55.CodecEncodeSelf(e)
2551 z.EncWriteArrayEnd()
2552 } else {
2553 z.EncWriteMapStart(21)
2554 z.EncWriteMapElemKey()
2555 if z.IsJSONHandle() {
2556 z.WriteStr("\"contributors\"")
2557 } else {
2558 r.EncodeString(`contributors`)
2559 }
2560 z.EncWriteMapElemValue()
2561 if yyn3 {
2562 r.EncodeNil()
2563 } else {
2564 yy57 := *x.Contributors
2565 r.EncodeString(string(yy57))
2566 }
2567 z.EncWriteMapElemKey()
2568 if z.IsJSONHandle() {
2569 z.WriteStr("\"coordinates\"")
2570 } else {
2571 r.EncodeString(`coordinates`)
2572 }
2573 z.EncWriteMapElemValue()
2574 if yyn4 {
2575 r.EncodeNil()
2576 } else {
2577 yy59 := *x.Coordinates
2578 r.EncodeString(string(yy59))
2579 }
2580 z.EncWriteMapElemKey()
2581 r.EncodeString(`created_at`)
2582 z.EncWriteMapElemValue()
2583 r.EncodeString(string(x.CreatedAt))
2584 z.EncWriteMapElemKey()
2585 if z.IsJSONHandle() {
2586 z.WriteStr("\"entities\"")
2587 } else {
2588 r.EncodeString(`entities`)
2589 }
2590 z.EncWriteMapElemValue()
2591 yy62 := &x.Entities
2592 yy62.CodecEncodeSelf(e)
2593 z.EncWriteMapElemKey()
2594 if z.IsJSONHandle() {
2595 z.WriteStr("\"favorited\"")
2596 } else {
2597 r.EncodeString(`favorited`)
2598 }
2599 z.EncWriteMapElemValue()
2600 r.EncodeBool(bool(x.Favorited))
2601 z.EncWriteMapElemKey()
2602 if z.IsJSONHandle() {
2603 z.WriteStr("\"geo\"")
2604 } else {
2605 r.EncodeString(`geo`)
2606 }
2607 z.EncWriteMapElemValue()
2608 if yyn8 {
2609 r.EncodeNil()
2610 } else {
2611 yy65 := *x.Geo
2612 r.EncodeString(string(yy65))
2613 }
2614 z.EncWriteMapElemKey()
2615 if z.IsJSONHandle() {
2616 z.WriteStr("\"id\"")
2617 } else {
2618 r.EncodeString(`id`)
2619 }
2620 z.EncWriteMapElemValue()
2621 r.EncodeInt(int64(x.ID))
2622 z.EncWriteMapElemKey()
2623 r.EncodeString(`id_str`)
2624 z.EncWriteMapElemValue()
2625 r.EncodeString(string(x.IDStr))
2626 z.EncWriteMapElemKey()
2627 r.EncodeString(`in_reply_to_screen_name`)
2628 z.EncWriteMapElemValue()
2629 if yyn11 {
2630 r.EncodeNil()
2631 } else {
2632 yy69 := *x.InReplyToScreenName
2633 r.EncodeString(string(yy69))
2634 }
2635 z.EncWriteMapElemKey()
2636 r.EncodeString(`in_reply_to_status_id`)
2637 z.EncWriteMapElemValue()
2638 if yyn12 {
2639 r.EncodeNil()
2640 } else {
2641 yy71 := *x.InReplyToStatusID
2642 r.EncodeString(string(yy71))
2643 }
2644 z.EncWriteMapElemKey()
2645 r.EncodeString(`in_reply_to_status_id_str`)
2646 z.EncWriteMapElemValue()
2647 if yyn13 {
2648 r.EncodeNil()
2649 } else {
2650 yy73 := *x.InReplyToStatusIDStr
2651 r.EncodeString(string(yy73))
2652 }
2653 z.EncWriteMapElemKey()
2654 r.EncodeString(`in_reply_to_user_id`)
2655 z.EncWriteMapElemValue()
2656 if yyn14 {
2657 r.EncodeNil()
2658 } else {
2659 yy75 := *x.InReplyToUserID
2660 r.EncodeString(string(yy75))
2661 }
2662 z.EncWriteMapElemKey()
2663 r.EncodeString(`in_reply_to_user_id_str`)
2664 z.EncWriteMapElemValue()
2665 if yyn15 {
2666 r.EncodeNil()
2667 } else {
2668 yy77 := *x.InReplyToUserIDStr
2669 r.EncodeString(string(yy77))
2670 }
2671 z.EncWriteMapElemKey()
2672 if z.IsJSONHandle() {
2673 z.WriteStr("\"metadata\"")
2674 } else {
2675 r.EncodeString(`metadata`)
2676 }
2677 z.EncWriteMapElemValue()
2678 yy79 := &x.Metadata
2679 yy79.CodecEncodeSelf(e)
2680 z.EncWriteMapElemKey()
2681 if z.IsJSONHandle() {
2682 z.WriteStr("\"place\"")
2683 } else {
2684 r.EncodeString(`place`)
2685 }
2686 z.EncWriteMapElemValue()
2687 if yyn17 {
2688 r.EncodeNil()
2689 } else {
2690 yy81 := *x.Place
2691 r.EncodeString(string(yy81))
2692 }
2693 z.EncWriteMapElemKey()
2694 r.EncodeString(`retweet_count`)
2695 z.EncWriteMapElemValue()
2696 r.EncodeInt(int64(x.RetweetCount))
2697 z.EncWriteMapElemKey()
2698 if z.IsJSONHandle() {
2699 z.WriteStr("\"retweeted\"")
2700 } else {
2701 r.EncodeString(`retweeted`)
2702 }
2703 z.EncWriteMapElemValue()
2704 r.EncodeBool(bool(x.Retweeted))
2705 z.EncWriteMapElemKey()
2706 if z.IsJSONHandle() {
2707 z.WriteStr("\"source\"")
2708 } else {
2709 r.EncodeString(`source`)
2710 }
2711 z.EncWriteMapElemValue()
2712 r.EncodeString(string(x.Source))
2713 z.EncWriteMapElemKey()
2714 if z.IsJSONHandle() {
2715 z.WriteStr("\"text\"")
2716 } else {
2717 r.EncodeString(`text`)
2718 }
2719 z.EncWriteMapElemValue()
2720 r.EncodeString(string(x.Text))
2721 z.EncWriteMapElemKey()
2722 if z.IsJSONHandle() {
2723 z.WriteStr("\"truncated\"")
2724 } else {
2725 r.EncodeString(`truncated`)
2726 }
2727 z.EncWriteMapElemValue()
2728 r.EncodeBool(bool(x.Truncated))
2729 z.EncWriteMapElemKey()
2730 if z.IsJSONHandle() {
2731 z.WriteStr("\"user\"")
2732 } else {
2733 r.EncodeString(`user`)
2734 }
2735 z.EncWriteMapElemValue()
2736 yy88 := &x.User
2737 yy88.CodecEncodeSelf(e)
2738 z.EncWriteMapEnd()
2739 }
2740 }
2741 }
2742
2743 func (x *Status) CodecDecodeSelf(d *codec1978.Decoder) {
2744 var h codecSelfer2736
2745 z, r := codec1978.GenHelperDecoder(d)
2746 _, _, _ = h, z, r
2747 yyct2 := r.ContainerType()
2748 if yyct2 == codecSelferValueTypeNil2736 {
2749 *(x) = Status{}
2750 } else if yyct2 == codecSelferValueTypeMap2736 {
2751 yyl2 := z.DecReadMapStart()
2752 if yyl2 == 0 {
2753 } else {
2754 x.codecDecodeSelfFromMap(yyl2, d)
2755 }
2756 z.DecReadMapEnd()
2757 } else if yyct2 == codecSelferValueTypeArray2736 {
2758 yyl2 := z.DecReadArrayStart()
2759 if yyl2 != 0 {
2760 x.codecDecodeSelfFromArray(yyl2, d)
2761 }
2762 z.DecReadArrayEnd()
2763 } else {
2764 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct2736)
2765 }
2766 }
2767
2768 func (x *Status) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
2769 var h codecSelfer2736
2770 z, r := codec1978.GenHelperDecoder(d)
2771 _, _, _ = h, z, r
2772 var yyhl3 bool = l >= 0
2773 for yyj3 := 0; ; yyj3++ {
2774 if yyhl3 {
2775 if yyj3 >= l {
2776 break
2777 }
2778 } else {
2779 if z.DecCheckBreak() {
2780 break
2781 }
2782 }
2783 z.DecReadMapElemKey()
2784 yys3 := z.StringView(r.DecodeStringAsBytes())
2785 z.DecReadMapElemValue()
2786 switch yys3 {
2787 case "contributors":
2788 if r.TryNil() {
2789 if x.Contributors != nil { // remove the if-true
2790 x.Contributors = nil
2791 }
2792 } else {
2793 if x.Contributors == nil {
2794 x.Contributors = new(string)
2795 }
2796 *x.Contributors = (string)(string(r.DecodeStringAsBytes()))
2797 }
2798 case "coordinates":
2799 if r.TryNil() {
2800 if x.Coordinates != nil { // remove the if-true
2801 x.Coordinates = nil
2802 }
2803 } else {
2804 if x.Coordinates == nil {
2805 x.Coordinates = new(string)
2806 }
2807 *x.Coordinates = (string)(string(r.DecodeStringAsBytes()))
2808 }
2809 case "created_at":
2810 x.CreatedAt = (string)(string(r.DecodeStringAsBytes()))
2811 case "entities":
2812 x.Entities.CodecDecodeSelf(d)
2813 case "favorited":
2814 x.Favorited = (bool)(r.DecodeBool())
2815 case "geo":
2816 if r.TryNil() {
2817 if x.Geo != nil { // remove the if-true
2818 x.Geo = nil
2819 }
2820 } else {
2821 if x.Geo == nil {
2822 x.Geo = new(string)
2823 }
2824 *x.Geo = (string)(string(r.DecodeStringAsBytes()))
2825 }
2826 case "id":
2827 x.ID = (int64)(r.DecodeInt64())
2828 case "id_str":
2829 x.IDStr = (string)(string(r.DecodeStringAsBytes()))
2830 case "in_reply_to_screen_name":
2831 if r.TryNil() {
2832 if x.InReplyToScreenName != nil { // remove the if-true
2833 x.InReplyToScreenName = nil
2834 }
2835 } else {
2836 if x.InReplyToScreenName == nil {
2837 x.InReplyToScreenName = new(string)
2838 }
2839 *x.InReplyToScreenName = (string)(string(r.DecodeStringAsBytes()))
2840 }
2841 case "in_reply_to_status_id":
2842 if r.TryNil() {
2843 if x.InReplyToStatusID != nil { // remove the if-true
2844 x.InReplyToStatusID = nil
2845 }
2846 } else {
2847 if x.InReplyToStatusID == nil {
2848 x.InReplyToStatusID = new(string)
2849 }
2850 *x.InReplyToStatusID = (string)(string(r.DecodeStringAsBytes()))
2851 }
2852 case "in_reply_to_status_id_str":
2853 if r.TryNil() {
2854 if x.InReplyToStatusIDStr != nil { // remove the if-true
2855 x.InReplyToStatusIDStr = nil
2856 }
2857 } else {
2858 if x.InReplyToStatusIDStr == nil {
2859 x.InReplyToStatusIDStr = new(string)
2860 }
2861 *x.InReplyToStatusIDStr = (string)(string(r.DecodeStringAsBytes()))
2862 }
2863 case "in_reply_to_user_id":
2864 if r.TryNil() {
2865 if x.InReplyToUserID != nil { // remove the if-true
2866 x.InReplyToUserID = nil
2867 }
2868 } else {
2869 if x.InReplyToUserID == nil {
2870 x.InReplyToUserID = new(string)
2871 }
2872 *x.InReplyToUserID = (string)(string(r.DecodeStringAsBytes()))
2873 }
2874 case "in_reply_to_user_id_str":
2875 if r.TryNil() {
2876 if x.InReplyToUserIDStr != nil { // remove the if-true
2877 x.InReplyToUserIDStr = nil
2878 }
2879 } else {
2880 if x.InReplyToUserIDStr == nil {
2881 x.InReplyToUserIDStr = new(string)
2882 }
2883 *x.InReplyToUserIDStr = (string)(string(r.DecodeStringAsBytes()))
2884 }
2885 case "metadata":
2886 x.Metadata.CodecDecodeSelf(d)
2887 case "place":
2888 if r.TryNil() {
2889 if x.Place != nil { // remove the if-true
2890 x.Place = nil
2891 }
2892 } else {
2893 if x.Place == nil {
2894 x.Place = new(string)
2895 }
2896 *x.Place = (string)(string(r.DecodeStringAsBytes()))
2897 }
2898 case "retweet_count":
2899 x.RetweetCount = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize2736))
2900 case "retweeted":
2901 x.Retweeted = (bool)(r.DecodeBool())
2902 case "source":
2903 x.Source = (string)(string(r.DecodeStringAsBytes()))
2904 case "text":
2905 x.Text = (string)(string(r.DecodeStringAsBytes()))
2906 case "truncated":
2907 x.Truncated = (bool)(r.DecodeBool())
2908 case "user":
2909 x.User.CodecDecodeSelf(d)
2910 default:
2911 z.DecStructFieldNotFound(-1, yys3)
2912 } // end switch yys3
2913 } // end for yyj3
2914 }
2915
2916 func (x *Status) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
2917 var h codecSelfer2736
2918 z, r := codec1978.GenHelperDecoder(d)
2919 _, _, _ = h, z, r
2920 var yyj34 int
2921 var yyb34 bool
2922 var yyhl34 bool = l >= 0
2923 yyj34++
2924 if yyhl34 {
2925 yyb34 = yyj34 > l
2926 } else {
2927 yyb34 = z.DecCheckBreak()
2928 }
2929 if yyb34 {
2930 z.DecReadArrayEnd()
2931 return
2932 }
2933 z.DecReadArrayElem()
2934 if r.TryNil() {
2935 if x.Contributors != nil { // remove the if-true
2936 x.Contributors = nil
2937 }
2938 } else {
2939 if x.Contributors == nil {
2940 x.Contributors = new(string)
2941 }
2942 *x.Contributors = (string)(string(r.DecodeStringAsBytes()))
2943 }
2944 yyj34++
2945 if yyhl34 {
2946 yyb34 = yyj34 > l
2947 } else {
2948 yyb34 = z.DecCheckBreak()
2949 }
2950 if yyb34 {
2951 z.DecReadArrayEnd()
2952 return
2953 }
2954 z.DecReadArrayElem()
2955 if r.TryNil() {
2956 if x.Coordinates != nil { // remove the if-true
2957 x.Coordinates = nil
2958 }
2959 } else {
2960 if x.Coordinates == nil {
2961 x.Coordinates = new(string)
2962 }
2963 *x.Coordinates = (string)(string(r.DecodeStringAsBytes()))
2964 }
2965 yyj34++
2966 if yyhl34 {
2967 yyb34 = yyj34 > l
2968 } else {
2969 yyb34 = z.DecCheckBreak()
2970 }
2971 if yyb34 {
2972 z.DecReadArrayEnd()
2973 return
2974 }
2975 z.DecReadArrayElem()
2976 x.CreatedAt = (string)(string(r.DecodeStringAsBytes()))
2977 yyj34++
2978 if yyhl34 {
2979 yyb34 = yyj34 > l
2980 } else {
2981 yyb34 = z.DecCheckBreak()
2982 }
2983 if yyb34 {
2984 z.DecReadArrayEnd()
2985 return
2986 }
2987 z.DecReadArrayElem()
2988 x.Entities.CodecDecodeSelf(d)
2989 yyj34++
2990 if yyhl34 {
2991 yyb34 = yyj34 > l
2992 } else {
2993 yyb34 = z.DecCheckBreak()
2994 }
2995 if yyb34 {
2996 z.DecReadArrayEnd()
2997 return
2998 }
2999 z.DecReadArrayElem()
3000 x.Favorited = (bool)(r.DecodeBool())
3001 yyj34++
3002 if yyhl34 {
3003 yyb34 = yyj34 > l
3004 } else {
3005 yyb34 = z.DecCheckBreak()
3006 }
3007 if yyb34 {
3008 z.DecReadArrayEnd()
3009 return
3010 }
3011 z.DecReadArrayElem()
3012 if r.TryNil() {
3013 if x.Geo != nil { // remove the if-true
3014 x.Geo = nil
3015 }
3016 } else {
3017 if x.Geo == nil {
3018 x.Geo = new(string)
3019 }
3020 *x.Geo = (string)(string(r.DecodeStringAsBytes()))
3021 }
3022 yyj34++
3023 if yyhl34 {
3024 yyb34 = yyj34 > l
3025 } else {
3026 yyb34 = z.DecCheckBreak()
3027 }
3028 if yyb34 {
3029 z.DecReadArrayEnd()
3030 return
3031 }
3032 z.DecReadArrayElem()
3033 x.ID = (int64)(r.DecodeInt64())
3034 yyj34++
3035 if yyhl34 {
3036 yyb34 = yyj34 > l
3037 } else {
3038 yyb34 = z.DecCheckBreak()
3039 }
3040 if yyb34 {
3041 z.DecReadArrayEnd()
3042 return
3043 }
3044 z.DecReadArrayElem()
3045 x.IDStr = (string)(string(r.DecodeStringAsBytes()))
3046 yyj34++
3047 if yyhl34 {
3048 yyb34 = yyj34 > l
3049 } else {
3050 yyb34 = z.DecCheckBreak()
3051 }
3052 if yyb34 {
3053 z.DecReadArrayEnd()
3054 return
3055 }
3056 z.DecReadArrayElem()
3057 if r.TryNil() {
3058 if x.InReplyToScreenName != nil { // remove the if-true
3059 x.InReplyToScreenName = nil
3060 }
3061 } else {
3062 if x.InReplyToScreenName == nil {
3063 x.InReplyToScreenName = new(string)
3064 }
3065 *x.InReplyToScreenName = (string)(string(r.DecodeStringAsBytes()))
3066 }
3067 yyj34++
3068 if yyhl34 {
3069 yyb34 = yyj34 > l
3070 } else {
3071 yyb34 = z.DecCheckBreak()
3072 }
3073 if yyb34 {
3074 z.DecReadArrayEnd()
3075 return
3076 }
3077 z.DecReadArrayElem()
3078 if r.TryNil() {
3079 if x.InReplyToStatusID != nil { // remove the if-true
3080 x.InReplyToStatusID = nil
3081 }
3082 } else {
3083 if x.InReplyToStatusID == nil {
3084 x.InReplyToStatusID = new(string)
3085 }
3086 *x.InReplyToStatusID = (string)(string(r.DecodeStringAsBytes()))
3087 }
3088 yyj34++
3089 if yyhl34 {
3090 yyb34 = yyj34 > l
3091 } else {
3092 yyb34 = z.DecCheckBreak()
3093 }
3094 if yyb34 {
3095 z.DecReadArrayEnd()
3096 return
3097 }
3098 z.DecReadArrayElem()
3099 if r.TryNil() {
3100 if x.InReplyToStatusIDStr != nil { // remove the if-true
3101 x.InReplyToStatusIDStr = nil
3102 }
3103 } else {
3104 if x.InReplyToStatusIDStr == nil {
3105 x.InReplyToStatusIDStr = new(string)
3106 }
3107 *x.InReplyToStatusIDStr = (string)(string(r.DecodeStringAsBytes()))
3108 }
3109 yyj34++
3110 if yyhl34 {
3111 yyb34 = yyj34 > l
3112 } else {
3113 yyb34 = z.DecCheckBreak()
3114 }
3115 if yyb34 {
3116 z.DecReadArrayEnd()
3117 return
3118 }
3119 z.DecReadArrayElem()
3120 if r.TryNil() {
3121 if x.InReplyToUserID != nil { // remove the if-true
3122 x.InReplyToUserID = nil
3123 }
3124 } else {
3125 if x.InReplyToUserID == nil {
3126 x.InReplyToUserID = new(string)
3127 }
3128 *x.InReplyToUserID = (string)(string(r.DecodeStringAsBytes()))
3129 }
3130 yyj34++
3131 if yyhl34 {
3132 yyb34 = yyj34 > l
3133 } else {
3134 yyb34 = z.DecCheckBreak()
3135 }
3136 if yyb34 {
3137 z.DecReadArrayEnd()
3138 return
3139 }
3140 z.DecReadArrayElem()
3141 if r.TryNil() {
3142 if x.InReplyToUserIDStr != nil { // remove the if-true
3143 x.InReplyToUserIDStr = nil
3144 }
3145 } else {
3146 if x.InReplyToUserIDStr == nil {
3147 x.InReplyToUserIDStr = new(string)
3148 }
3149 *x.InReplyToUserIDStr = (string)(string(r.DecodeStringAsBytes()))
3150 }
3151 yyj34++
3152 if yyhl34 {
3153 yyb34 = yyj34 > l
3154 } else {
3155 yyb34 = z.DecCheckBreak()
3156 }
3157 if yyb34 {
3158 z.DecReadArrayEnd()
3159 return
3160 }
3161 z.DecReadArrayElem()
3162 x.Metadata.CodecDecodeSelf(d)
3163 yyj34++
3164 if yyhl34 {
3165 yyb34 = yyj34 > l
3166 } else {
3167 yyb34 = z.DecCheckBreak()
3168 }
3169 if yyb34 {
3170 z.DecReadArrayEnd()
3171 return
3172 }
3173 z.DecReadArrayElem()
3174 if r.TryNil() {
3175 if x.Place != nil { // remove the if-true
3176 x.Place = nil
3177 }
3178 } else {
3179 if x.Place == nil {
3180 x.Place = new(string)
3181 }
3182 *x.Place = (string)(string(r.DecodeStringAsBytes()))
3183 }
3184 yyj34++
3185 if yyhl34 {
3186 yyb34 = yyj34 > l
3187 } else {
3188 yyb34 = z.DecCheckBreak()
3189 }
3190 if yyb34 {
3191 z.DecReadArrayEnd()
3192 return
3193 }
3194 z.DecReadArrayElem()
3195 x.RetweetCount = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize2736))
3196 yyj34++
3197 if yyhl34 {
3198 yyb34 = yyj34 > l
3199 } else {
3200 yyb34 = z.DecCheckBreak()
3201 }
3202 if yyb34 {
3203 z.DecReadArrayEnd()
3204 return
3205 }
3206 z.DecReadArrayElem()
3207 x.Retweeted = (bool)(r.DecodeBool())
3208 yyj34++
3209 if yyhl34 {
3210 yyb34 = yyj34 > l
3211 } else {
3212 yyb34 = z.DecCheckBreak()
3213 }
3214 if yyb34 {
3215 z.DecReadArrayEnd()
3216 return
3217 }
3218 z.DecReadArrayElem()
3219 x.Source = (string)(string(r.DecodeStringAsBytes()))
3220 yyj34++
3221 if yyhl34 {
3222 yyb34 = yyj34 > l
3223 } else {
3224 yyb34 = z.DecCheckBreak()
3225 }
3226 if yyb34 {
3227 z.DecReadArrayEnd()
3228 return
3229 }
3230 z.DecReadArrayElem()
3231 x.Text = (string)(string(r.DecodeStringAsBytes()))
3232 yyj34++
3233 if yyhl34 {
3234 yyb34 = yyj34 > l
3235 } else {
3236 yyb34 = z.DecCheckBreak()
3237 }
3238 if yyb34 {
3239 z.DecReadArrayEnd()
3240 return
3241 }
3242 z.DecReadArrayElem()
3243 x.Truncated = (bool)(r.DecodeBool())
3244 yyj34++
3245 if yyhl34 {
3246 yyb34 = yyj34 > l
3247 } else {
3248 yyb34 = z.DecCheckBreak()
3249 }
3250 if yyb34 {
3251 z.DecReadArrayEnd()
3252 return
3253 }
3254 z.DecReadArrayElem()
3255 x.User.CodecDecodeSelf(d)
3256 for {
3257 yyj34++
3258 if yyhl34 {
3259 yyb34 = yyj34 > l
3260 } else {
3261 yyb34 = z.DecCheckBreak()
3262 }
3263 if yyb34 {
3264 break
3265 }
3266 z.DecReadArrayElem()
3267 z.DecStructFieldNotFound(yyj34-1, "")
3268 }
3269 }
3270
3271 func (x *LargeStruct) CodecEncodeSelf(e *codec1978.Encoder) {
3272 var h codecSelfer2736
3273 z, r := codec1978.GenHelperEncoder(e)
3274 _, _, _ = h, z, r
3275 if x == nil {
3276 r.EncodeNil()
3277 } else {
3278 yysep2 := !z.EncBinary()
3279 yy2arr2 := z.EncBasicHandle().StructToArray
3280 _, _ = yysep2, yy2arr2
3281 const yyr2 bool = false // struct tag has 'toArray'
3282 if yyr2 || yy2arr2 {
3283 z.EncWriteArrayStart(2)
3284 z.EncWriteArrayElem()
3285 yy5 := &x.SearchMetadata
3286 yy5.CodecEncodeSelf(e)
3287 z.EncWriteArrayElem()
3288 if x.Statuses == nil {
3289 r.EncodeNil()
3290 } else {
3291 h.encSliceStatus(([]Status)(x.Statuses), e)
3292 } // end block: if x.Statuses slice == nil
3293 z.EncWriteArrayEnd()
3294 } else {
3295 z.EncWriteMapStart(2)
3296 z.EncWriteMapElemKey()
3297 r.EncodeString(`search_metadata`)
3298 z.EncWriteMapElemValue()
3299 yy8 := &x.SearchMetadata
3300 yy8.CodecEncodeSelf(e)
3301 z.EncWriteMapElemKey()
3302 if z.IsJSONHandle() {
3303 z.WriteStr("\"statuses\"")
3304 } else {
3305 r.EncodeString(`statuses`)
3306 }
3307 z.EncWriteMapElemValue()
3308 if x.Statuses == nil {
3309 r.EncodeNil()
3310 } else {
3311 h.encSliceStatus(([]Status)(x.Statuses), e)
3312 } // end block: if x.Statuses slice == nil
3313 z.EncWriteMapEnd()
3314 }
3315 }
3316 }
3317
3318 func (x *LargeStruct) CodecDecodeSelf(d *codec1978.Decoder) {
3319 var h codecSelfer2736
3320 z, r := codec1978.GenHelperDecoder(d)
3321 _, _, _ = h, z, r
3322 yyct2 := r.ContainerType()
3323 if yyct2 == codecSelferValueTypeNil2736 {
3324 *(x) = LargeStruct{}
3325 } else if yyct2 == codecSelferValueTypeMap2736 {
3326 yyl2 := z.DecReadMapStart()
3327 if yyl2 == 0 {
3328 } else {
3329 x.codecDecodeSelfFromMap(yyl2, d)
3330 }
3331 z.DecReadMapEnd()
3332 } else if yyct2 == codecSelferValueTypeArray2736 {
3333 yyl2 := z.DecReadArrayStart()
3334 if yyl2 != 0 {
3335 x.codecDecodeSelfFromArray(yyl2, d)
3336 }
3337 z.DecReadArrayEnd()
3338 } else {
3339 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct2736)
3340 }
3341 }
3342
3343 func (x *LargeStruct) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
3344 var h codecSelfer2736
3345 z, r := codec1978.GenHelperDecoder(d)
3346 _, _, _ = h, z, r
3347 var yyhl3 bool = l >= 0
3348 for yyj3 := 0; ; yyj3++ {
3349 if yyhl3 {
3350 if yyj3 >= l {
3351 break
3352 }
3353 } else {
3354 if z.DecCheckBreak() {
3355 break
3356 }
3357 }
3358 z.DecReadMapElemKey()
3359 yys3 := z.StringView(r.DecodeStringAsBytes())
3360 z.DecReadMapElemValue()
3361 switch yys3 {
3362 case "search_metadata":
3363 x.SearchMetadata.CodecDecodeSelf(d)
3364 case "statuses":
3365 h.decSliceStatus((*[]Status)(&x.Statuses), d)
3366 default:
3367 z.DecStructFieldNotFound(-1, yys3)
3368 } // end switch yys3
3369 } // end for yyj3
3370 }
3371
3372 func (x *LargeStruct) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
3373 var h codecSelfer2736
3374 z, r := codec1978.GenHelperDecoder(d)
3375 _, _, _ = h, z, r
3376 var yyj7 int
3377 var yyb7 bool
3378 var yyhl7 bool = l >= 0
3379 yyj7++
3380 if yyhl7 {
3381 yyb7 = yyj7 > l
3382 } else {
3383 yyb7 = z.DecCheckBreak()
3384 }
3385 if yyb7 {
3386 z.DecReadArrayEnd()
3387 return
3388 }
3389 z.DecReadArrayElem()
3390 x.SearchMetadata.CodecDecodeSelf(d)
3391 yyj7++
3392 if yyhl7 {
3393 yyb7 = yyj7 > l
3394 } else {
3395 yyb7 = z.DecCheckBreak()
3396 }
3397 if yyb7 {
3398 z.DecReadArrayEnd()
3399 return
3400 }
3401 z.DecReadArrayElem()
3402 h.decSliceStatus((*[]Status)(&x.Statuses), d)
3403 for {
3404 yyj7++
3405 if yyhl7 {
3406 yyb7 = yyj7 > l
3407 } else {
3408 yyb7 = z.DecCheckBreak()
3409 }
3410 if yyb7 {
3411 break
3412 }
3413 z.DecReadArrayElem()
3414 z.DecStructFieldNotFound(yyj7-1, "")
3415 }
3416 }
3417
3418 func (x *XLStruct) CodecEncodeSelf(e *codec1978.Encoder) {
3419 var h codecSelfer2736
3420 z, r := codec1978.GenHelperEncoder(e)
3421 _, _, _ = h, z, r
3422 if x == nil {
3423 r.EncodeNil()
3424 } else {
3425 yysep2 := !z.EncBinary()
3426 yy2arr2 := z.EncBasicHandle().StructToArray
3427 _, _ = yysep2, yy2arr2
3428 const yyr2 bool = false // struct tag has 'toArray'
3429 if yyr2 || yy2arr2 {
3430 z.EncWriteArrayStart(1)
3431 z.EncWriteArrayElem()
3432 if x.Data == nil {
3433 r.EncodeNil()
3434 } else {
3435 h.encSliceLargeStruct(([]LargeStruct)(x.Data), e)
3436 } // end block: if x.Data slice == nil
3437 z.EncWriteArrayEnd()
3438 } else {
3439 z.EncWriteMapStart(1)
3440 z.EncWriteMapElemKey()
3441 if z.IsJSONHandle() {
3442 z.WriteStr("\"Data\"")
3443 } else {
3444 r.EncodeString(`Data`)
3445 }
3446 z.EncWriteMapElemValue()
3447 if x.Data == nil {
3448 r.EncodeNil()
3449 } else {
3450 h.encSliceLargeStruct(([]LargeStruct)(x.Data), e)
3451 } // end block: if x.Data slice == nil
3452 z.EncWriteMapEnd()
3453 }
3454 }
3455 }
3456
3457 func (x *XLStruct) CodecDecodeSelf(d *codec1978.Decoder) {
3458 var h codecSelfer2736
3459 z, r := codec1978.GenHelperDecoder(d)
3460 _, _, _ = h, z, r
3461 yyct2 := r.ContainerType()
3462 if yyct2 == codecSelferValueTypeNil2736 {
3463 *(x) = XLStruct{}
3464 } else if yyct2 == codecSelferValueTypeMap2736 {
3465 yyl2 := z.DecReadMapStart()
3466 if yyl2 == 0 {
3467 } else {
3468 x.codecDecodeSelfFromMap(yyl2, d)
3469 }
3470 z.DecReadMapEnd()
3471 } else if yyct2 == codecSelferValueTypeArray2736 {
3472 yyl2 := z.DecReadArrayStart()
3473 if yyl2 != 0 {
3474 x.codecDecodeSelfFromArray(yyl2, d)
3475 }
3476 z.DecReadArrayEnd()
3477 } else {
3478 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct2736)
3479 }
3480 }
3481
3482 func (x *XLStruct) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
3483 var h codecSelfer2736
3484 z, r := codec1978.GenHelperDecoder(d)
3485 _, _, _ = h, z, r
3486 var yyhl3 bool = l >= 0
3487 for yyj3 := 0; ; yyj3++ {
3488 if yyhl3 {
3489 if yyj3 >= l {
3490 break
3491 }
3492 } else {
3493 if z.DecCheckBreak() {
3494 break
3495 }
3496 }
3497 z.DecReadMapElemKey()
3498 yys3 := z.StringView(r.DecodeStringAsBytes())
3499 z.DecReadMapElemValue()
3500 switch yys3 {
3501 case "Data":
3502 h.decSliceLargeStruct((*[]LargeStruct)(&x.Data), d)
3503 default:
3504 z.DecStructFieldNotFound(-1, yys3)
3505 } // end switch yys3
3506 } // end for yyj3
3507 }
3508
3509 func (x *XLStruct) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
3510 var h codecSelfer2736
3511 z, r := codec1978.GenHelperDecoder(d)
3512 _, _, _ = h, z, r
3513 var yyj6 int
3514 var yyb6 bool
3515 var yyhl6 bool = l >= 0
3516 yyj6++
3517 if yyhl6 {
3518 yyb6 = yyj6 > l
3519 } else {
3520 yyb6 = z.DecCheckBreak()
3521 }
3522 if yyb6 {
3523 z.DecReadArrayEnd()
3524 return
3525 }
3526 z.DecReadArrayElem()
3527 h.decSliceLargeStruct((*[]LargeStruct)(&x.Data), d)
3528 for {
3529 yyj6++
3530 if yyhl6 {
3531 yyb6 = yyj6 > l
3532 } else {
3533 yyb6 = z.DecCheckBreak()
3534 }
3535 if yyb6 {
3536 break
3537 }
3538 z.DecReadArrayElem()
3539 z.DecStructFieldNotFound(yyj6-1, "")
3540 }
3541 }
3542
3543 func (x codecSelfer2736) encSliceHashtag(v []Hashtag, e *codec1978.Encoder) {
3544 var h codecSelfer2736
3545 z, r := codec1978.GenHelperEncoder(e)
3546 _, _, _ = h, z, r
3547 if v == nil {
3548 r.EncodeNil()
3549 return
3550 }
3551 z.EncWriteArrayStart(len(v))
3552 for _, yyv1 := range v {
3553 z.EncWriteArrayElem()
3554 yy2 := &yyv1
3555 yy2.CodecEncodeSelf(e)
3556 }
3557 z.EncWriteArrayEnd()
3558 }
3559
3560 func (x codecSelfer2736) decSliceHashtag(v *[]Hashtag, d *codec1978.Decoder) {
3561 var h codecSelfer2736
3562 z, r := codec1978.GenHelperDecoder(d)
3563 _, _, _ = h, z, r
3564
3565 yyv1 := *v
3566 yyh1, yyl1 := z.DecSliceHelperStart()
3567 var yyc1 bool
3568 _ = yyc1
3569 if yyh1.IsNil {
3570 if yyv1 != nil {
3571 yyv1 = nil
3572 yyc1 = true
3573 }
3574 } else if yyl1 == 0 {
3575 if yyv1 == nil {
3576 yyv1 = []Hashtag{}
3577 yyc1 = true
3578 } else if len(yyv1) != 0 {
3579 yyv1 = yyv1[:0]
3580 yyc1 = true
3581 }
3582 } else {
3583 yyhl1 := yyl1 > 0
3584 var yyrl1 int
3585 _ = yyrl1
3586 if yyhl1 {
3587 if yyl1 > cap(yyv1) {
3588 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 40)
3589 if yyrl1 <= cap(yyv1) {
3590 yyv1 = yyv1[:yyrl1]
3591 } else {
3592 yyv1 = make([]Hashtag, yyrl1)
3593 }
3594 yyc1 = true
3595 } else if yyl1 != len(yyv1) {
3596 yyv1 = yyv1[:yyl1]
3597 yyc1 = true
3598 }
3599 }
3600 var yyj1 int
3601 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination
3602 if yyj1 == 0 && yyv1 == nil {
3603 if yyhl1 {
3604 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 40)
3605 } else {
3606 yyrl1 = 8
3607 }
3608 yyv1 = make([]Hashtag, yyrl1)
3609 yyc1 = true
3610 }
3611 yyh1.ElemContainerState(yyj1)
3612 var yydb1 bool
3613 if yyj1 >= len(yyv1) {
3614 yyv1 = append(yyv1, Hashtag{})
3615 yyc1 = true
3616 }
3617 if yydb1 {
3618 z.DecSwallow()
3619 } else {
3620 yyv1[yyj1].CodecDecodeSelf(d)
3621 }
3622 }
3623 if yyj1 < len(yyv1) {
3624 yyv1 = yyv1[:yyj1]
3625 yyc1 = true
3626 } else if yyj1 == 0 && yyv1 == nil {
3627 yyv1 = make([]Hashtag, 0)
3628 yyc1 = true
3629 }
3630 }
3631 yyh1.End()
3632 if yyc1 {
3633 *v = yyv1
3634 }
3635 }
3636
3637 func (x codecSelfer2736) encSlicePtrtostring(v []*string, e *codec1978.Encoder) {
3638 var h codecSelfer2736
3639 z, r := codec1978.GenHelperEncoder(e)
3640 _, _, _ = h, z, r
3641 if v == nil {
3642 r.EncodeNil()
3643 return
3644 }
3645 z.EncWriteArrayStart(len(v))
3646 for _, yyv1 := range v {
3647 z.EncWriteArrayElem()
3648 if yyv1 == nil {
3649 r.EncodeNil()
3650 } else {
3651 yy2 := *yyv1
3652 r.EncodeString(string(yy2))
3653 }
3654 }
3655 z.EncWriteArrayEnd()
3656 }
3657
3658 func (x codecSelfer2736) decSlicePtrtostring(v *[]*string, d *codec1978.Decoder) {
3659 var h codecSelfer2736
3660 z, r := codec1978.GenHelperDecoder(d)
3661 _, _, _ = h, z, r
3662
3663 yyv1 := *v
3664 yyh1, yyl1 := z.DecSliceHelperStart()
3665 var yyc1 bool
3666 _ = yyc1
3667 if yyh1.IsNil {
3668 if yyv1 != nil {
3669 yyv1 = nil
3670 yyc1 = true
3671 }
3672 } else if yyl1 == 0 {
3673 if yyv1 == nil {
3674 yyv1 = []*string{}
3675 yyc1 = true
3676 } else if len(yyv1) != 0 {
3677 yyv1 = yyv1[:0]
3678 yyc1 = true
3679 }
3680 } else {
3681 yyhl1 := yyl1 > 0
3682 var yyrl1 int
3683 _ = yyrl1
3684 if yyhl1 {
3685 if yyl1 > cap(yyv1) {
3686 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
3687 if yyrl1 <= cap(yyv1) {
3688 yyv1 = yyv1[:yyrl1]
3689 } else {
3690 yyv1 = make([]*string, yyrl1)
3691 }
3692 yyc1 = true
3693 } else if yyl1 != len(yyv1) {
3694 yyv1 = yyv1[:yyl1]
3695 yyc1 = true
3696 }
3697 }
3698 var yyj1 int
3699 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination
3700 if yyj1 == 0 && yyv1 == nil {
3701 if yyhl1 {
3702 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
3703 } else {
3704 yyrl1 = 8
3705 }
3706 yyv1 = make([]*string, yyrl1)
3707 yyc1 = true
3708 }
3709 yyh1.ElemContainerState(yyj1)
3710 var yydb1 bool
3711 if yyj1 >= len(yyv1) {
3712 yyv1 = append(yyv1, nil)
3713 yyc1 = true
3714 }
3715 if yydb1 {
3716 z.DecSwallow()
3717 } else {
3718 if r.TryNil() {
3719 yyv1[yyj1] = nil
3720 } else {
3721 if yyv1[yyj1] == nil {
3722 yyv1[yyj1] = new(string)
3723 }
3724 *yyv1[yyj1] = (string)(string(r.DecodeStringAsBytes()))
3725 }
3726 }
3727 }
3728 if yyj1 < len(yyv1) {
3729 yyv1 = yyv1[:yyj1]
3730 yyc1 = true
3731 } else if yyj1 == 0 && yyv1 == nil {
3732 yyv1 = make([]*string, 0)
3733 yyc1 = true
3734 }
3735 }
3736 yyh1.End()
3737 if yyc1 {
3738 *v = yyv1
3739 }
3740 }
3741
3742 func (x codecSelfer2736) encSliceURL(v []URL, e *codec1978.Encoder) {
3743 var h codecSelfer2736
3744 z, r := codec1978.GenHelperEncoder(e)
3745 _, _, _ = h, z, r
3746 if v == nil {
3747 r.EncodeNil()
3748 return
3749 }
3750 z.EncWriteArrayStart(len(v))
3751 for _, yyv1 := range v {
3752 z.EncWriteArrayElem()
3753 yy2 := &yyv1
3754 yy2.CodecEncodeSelf(e)
3755 }
3756 z.EncWriteArrayEnd()
3757 }
3758
3759 func (x codecSelfer2736) decSliceURL(v *[]URL, d *codec1978.Decoder) {
3760 var h codecSelfer2736
3761 z, r := codec1978.GenHelperDecoder(d)
3762 _, _, _ = h, z, r
3763
3764 yyv1 := *v
3765 yyh1, yyl1 := z.DecSliceHelperStart()
3766 var yyc1 bool
3767 _ = yyc1
3768 if yyh1.IsNil {
3769 if yyv1 != nil {
3770 yyv1 = nil
3771 yyc1 = true
3772 }
3773 } else if yyl1 == 0 {
3774 if yyv1 == nil {
3775 yyv1 = []URL{}
3776 yyc1 = true
3777 } else if len(yyv1) != 0 {
3778 yyv1 = yyv1[:0]
3779 yyc1 = true
3780 }
3781 } else {
3782 yyhl1 := yyl1 > 0
3783 var yyrl1 int
3784 _ = yyrl1
3785 if yyhl1 {
3786 if yyl1 > cap(yyv1) {
3787 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 48)
3788 if yyrl1 <= cap(yyv1) {
3789 yyv1 = yyv1[:yyrl1]
3790 } else {
3791 yyv1 = make([]URL, yyrl1)
3792 }
3793 yyc1 = true
3794 } else if yyl1 != len(yyv1) {
3795 yyv1 = yyv1[:yyl1]
3796 yyc1 = true
3797 }
3798 }
3799 var yyj1 int
3800 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination
3801 if yyj1 == 0 && yyv1 == nil {
3802 if yyhl1 {
3803 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 48)
3804 } else {
3805 yyrl1 = 8
3806 }
3807 yyv1 = make([]URL, yyrl1)
3808 yyc1 = true
3809 }
3810 yyh1.ElemContainerState(yyj1)
3811 var yydb1 bool
3812 if yyj1 >= len(yyv1) {
3813 yyv1 = append(yyv1, URL{})
3814 yyc1 = true
3815 }
3816 if yydb1 {
3817 z.DecSwallow()
3818 } else {
3819 yyv1[yyj1].CodecDecodeSelf(d)
3820 }
3821 }
3822 if yyj1 < len(yyv1) {
3823 yyv1 = yyv1[:yyj1]
3824 yyc1 = true
3825 } else if yyj1 == 0 && yyv1 == nil {
3826 yyv1 = make([]URL, 0)
3827 yyc1 = true
3828 }
3829 }
3830 yyh1.End()
3831 if yyc1 {
3832 *v = yyv1
3833 }
3834 }
3835
3836 func (x codecSelfer2736) encSliceStatus(v []Status, e *codec1978.Encoder) {
3837 var h codecSelfer2736
3838 z, r := codec1978.GenHelperEncoder(e)
3839 _, _, _ = h, z, r
3840 if v == nil {
3841 r.EncodeNil()
3842 return
3843 }
3844 z.EncWriteArrayStart(len(v))
3845 for _, yyv1 := range v {
3846 z.EncWriteArrayElem()
3847 yy2 := &yyv1
3848 yy2.CodecEncodeSelf(e)
3849 }
3850 z.EncWriteArrayEnd()
3851 }
3852
3853 func (x codecSelfer2736) decSliceStatus(v *[]Status, d *codec1978.Decoder) {
3854 var h codecSelfer2736
3855 z, r := codec1978.GenHelperDecoder(d)
3856 _, _, _ = h, z, r
3857
3858 yyv1 := *v
3859 yyh1, yyl1 := z.DecSliceHelperStart()
3860 var yyc1 bool
3861 _ = yyc1
3862 if yyh1.IsNil {
3863 if yyv1 != nil {
3864 yyv1 = nil
3865 yyc1 = true
3866 }
3867 } else if yyl1 == 0 {
3868 if yyv1 == nil {
3869 yyv1 = []Status{}
3870 yyc1 = true
3871 } else if len(yyv1) != 0 {
3872 yyv1 = yyv1[:0]
3873 yyc1 = true
3874 }
3875 } else {
3876 yyhl1 := yyl1 > 0
3877 var yyrl1 int
3878 _ = yyrl1
3879 if yyhl1 {
3880 if yyl1 > cap(yyv1) {
3881 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 752)
3882 if yyrl1 <= cap(yyv1) {
3883 yyv1 = yyv1[:yyrl1]
3884 } else {
3885 yyv1 = make([]Status, yyrl1)
3886 }
3887 yyc1 = true
3888 } else if yyl1 != len(yyv1) {
3889 yyv1 = yyv1[:yyl1]
3890 yyc1 = true
3891 }
3892 }
3893 var yyj1 int
3894 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination
3895 if yyj1 == 0 && yyv1 == nil {
3896 if yyhl1 {
3897 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 752)
3898 } else {
3899 yyrl1 = 8
3900 }
3901 yyv1 = make([]Status, yyrl1)
3902 yyc1 = true
3903 }
3904 yyh1.ElemContainerState(yyj1)
3905 var yydb1 bool
3906 if yyj1 >= len(yyv1) {
3907 yyv1 = append(yyv1, Status{})
3908 yyc1 = true
3909 }
3910 if yydb1 {
3911 z.DecSwallow()
3912 } else {
3913 yyv1[yyj1].CodecDecodeSelf(d)
3914 }
3915 }
3916 if yyj1 < len(yyv1) {
3917 yyv1 = yyv1[:yyj1]
3918 yyc1 = true
3919 } else if yyj1 == 0 && yyv1 == nil {
3920 yyv1 = make([]Status, 0)
3921 yyc1 = true
3922 }
3923 }
3924 yyh1.End()
3925 if yyc1 {
3926 *v = yyv1
3927 }
3928 }
3929
3930 func (x codecSelfer2736) encSliceLargeStruct(v []LargeStruct, e *codec1978.Encoder) {
3931 var h codecSelfer2736
3932 z, r := codec1978.GenHelperEncoder(e)
3933 _, _, _ = h, z, r
3934 if v == nil {
3935 r.EncodeNil()
3936 return
3937 }
3938 z.EncWriteArrayStart(len(v))
3939 for _, yyv1 := range v {
3940 z.EncWriteArrayElem()
3941 yy2 := &yyv1
3942 yy2.CodecEncodeSelf(e)
3943 }
3944 z.EncWriteArrayEnd()
3945 }
3946
3947 func (x codecSelfer2736) decSliceLargeStruct(v *[]LargeStruct, d *codec1978.Decoder) {
3948 var h codecSelfer2736
3949 z, r := codec1978.GenHelperDecoder(d)
3950 _, _, _ = h, z, r
3951
3952 yyv1 := *v
3953 yyh1, yyl1 := z.DecSliceHelperStart()
3954 var yyc1 bool
3955 _ = yyc1
3956 if yyh1.IsNil {
3957 if yyv1 != nil {
3958 yyv1 = nil
3959 yyc1 = true
3960 }
3961 } else if yyl1 == 0 {
3962 if yyv1 == nil {
3963 yyv1 = []LargeStruct{}
3964 yyc1 = true
3965 } else if len(yyv1) != 0 {
3966 yyv1 = yyv1[:0]
3967 yyc1 = true
3968 }
3969 } else {
3970 yyhl1 := yyl1 > 0
3971 var yyrl1 int
3972 _ = yyrl1
3973 if yyhl1 {
3974 if yyl1 > cap(yyv1) {
3975 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 136)
3976 if yyrl1 <= cap(yyv1) {
3977 yyv1 = yyv1[:yyrl1]
3978 } else {
3979 yyv1 = make([]LargeStruct, yyrl1)
3980 }
3981 yyc1 = true
3982 } else if yyl1 != len(yyv1) {
3983 yyv1 = yyv1[:yyl1]
3984 yyc1 = true
3985 }
3986 }
3987 var yyj1 int
3988 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination
3989 if yyj1 == 0 && yyv1 == nil {
3990 if yyhl1 {
3991 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 136)
3992 } else {
3993 yyrl1 = 8
3994 }
3995 yyv1 = make([]LargeStruct, yyrl1)
3996 yyc1 = true
3997 }
3998 yyh1.ElemContainerState(yyj1)
3999 var yydb1 bool
4000 if yyj1 >= len(yyv1) {
4001 yyv1 = append(yyv1, LargeStruct{})
4002 yyc1 = true
4003 }
4004 if yydb1 {
4005 z.DecSwallow()
4006 } else {
4007 yyv1[yyj1].CodecDecodeSelf(d)
4008 }
4009 }
4010 if yyj1 < len(yyv1) {
4011 yyv1 = yyv1[:yyj1]
4012 yyc1 = true
4013 } else if yyj1 == 0 && yyv1 == nil {
4014 yyv1 = make([]LargeStruct, 0)
4015 yyc1 = true
4016 }
4017 }
4018 yyh1.End()
4019 if yyc1 {
4020 *v = yyv1
4021 }
4022 }