Debian Codegraph @

codec/values_codecgen_generated_test.go

raw symbols SCIP
1 //go:build go1.6 && (codecgen || generated)
2 // +build go1.6
3 // +build codecgen generated
4
5 // Code generated by codecgen - DO NOT EDIT.
6
7 package codec
8
9 import (
10 "errors"
11 "runtime"
12 "sort"
13 "strconv"
14 "time"
15 )
16
17 const (
18 // ----- content types ----
19 codecSelferCcUTF819780 = 1
20 codecSelferCcRAW19780 = 255
21 // ----- value types used ----
22 codecSelferValueTypeArray19780 = 10
23 codecSelferValueTypeMap19780 = 9
24 codecSelferValueTypeString19780 = 6
25 codecSelferValueTypeInt19780 = 2
26 codecSelferValueTypeUint19780 = 3
27 codecSelferValueTypeFloat19780 = 4
28 codecSelferValueTypeNil19780 = 1
29 codecSelferBitsize19780 = uint8(32 << (^uint(0) >> 63))
30 codecSelferDecContainerLenNil19780 = -2147483648
31 )
32
33 var (
34 errCodecSelferOnlyMapOrArrayEncodeToStruct19780 = errors.New(`only encoded map or array can be decoded into a struct`)
35 _ sort.Interface = nil
36 )
37
38 type codecSelfer19780 struct{}
39
40 func codecSelfer19780False() bool { return false }
41 func codecSelfer19780True() bool { return true }
42
43 type codecSelfer19780stringSlice []string
44
45 func (p codecSelfer19780stringSlice) Len() int { return len(p) }
46 func (p codecSelfer19780stringSlice) Swap(i, j int) { p[uint(i)], p[uint(j)] = p[uint(j)], p[uint(i)] }
47 func (p codecSelfer19780stringSlice) Less(i, j int) bool { return p[uint(i)] < p[uint(j)] }
48
49 type codecSelfer19780uint64Slice []uint64
50
51 func (p codecSelfer19780uint64Slice) Len() int { return len(p) }
52 func (p codecSelfer19780uint64Slice) Swap(i, j int) { p[uint(i)], p[uint(j)] = p[uint(j)], p[uint(i)] }
53 func (p codecSelfer19780uint64Slice) Less(i, j int) bool { return p[uint(i)] < p[uint(j)] }
54
55 type codecSelfer19780int64Slice []int64
56
57 func (p codecSelfer19780int64Slice) Len() int { return len(p) }
58 func (p codecSelfer19780int64Slice) Swap(i, j int) { p[uint(i)], p[uint(j)] = p[uint(j)], p[uint(i)] }
59 func (p codecSelfer19780int64Slice) Less(i, j int) bool { return p[uint(i)] < p[uint(j)] }
60
61 type codecSelfer19780float64Slice []float64
62
63 func (p codecSelfer19780float64Slice) Len() int { return len(p) }
64 func (p codecSelfer19780float64Slice) Swap(i, j int) { p[uint(i)], p[uint(j)] = p[uint(j)], p[uint(i)] }
65 func (p codecSelfer19780float64Slice) Less(i, j int) bool { return p[uint(i)] < p[uint(j)] }
66
67 func init() {
68 if GenVersion != 25 {
69 _, file, _, _ := runtime.Caller(0)
70 ver := strconv.FormatInt(int64(GenVersion), 10)
71 panic(errors.New("codecgen version mismatch: current: 25, need " + ver + ". Re-generate file: " + file))
72 }
73 if false { // reference the types, but skip this branch at build/run time
74 var _ time.Time
75 }
76 }
77
78 func (wrapSliceUint64) codecSelferViaCodecgen() {}
79 func (x wrapSliceUint64) CodecEncodeSelf(e *Encoder) {
80 var h codecSelfer19780
81 z, r := GenHelper().Encoder(e)
82 _, _, _ = h, z, r
83 if x == nil {
84 r.EncodeNil()
85 } else {
86 z.F.EncSliceUint64V(([]uint64)(x), e)
87 } // end block: if x slice == nil
88 }
89
90 func (x *wrapSliceUint64) CodecDecodeSelf(d *Decoder) {
91 var h codecSelfer19780
92 z, r := GenHelper().Decoder(d)
93 _, _, _ = h, z, r
94 z.F.DecSliceUint64X((*[]uint64)(x), d)
95 }
96
97 func (wrapSliceString) codecSelferViaCodecgen() {}
98 func (x wrapSliceString) CodecEncodeSelf(e *Encoder) {
99 var h codecSelfer19780
100 z, r := GenHelper().Encoder(e)
101 _, _, _ = h, z, r
102 if x == nil {
103 r.EncodeNil()
104 } else {
105 z.F.EncSliceStringV(([]string)(x), e)
106 } // end block: if x slice == nil
107 }
108
109 func (x *wrapSliceString) CodecDecodeSelf(d *Decoder) {
110 var h codecSelfer19780
111 z, r := GenHelper().Decoder(d)
112 _, _, _ = h, z, r
113 z.F.DecSliceStringX((*[]string)(x), d)
114 }
115
116 func (wrapUint64) codecSelferViaCodecgen() {}
117 func (x wrapUint64) CodecEncodeSelf(e *Encoder) {
118 var h codecSelfer19780
119 z, r := GenHelper().Encoder(e)
120 _, _, _ = h, z, r
121 r.EncodeUint(uint64(x))
122 }
123
124 func (x *wrapUint64) CodecDecodeSelf(d *Decoder) {
125 var h codecSelfer19780
126 z, r := GenHelper().Decoder(d)
127 _, _, _ = h, z, r
128 *x = (wrapUint64)(r.DecodeUint64())
129 }
130
131 func (wrapString) codecSelferViaCodecgen() {}
132 func (x wrapString) CodecEncodeSelf(e *Encoder) {
133 var h codecSelfer19780
134 z, r := GenHelper().Encoder(e)
135 _, _, _ = h, z, r
136 r.EncodeString(string(x))
137 }
138
139 func (x *wrapString) CodecDecodeSelf(d *Decoder) {
140 var h codecSelfer19780
141 z, r := GenHelper().Decoder(d)
142 _, _, _ = h, z, r
143 *x = (wrapString)(z.DecStringZC(r.DecodeStringAsBytes()))
144 }
145
146 func (wrapUint64Slice) codecSelferViaCodecgen() {}
147 func (x wrapUint64Slice) CodecEncodeSelf(e *Encoder) {
148 var h codecSelfer19780
149 z, r := GenHelper().Encoder(e)
150 _, _, _ = h, z, r
151 if x == nil {
152 r.EncodeNil()
153 } else {
154 h.encwrapUint64Slice((wrapUint64Slice)(x), e)
155 } // end block: if x slice == nil
156 }
157
158 func (x *wrapUint64Slice) CodecDecodeSelf(d *Decoder) {
159 var h codecSelfer19780
160 z, r := GenHelper().Decoder(d)
161 _, _, _ = h, z, r
162 h.decwrapUint64Slice((*wrapUint64Slice)(x), d)
163 }
164
165 func (wrapStringSlice) codecSelferViaCodecgen() {}
166 func (x wrapStringSlice) CodecEncodeSelf(e *Encoder) {
167 var h codecSelfer19780
168 z, r := GenHelper().Encoder(e)
169 _, _, _ = h, z, r
170 if x == nil {
171 r.EncodeNil()
172 } else {
173 h.encwrapStringSlice((wrapStringSlice)(x), e)
174 } // end block: if x slice == nil
175 }
176
177 func (x *wrapStringSlice) CodecDecodeSelf(d *Decoder) {
178 var h codecSelfer19780
179 z, r := GenHelper().Decoder(d)
180 _, _, _ = h, z, r
181 h.decwrapStringSlice((*wrapStringSlice)(x), d)
182 }
183
184 func (stringUint64T) codecSelferViaCodecgen() {}
185 func (x *stringUint64T) CodecEncodeSelf(e *Encoder) {
186 var h codecSelfer19780
187 z, r := GenHelper().Encoder(e)
188 _, _, _ = h, z, r
189 if z.EncBasicHandle().CheckCircularRef {
190 z.EncEncode(x)
191 return
192 }
193 if x == nil {
194 r.EncodeNil()
195 } else {
196 yy2arr2 := z.EncBasicHandle().StructToArray
197 _ = yy2arr2
198 const yyr2 bool = false // struct tag has 'toArray'
199 if yyr2 || yy2arr2 {
200 z.EncWriteArrayStart(2)
201 z.EncWriteArrayElem()
202 r.EncodeString(string(x.S))
203 z.EncWriteArrayElem()
204 r.EncodeUint(uint64(x.U))
205 z.EncWriteArrayEnd()
206 } else {
207 z.EncWriteMapStart(2)
208 if z.EncBasicHandle().Canonical {
209 z.EncWriteMapElemKey()
210 if z.IsJSONHandle() {
211 z.WriteStr("\"S\"")
212 } else {
213 r.EncodeString(`S`)
214 }
215 z.EncWriteMapElemValue()
216 r.EncodeString(string(x.S))
217 z.EncWriteMapElemKey()
218 if z.IsJSONHandle() {
219 z.WriteStr("\"U\"")
220 } else {
221 r.EncodeString(`U`)
222 }
223 z.EncWriteMapElemValue()
224 r.EncodeUint(uint64(x.U))
225 } else {
226 z.EncWriteMapElemKey()
227 if z.IsJSONHandle() {
228 z.WriteStr("\"S\"")
229 } else {
230 r.EncodeString(`S`)
231 }
232 z.EncWriteMapElemValue()
233 r.EncodeString(string(x.S))
234 z.EncWriteMapElemKey()
235 if z.IsJSONHandle() {
236 z.WriteStr("\"U\"")
237 } else {
238 r.EncodeString(`U`)
239 }
240 z.EncWriteMapElemValue()
241 r.EncodeUint(uint64(x.U))
242 }
243 z.EncWriteMapEnd()
244 }
245 }
246 }
247
248 func (x *stringUint64T) CodecDecodeSelf(d *Decoder) {
249 var h codecSelfer19780
250 z, r := GenHelper().Decoder(d)
251 _, _, _ = h, z, r
252 yyct2 := r.ContainerType()
253 if yyct2 == codecSelferValueTypeNil19780 {
254 *(x) = stringUint64T{}
255 } else if yyct2 == codecSelferValueTypeMap19780 {
256 yyl2 := z.DecReadMapStart()
257 if yyl2 == 0 {
258 } else {
259 x.codecDecodeSelfFromMap(yyl2, d)
260 }
261 z.DecReadMapEnd()
262 } else if yyct2 == codecSelferValueTypeArray19780 {
263 yyl2 := z.DecReadArrayStart()
264 if yyl2 != 0 {
265 x.codecDecodeSelfFromArray(yyl2, d)
266 }
267 z.DecReadArrayEnd()
268 } else {
269 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
270 }
271 }
272
273 func (x *stringUint64T) codecDecodeSelfFromMap(l int, d *Decoder) {
274 var h codecSelfer19780
275 z, r := GenHelper().Decoder(d)
276 _, _, _ = h, z, r
277 var yyhl3 bool = l >= 0
278 for yyj3 := 0; ; yyj3++ {
279 if yyhl3 {
280 if yyj3 >= l {
281 break
282 }
283 } else {
284 if z.DecCheckBreak() {
285 break
286 }
287 }
288 z.DecReadMapElemKey()
289 yys3 := r.DecodeStringAsBytes()
290 z.DecReadMapElemValue()
291 switch string(yys3) {
292 case "S":
293 x.S = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
294 case "U":
295 x.U = (uint64)(r.DecodeUint64())
296 default:
297 z.DecStructFieldNotFound(-1, string(yys3))
298 } // end switch yys3
299 } // end for yyj3
300 }
301
302 func (x *stringUint64T) codecDecodeSelfFromArray(l int, d *Decoder) {
303 var h codecSelfer19780
304 z, r := GenHelper().Decoder(d)
305 _, _, _ = h, z, r
306 var yyj6 int
307 var yyb6 bool
308 var yyhl6 bool = l >= 0
309 yyj6++
310 if yyhl6 {
311 yyb6 = yyj6 > l
312 } else {
313 yyb6 = z.DecCheckBreak()
314 }
315 if yyb6 {
316 z.DecReadArrayEnd()
317 return
318 }
319 z.DecReadArrayElem()
320 x.S = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
321 yyj6++
322 if yyhl6 {
323 yyb6 = yyj6 > l
324 } else {
325 yyb6 = z.DecCheckBreak()
326 }
327 if yyb6 {
328 z.DecReadArrayEnd()
329 return
330 }
331 z.DecReadArrayElem()
332 x.U = (uint64)(r.DecodeUint64())
333 for {
334 yyj6++
335 if yyhl6 {
336 yyb6 = yyj6 > l
337 } else {
338 yyb6 = z.DecCheckBreak()
339 }
340 if yyb6 {
341 break
342 }
343 z.DecReadArrayElem()
344 z.DecStructFieldNotFound(yyj6-1, "")
345 }
346 }
347
348 func (x *stringUint64T) IsCodecEmpty() bool {
349 return !(x.S != "" || x.U != 0 || false)
350 }
351
352 func (AnonInTestStrucSlim) codecSelferViaCodecgen() {}
353 func (x *AnonInTestStrucSlim) CodecEncodeSelf(e *Encoder) {
354 var h codecSelfer19780
355 z, r := GenHelper().Encoder(e)
356 _, _, _ = h, z, r
357 if z.EncBasicHandle().CheckCircularRef {
358 z.EncEncode(x)
359 return
360 }
361 if x == nil {
362 r.EncodeNil()
363 } else {
364 yy2arr2 := z.EncBasicHandle().StructToArray
365 _ = yy2arr2
366 const yyr2 bool = false // struct tag has 'toArray'
367 var yyn4 bool = x.P == nil
368 if yyr2 || yy2arr2 {
369 z.EncWriteArrayStart(2)
370 z.EncWriteArrayElem()
371 r.EncodeString(string(x.S))
372 if yyn4 {
373 z.EncWriteArrayElem()
374 r.EncodeNil()
375 } else {
376 z.EncWriteArrayElem()
377 yy6 := *x.P
378 r.EncodeString(string(yy6))
379 }
380 z.EncWriteArrayEnd()
381 } else {
382 z.EncWriteMapStart(2)
383 if z.EncBasicHandle().Canonical {
384 z.EncWriteMapElemKey()
385 if z.IsJSONHandle() {
386 z.WriteStr("\"P\"")
387 } else {
388 r.EncodeString(`P`)
389 }
390 z.EncWriteMapElemValue()
391 if yyn4 {
392 r.EncodeNil()
393 } else {
394 yy8 := *x.P
395 r.EncodeString(string(yy8))
396 }
397 z.EncWriteMapElemKey()
398 if z.IsJSONHandle() {
399 z.WriteStr("\"S\"")
400 } else {
401 r.EncodeString(`S`)
402 }
403 z.EncWriteMapElemValue()
404 r.EncodeString(string(x.S))
405 } else {
406 z.EncWriteMapElemKey()
407 if z.IsJSONHandle() {
408 z.WriteStr("\"S\"")
409 } else {
410 r.EncodeString(`S`)
411 }
412 z.EncWriteMapElemValue()
413 r.EncodeString(string(x.S))
414 z.EncWriteMapElemKey()
415 if z.IsJSONHandle() {
416 z.WriteStr("\"P\"")
417 } else {
418 r.EncodeString(`P`)
419 }
420 z.EncWriteMapElemValue()
421 if yyn4 {
422 r.EncodeNil()
423 } else {
424 yy12 := *x.P
425 r.EncodeString(string(yy12))
426 }
427 }
428 z.EncWriteMapEnd()
429 }
430 }
431 }
432
433 func (x *AnonInTestStrucSlim) CodecDecodeSelf(d *Decoder) {
434 var h codecSelfer19780
435 z, r := GenHelper().Decoder(d)
436 _, _, _ = h, z, r
437 yyct2 := r.ContainerType()
438 if yyct2 == codecSelferValueTypeNil19780 {
439 *(x) = AnonInTestStrucSlim{}
440 } else if yyct2 == codecSelferValueTypeMap19780 {
441 yyl2 := z.DecReadMapStart()
442 if yyl2 == 0 {
443 } else {
444 x.codecDecodeSelfFromMap(yyl2, d)
445 }
446 z.DecReadMapEnd()
447 } else if yyct2 == codecSelferValueTypeArray19780 {
448 yyl2 := z.DecReadArrayStart()
449 if yyl2 != 0 {
450 x.codecDecodeSelfFromArray(yyl2, d)
451 }
452 z.DecReadArrayEnd()
453 } else {
454 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
455 }
456 }
457
458 func (x *AnonInTestStrucSlim) codecDecodeSelfFromMap(l int, d *Decoder) {
459 var h codecSelfer19780
460 z, r := GenHelper().Decoder(d)
461 _, _, _ = h, z, r
462 var yyhl3 bool = l >= 0
463 for yyj3 := 0; ; yyj3++ {
464 if yyhl3 {
465 if yyj3 >= l {
466 break
467 }
468 } else {
469 if z.DecCheckBreak() {
470 break
471 }
472 }
473 z.DecReadMapElemKey()
474 yys3 := r.DecodeStringAsBytes()
475 z.DecReadMapElemValue()
476 switch string(yys3) {
477 case "S":
478 x.S = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
479 case "P":
480 if r.TryNil() {
481 if x.P != nil { // remove the if-true
482 x.P = nil
483 }
484 } else {
485 if x.P == nil {
486 x.P = new(string)
487 }
488 *x.P = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
489 }
490 default:
491 z.DecStructFieldNotFound(-1, string(yys3))
492 } // end switch yys3
493 } // end for yyj3
494 }
495
496 func (x *AnonInTestStrucSlim) codecDecodeSelfFromArray(l int, d *Decoder) {
497 var h codecSelfer19780
498 z, r := GenHelper().Decoder(d)
499 _, _, _ = h, z, r
500 var yyj7 int
501 var yyb7 bool
502 var yyhl7 bool = l >= 0
503 yyj7++
504 if yyhl7 {
505 yyb7 = yyj7 > l
506 } else {
507 yyb7 = z.DecCheckBreak()
508 }
509 if yyb7 {
510 z.DecReadArrayEnd()
511 return
512 }
513 z.DecReadArrayElem()
514 x.S = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
515 yyj7++
516 if yyhl7 {
517 yyb7 = yyj7 > l
518 } else {
519 yyb7 = z.DecCheckBreak()
520 }
521 if yyb7 {
522 z.DecReadArrayEnd()
523 return
524 }
525 z.DecReadArrayElem()
526 if r.TryNil() {
527 if x.P != nil { // remove the if-true
528 x.P = nil
529 }
530 } else {
531 if x.P == nil {
532 x.P = new(string)
533 }
534 *x.P = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
535 }
536 for {
537 yyj7++
538 if yyhl7 {
539 yyb7 = yyj7 > l
540 } else {
541 yyb7 = z.DecCheckBreak()
542 }
543 if yyb7 {
544 break
545 }
546 z.DecReadArrayElem()
547 z.DecStructFieldNotFound(yyj7-1, "")
548 }
549 }
550
551 func (x *AnonInTestStrucSlim) IsCodecEmpty() bool {
552 return !(x.S != "" || false)
553 }
554
555 func (AnonInTestStruc) codecSelferViaCodecgen() {}
556 func (x *AnonInTestStruc) CodecEncodeSelf(e *Encoder) {
557 var h codecSelfer19780
558 z, r := GenHelper().Encoder(e)
559 _, _, _ = h, z, r
560 if z.EncBasicHandle().CheckCircularRef {
561 z.EncEncode(x)
562 return
563 }
564 if x == nil {
565 r.EncodeNil()
566 } else {
567 yy2arr2 := z.EncBasicHandle().StructToArray
568 _ = yy2arr2
569 const yyr2 bool = false // struct tag has 'toArray'
570 if yyr2 || yy2arr2 {
571 z.EncWriteArrayStart(17)
572 z.EncWriteArrayElem()
573 r.EncodeString(string(x.AS))
574 z.EncWriteArrayElem()
575 r.EncodeInt(int64(x.AI64))
576 z.EncWriteArrayElem()
577 r.EncodeInt(int64(x.AI16))
578 z.EncWriteArrayElem()
579 r.EncodeUint(uint64(x.AUi64))
580 z.EncWriteArrayElem()
581 if x.ASslice == nil {
582 r.EncodeNil()
583 } else {
584 z.F.EncSliceStringV(x.ASslice, e)
585 } // end block: if x.ASslice slice == nil
586 z.EncWriteArrayElem()
587 if x.AI64slice == nil {
588 r.EncodeNil()
589 } else {
590 z.F.EncSliceInt64V(x.AI64slice, e)
591 } // end block: if x.AI64slice slice == nil
592 z.EncWriteArrayElem()
593 if x.AUi64slice == nil {
594 r.EncodeNil()
595 } else {
596 z.F.EncSliceUint64V(x.AUi64slice, e)
597 } // end block: if x.AUi64slice slice == nil
598 z.EncWriteArrayElem()
599 if x.AF64slice == nil {
600 r.EncodeNil()
601 } else {
602 z.F.EncSliceFloat64V(x.AF64slice, e)
603 } // end block: if x.AF64slice slice == nil
604 z.EncWriteArrayElem()
605 if x.AF32slice == nil {
606 r.EncodeNil()
607 } else {
608 z.F.EncSliceFloat32V(x.AF32slice, e)
609 } // end block: if x.AF32slice slice == nil
610 z.EncWriteArrayElem()
611 if x.AMSS == nil {
612 r.EncodeNil()
613 } else {
614 z.F.EncMapStringStringV(x.AMSS, e)
615 } // end block: if x.AMSS map == nil
616 z.EncWriteArrayElem()
617 if x.AMSU64 == nil {
618 r.EncodeNil()
619 } else {
620 z.F.EncMapStringUint64V(x.AMSU64, e)
621 } // end block: if x.AMSU64 map == nil
622 z.EncWriteArrayElem()
623 yy31 := &x.AI64arr8
624 h.encArray8int64((*[8]int64)(yy31), e)
625 z.EncWriteArrayElem()
626 yy33 := &x.AI64arr0
627 h.encArray0int64((*[0]int64)(yy33), e)
628 z.EncWriteArrayElem()
629 if x.AI64slice0 == nil {
630 r.EncodeNil()
631 } else {
632 z.F.EncSliceInt64V(x.AI64slice0, e)
633 } // end block: if x.AI64slice0 slice == nil
634 z.EncWriteArrayElem()
635 if x.AUi64sliceN == nil {
636 r.EncodeNil()
637 } else {
638 z.F.EncSliceUint64V(x.AUi64sliceN, e)
639 } // end block: if x.AUi64sliceN slice == nil
640 z.EncWriteArrayElem()
641 if x.AMSU64N == nil {
642 r.EncodeNil()
643 } else {
644 z.F.EncMapStringUint64V(x.AMSU64N, e)
645 } // end block: if x.AMSU64N map == nil
646 z.EncWriteArrayElem()
647 if x.AMSU64E == nil {
648 r.EncodeNil()
649 } else {
650 z.F.EncMapStringUint64V(x.AMSU64E, e)
651 } // end block: if x.AMSU64E map == nil
652 z.EncWriteArrayEnd()
653 } else {
654 z.EncWriteMapStart(17)
655 if z.EncBasicHandle().Canonical {
656 z.EncWriteMapElemKey()
657 if z.IsJSONHandle() {
658 z.WriteStr("\"AF32slice\"")
659 } else {
660 r.EncodeString(`AF32slice`)
661 }
662 z.EncWriteMapElemValue()
663 if x.AF32slice == nil {
664 r.EncodeNil()
665 } else {
666 z.F.EncSliceFloat32V(x.AF32slice, e)
667 } // end block: if x.AF32slice slice == nil
668 z.EncWriteMapElemKey()
669 if z.IsJSONHandle() {
670 z.WriteStr("\"AF64slice\"")
671 } else {
672 r.EncodeString(`AF64slice`)
673 }
674 z.EncWriteMapElemValue()
675 if x.AF64slice == nil {
676 r.EncodeNil()
677 } else {
678 z.F.EncSliceFloat64V(x.AF64slice, e)
679 } // end block: if x.AF64slice slice == nil
680 z.EncWriteMapElemKey()
681 if z.IsJSONHandle() {
682 z.WriteStr("\"AI16\"")
683 } else {
684 r.EncodeString(`AI16`)
685 }
686 z.EncWriteMapElemValue()
687 r.EncodeInt(int64(x.AI16))
688 z.EncWriteMapElemKey()
689 if z.IsJSONHandle() {
690 z.WriteStr("\"AI64\"")
691 } else {
692 r.EncodeString(`AI64`)
693 }
694 z.EncWriteMapElemValue()
695 r.EncodeInt(int64(x.AI64))
696 z.EncWriteMapElemKey()
697 if z.IsJSONHandle() {
698 z.WriteStr("\"AI64arr0\"")
699 } else {
700 r.EncodeString(`AI64arr0`)
701 }
702 z.EncWriteMapElemValue()
703 yy43 := &x.AI64arr0
704 h.encArray0int64((*[0]int64)(yy43), e)
705 z.EncWriteMapElemKey()
706 if z.IsJSONHandle() {
707 z.WriteStr("\"AI64arr8\"")
708 } else {
709 r.EncodeString(`AI64arr8`)
710 }
711 z.EncWriteMapElemValue()
712 yy45 := &x.AI64arr8
713 h.encArray8int64((*[8]int64)(yy45), e)
714 z.EncWriteMapElemKey()
715 if z.IsJSONHandle() {
716 z.WriteStr("\"AI64slice\"")
717 } else {
718 r.EncodeString(`AI64slice`)
719 }
720 z.EncWriteMapElemValue()
721 if x.AI64slice == nil {
722 r.EncodeNil()
723 } else {
724 z.F.EncSliceInt64V(x.AI64slice, e)
725 } // end block: if x.AI64slice slice == nil
726 z.EncWriteMapElemKey()
727 if z.IsJSONHandle() {
728 z.WriteStr("\"AI64slice0\"")
729 } else {
730 r.EncodeString(`AI64slice0`)
731 }
732 z.EncWriteMapElemValue()
733 if x.AI64slice0 == nil {
734 r.EncodeNil()
735 } else {
736 z.F.EncSliceInt64V(x.AI64slice0, e)
737 } // end block: if x.AI64slice0 slice == nil
738 z.EncWriteMapElemKey()
739 if z.IsJSONHandle() {
740 z.WriteStr("\"AMSS\"")
741 } else {
742 r.EncodeString(`AMSS`)
743 }
744 z.EncWriteMapElemValue()
745 if x.AMSS == nil {
746 r.EncodeNil()
747 } else {
748 z.F.EncMapStringStringV(x.AMSS, e)
749 } // end block: if x.AMSS map == nil
750 z.EncWriteMapElemKey()
751 if z.IsJSONHandle() {
752 z.WriteStr("\"AMSU64\"")
753 } else {
754 r.EncodeString(`AMSU64`)
755 }
756 z.EncWriteMapElemValue()
757 if x.AMSU64 == nil {
758 r.EncodeNil()
759 } else {
760 z.F.EncMapStringUint64V(x.AMSU64, e)
761 } // end block: if x.AMSU64 map == nil
762 z.EncWriteMapElemKey()
763 if z.IsJSONHandle() {
764 z.WriteStr("\"AMSU64E\"")
765 } else {
766 r.EncodeString(`AMSU64E`)
767 }
768 z.EncWriteMapElemValue()
769 if x.AMSU64E == nil {
770 r.EncodeNil()
771 } else {
772 z.F.EncMapStringUint64V(x.AMSU64E, e)
773 } // end block: if x.AMSU64E map == nil
774 z.EncWriteMapElemKey()
775 if z.IsJSONHandle() {
776 z.WriteStr("\"AMSU64N\"")
777 } else {
778 r.EncodeString(`AMSU64N`)
779 }
780 z.EncWriteMapElemValue()
781 if x.AMSU64N == nil {
782 r.EncodeNil()
783 } else {
784 z.F.EncMapStringUint64V(x.AMSU64N, e)
785 } // end block: if x.AMSU64N map == nil
786 z.EncWriteMapElemKey()
787 if z.IsJSONHandle() {
788 z.WriteStr("\"AS\"")
789 } else {
790 r.EncodeString(`AS`)
791 }
792 z.EncWriteMapElemValue()
793 r.EncodeString(string(x.AS))
794 z.EncWriteMapElemKey()
795 if z.IsJSONHandle() {
796 z.WriteStr("\"ASslice\"")
797 } else {
798 r.EncodeString(`ASslice`)
799 }
800 z.EncWriteMapElemValue()
801 if x.ASslice == nil {
802 r.EncodeNil()
803 } else {
804 z.F.EncSliceStringV(x.ASslice, e)
805 } // end block: if x.ASslice slice == nil
806 z.EncWriteMapElemKey()
807 if z.IsJSONHandle() {
808 z.WriteStr("\"AUi64\"")
809 } else {
810 r.EncodeString(`AUi64`)
811 }
812 z.EncWriteMapElemValue()
813 r.EncodeUint(uint64(x.AUi64))
814 z.EncWriteMapElemKey()
815 if z.IsJSONHandle() {
816 z.WriteStr("\"AUi64slice\"")
817 } else {
818 r.EncodeString(`AUi64slice`)
819 }
820 z.EncWriteMapElemValue()
821 if x.AUi64slice == nil {
822 r.EncodeNil()
823 } else {
824 z.F.EncSliceUint64V(x.AUi64slice, e)
825 } // end block: if x.AUi64slice slice == nil
826 z.EncWriteMapElemKey()
827 if z.IsJSONHandle() {
828 z.WriteStr("\"AUi64sliceN\"")
829 } else {
830 r.EncodeString(`AUi64sliceN`)
831 }
832 z.EncWriteMapElemValue()
833 if x.AUi64sliceN == nil {
834 r.EncodeNil()
835 } else {
836 z.F.EncSliceUint64V(x.AUi64sliceN, e)
837 } // end block: if x.AUi64sliceN slice == nil
838 } else {
839 z.EncWriteMapElemKey()
840 if z.IsJSONHandle() {
841 z.WriteStr("\"AS\"")
842 } else {
843 r.EncodeString(`AS`)
844 }
845 z.EncWriteMapElemValue()
846 r.EncodeString(string(x.AS))
847 z.EncWriteMapElemKey()
848 if z.IsJSONHandle() {
849 z.WriteStr("\"AI64\"")
850 } else {
851 r.EncodeString(`AI64`)
852 }
853 z.EncWriteMapElemValue()
854 r.EncodeInt(int64(x.AI64))
855 z.EncWriteMapElemKey()
856 if z.IsJSONHandle() {
857 z.WriteStr("\"AI16\"")
858 } else {
859 r.EncodeString(`AI16`)
860 }
861 z.EncWriteMapElemValue()
862 r.EncodeInt(int64(x.AI16))
863 z.EncWriteMapElemKey()
864 if z.IsJSONHandle() {
865 z.WriteStr("\"AUi64\"")
866 } else {
867 r.EncodeString(`AUi64`)
868 }
869 z.EncWriteMapElemValue()
870 r.EncodeUint(uint64(x.AUi64))
871 z.EncWriteMapElemKey()
872 if z.IsJSONHandle() {
873 z.WriteStr("\"ASslice\"")
874 } else {
875 r.EncodeString(`ASslice`)
876 }
877 z.EncWriteMapElemValue()
878 if x.ASslice == nil {
879 r.EncodeNil()
880 } else {
881 z.F.EncSliceStringV(x.ASslice, e)
882 } // end block: if x.ASslice slice == nil
883 z.EncWriteMapElemKey()
884 if z.IsJSONHandle() {
885 z.WriteStr("\"AI64slice\"")
886 } else {
887 r.EncodeString(`AI64slice`)
888 }
889 z.EncWriteMapElemValue()
890 if x.AI64slice == nil {
891 r.EncodeNil()
892 } else {
893 z.F.EncSliceInt64V(x.AI64slice, e)
894 } // end block: if x.AI64slice slice == nil
895 z.EncWriteMapElemKey()
896 if z.IsJSONHandle() {
897 z.WriteStr("\"AUi64slice\"")
898 } else {
899 r.EncodeString(`AUi64slice`)
900 }
901 z.EncWriteMapElemValue()
902 if x.AUi64slice == nil {
903 r.EncodeNil()
904 } else {
905 z.F.EncSliceUint64V(x.AUi64slice, e)
906 } // end block: if x.AUi64slice slice == nil
907 z.EncWriteMapElemKey()
908 if z.IsJSONHandle() {
909 z.WriteStr("\"AF64slice\"")
910 } else {
911 r.EncodeString(`AF64slice`)
912 }
913 z.EncWriteMapElemValue()
914 if x.AF64slice == nil {
915 r.EncodeNil()
916 } else {
917 z.F.EncSliceFloat64V(x.AF64slice, e)
918 } // end block: if x.AF64slice slice == nil
919 z.EncWriteMapElemKey()
920 if z.IsJSONHandle() {
921 z.WriteStr("\"AF32slice\"")
922 } else {
923 r.EncodeString(`AF32slice`)
924 }
925 z.EncWriteMapElemValue()
926 if x.AF32slice == nil {
927 r.EncodeNil()
928 } else {
929 z.F.EncSliceFloat32V(x.AF32slice, e)
930 } // end block: if x.AF32slice slice == nil
931 z.EncWriteMapElemKey()
932 if z.IsJSONHandle() {
933 z.WriteStr("\"AMSS\"")
934 } else {
935 r.EncodeString(`AMSS`)
936 }
937 z.EncWriteMapElemValue()
938 if x.AMSS == nil {
939 r.EncodeNil()
940 } else {
941 z.F.EncMapStringStringV(x.AMSS, e)
942 } // end block: if x.AMSS map == nil
943 z.EncWriteMapElemKey()
944 if z.IsJSONHandle() {
945 z.WriteStr("\"AMSU64\"")
946 } else {
947 r.EncodeString(`AMSU64`)
948 }
949 z.EncWriteMapElemValue()
950 if x.AMSU64 == nil {
951 r.EncodeNil()
952 } else {
953 z.F.EncMapStringUint64V(x.AMSU64, e)
954 } // end block: if x.AMSU64 map == nil
955 z.EncWriteMapElemKey()
956 if z.IsJSONHandle() {
957 z.WriteStr("\"AI64arr8\"")
958 } else {
959 r.EncodeString(`AI64arr8`)
960 }
961 z.EncWriteMapElemValue()
962 yy69 := &x.AI64arr8
963 h.encArray8int64((*[8]int64)(yy69), e)
964 z.EncWriteMapElemKey()
965 if z.IsJSONHandle() {
966 z.WriteStr("\"AI64arr0\"")
967 } else {
968 r.EncodeString(`AI64arr0`)
969 }
970 z.EncWriteMapElemValue()
971 yy71 := &x.AI64arr0
972 h.encArray0int64((*[0]int64)(yy71), e)
973 z.EncWriteMapElemKey()
974 if z.IsJSONHandle() {
975 z.WriteStr("\"AI64slice0\"")
976 } else {
977 r.EncodeString(`AI64slice0`)
978 }
979 z.EncWriteMapElemValue()
980 if x.AI64slice0 == nil {
981 r.EncodeNil()
982 } else {
983 z.F.EncSliceInt64V(x.AI64slice0, e)
984 } // end block: if x.AI64slice0 slice == nil
985 z.EncWriteMapElemKey()
986 if z.IsJSONHandle() {
987 z.WriteStr("\"AUi64sliceN\"")
988 } else {
989 r.EncodeString(`AUi64sliceN`)
990 }
991 z.EncWriteMapElemValue()
992 if x.AUi64sliceN == nil {
993 r.EncodeNil()
994 } else {
995 z.F.EncSliceUint64V(x.AUi64sliceN, e)
996 } // end block: if x.AUi64sliceN slice == nil
997 z.EncWriteMapElemKey()
998 if z.IsJSONHandle() {
999 z.WriteStr("\"AMSU64N\"")
1000 } else {
1001 r.EncodeString(`AMSU64N`)
1002 }
1003 z.EncWriteMapElemValue()
1004 if x.AMSU64N == nil {
1005 r.EncodeNil()
1006 } else {
1007 z.F.EncMapStringUint64V(x.AMSU64N, e)
1008 } // end block: if x.AMSU64N map == nil
1009 z.EncWriteMapElemKey()
1010 if z.IsJSONHandle() {
1011 z.WriteStr("\"AMSU64E\"")
1012 } else {
1013 r.EncodeString(`AMSU64E`)
1014 }
1015 z.EncWriteMapElemValue()
1016 if x.AMSU64E == nil {
1017 r.EncodeNil()
1018 } else {
1019 z.F.EncMapStringUint64V(x.AMSU64E, e)
1020 } // end block: if x.AMSU64E map == nil
1021 }
1022 z.EncWriteMapEnd()
1023 }
1024 }
1025 }
1026
1027 func (x *AnonInTestStruc) CodecDecodeSelf(d *Decoder) {
1028 var h codecSelfer19780
1029 z, r := GenHelper().Decoder(d)
1030 _, _, _ = h, z, r
1031 yyct2 := r.ContainerType()
1032 if yyct2 == codecSelferValueTypeNil19780 {
1033 *(x) = AnonInTestStruc{}
1034 } else if yyct2 == codecSelferValueTypeMap19780 {
1035 yyl2 := z.DecReadMapStart()
1036 if yyl2 == 0 {
1037 } else {
1038 x.codecDecodeSelfFromMap(yyl2, d)
1039 }
1040 z.DecReadMapEnd()
1041 } else if yyct2 == codecSelferValueTypeArray19780 {
1042 yyl2 := z.DecReadArrayStart()
1043 if yyl2 != 0 {
1044 x.codecDecodeSelfFromArray(yyl2, d)
1045 }
1046 z.DecReadArrayEnd()
1047 } else {
1048 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
1049 }
1050 }
1051
1052 func (x *AnonInTestStruc) codecDecodeSelfFromMap(l int, d *Decoder) {
1053 var h codecSelfer19780
1054 z, r := GenHelper().Decoder(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 := r.DecodeStringAsBytes()
1069 z.DecReadMapElemValue()
1070 switch string(yys3) {
1071 case "AS":
1072 x.AS = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
1073 case "AI64":
1074 x.AI64 = (int64)(r.DecodeInt64())
1075 case "AI16":
1076 x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
1077 case "AUi64":
1078 x.AUi64 = (uint64)(r.DecodeUint64())
1079 case "ASslice":
1080 z.F.DecSliceStringX(&x.ASslice, d)
1081 case "AI64slice":
1082 z.F.DecSliceInt64X(&x.AI64slice, d)
1083 case "AUi64slice":
1084 z.F.DecSliceUint64X(&x.AUi64slice, d)
1085 case "AF64slice":
1086 z.F.DecSliceFloat64X(&x.AF64slice, d)
1087 case "AF32slice":
1088 z.F.DecSliceFloat32X(&x.AF32slice, d)
1089 case "AMSS":
1090 z.F.DecMapStringStringX(&x.AMSS, d)
1091 case "AMSU64":
1092 z.F.DecMapStringUint64X(&x.AMSU64, d)
1093 case "AI64arr8":
1094 h.decArray8int64((*[8]int64)(&x.AI64arr8), d)
1095 case "AI64arr0":
1096 h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
1097 case "AI64slice0":
1098 z.F.DecSliceInt64X(&x.AI64slice0, d)
1099 case "AUi64sliceN":
1100 z.F.DecSliceUint64X(&x.AUi64sliceN, d)
1101 case "AMSU64N":
1102 z.F.DecMapStringUint64X(&x.AMSU64N, d)
1103 case "AMSU64E":
1104 z.F.DecMapStringUint64X(&x.AMSU64E, d)
1105 default:
1106 z.DecStructFieldNotFound(-1, string(yys3))
1107 } // end switch yys3
1108 } // end for yyj3
1109 }
1110
1111 func (x *AnonInTestStruc) codecDecodeSelfFromArray(l int, d *Decoder) {
1112 var h codecSelfer19780
1113 z, r := GenHelper().Decoder(d)
1114 _, _, _ = h, z, r
1115 var yyj34 int
1116 var yyb34 bool
1117 var yyhl34 bool = l >= 0
1118 yyj34++
1119 if yyhl34 {
1120 yyb34 = yyj34 > l
1121 } else {
1122 yyb34 = z.DecCheckBreak()
1123 }
1124 if yyb34 {
1125 z.DecReadArrayEnd()
1126 return
1127 }
1128 z.DecReadArrayElem()
1129 x.AS = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
1130 yyj34++
1131 if yyhl34 {
1132 yyb34 = yyj34 > l
1133 } else {
1134 yyb34 = z.DecCheckBreak()
1135 }
1136 if yyb34 {
1137 z.DecReadArrayEnd()
1138 return
1139 }
1140 z.DecReadArrayElem()
1141 x.AI64 = (int64)(r.DecodeInt64())
1142 yyj34++
1143 if yyhl34 {
1144 yyb34 = yyj34 > l
1145 } else {
1146 yyb34 = z.DecCheckBreak()
1147 }
1148 if yyb34 {
1149 z.DecReadArrayEnd()
1150 return
1151 }
1152 z.DecReadArrayElem()
1153 x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
1154 yyj34++
1155 if yyhl34 {
1156 yyb34 = yyj34 > l
1157 } else {
1158 yyb34 = z.DecCheckBreak()
1159 }
1160 if yyb34 {
1161 z.DecReadArrayEnd()
1162 return
1163 }
1164 z.DecReadArrayElem()
1165 x.AUi64 = (uint64)(r.DecodeUint64())
1166 yyj34++
1167 if yyhl34 {
1168 yyb34 = yyj34 > l
1169 } else {
1170 yyb34 = z.DecCheckBreak()
1171 }
1172 if yyb34 {
1173 z.DecReadArrayEnd()
1174 return
1175 }
1176 z.DecReadArrayElem()
1177 z.F.DecSliceStringX(&x.ASslice, d)
1178 yyj34++
1179 if yyhl34 {
1180 yyb34 = yyj34 > l
1181 } else {
1182 yyb34 = z.DecCheckBreak()
1183 }
1184 if yyb34 {
1185 z.DecReadArrayEnd()
1186 return
1187 }
1188 z.DecReadArrayElem()
1189 z.F.DecSliceInt64X(&x.AI64slice, d)
1190 yyj34++
1191 if yyhl34 {
1192 yyb34 = yyj34 > l
1193 } else {
1194 yyb34 = z.DecCheckBreak()
1195 }
1196 if yyb34 {
1197 z.DecReadArrayEnd()
1198 return
1199 }
1200 z.DecReadArrayElem()
1201 z.F.DecSliceUint64X(&x.AUi64slice, d)
1202 yyj34++
1203 if yyhl34 {
1204 yyb34 = yyj34 > l
1205 } else {
1206 yyb34 = z.DecCheckBreak()
1207 }
1208 if yyb34 {
1209 z.DecReadArrayEnd()
1210 return
1211 }
1212 z.DecReadArrayElem()
1213 z.F.DecSliceFloat64X(&x.AF64slice, d)
1214 yyj34++
1215 if yyhl34 {
1216 yyb34 = yyj34 > l
1217 } else {
1218 yyb34 = z.DecCheckBreak()
1219 }
1220 if yyb34 {
1221 z.DecReadArrayEnd()
1222 return
1223 }
1224 z.DecReadArrayElem()
1225 z.F.DecSliceFloat32X(&x.AF32slice, d)
1226 yyj34++
1227 if yyhl34 {
1228 yyb34 = yyj34 > l
1229 } else {
1230 yyb34 = z.DecCheckBreak()
1231 }
1232 if yyb34 {
1233 z.DecReadArrayEnd()
1234 return
1235 }
1236 z.DecReadArrayElem()
1237 z.F.DecMapStringStringX(&x.AMSS, d)
1238 yyj34++
1239 if yyhl34 {
1240 yyb34 = yyj34 > l
1241 } else {
1242 yyb34 = z.DecCheckBreak()
1243 }
1244 if yyb34 {
1245 z.DecReadArrayEnd()
1246 return
1247 }
1248 z.DecReadArrayElem()
1249 z.F.DecMapStringUint64X(&x.AMSU64, d)
1250 yyj34++
1251 if yyhl34 {
1252 yyb34 = yyj34 > l
1253 } else {
1254 yyb34 = z.DecCheckBreak()
1255 }
1256 if yyb34 {
1257 z.DecReadArrayEnd()
1258 return
1259 }
1260 z.DecReadArrayElem()
1261 h.decArray8int64((*[8]int64)(&x.AI64arr8), d)
1262 yyj34++
1263 if yyhl34 {
1264 yyb34 = yyj34 > l
1265 } else {
1266 yyb34 = z.DecCheckBreak()
1267 }
1268 if yyb34 {
1269 z.DecReadArrayEnd()
1270 return
1271 }
1272 z.DecReadArrayElem()
1273 h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
1274 yyj34++
1275 if yyhl34 {
1276 yyb34 = yyj34 > l
1277 } else {
1278 yyb34 = z.DecCheckBreak()
1279 }
1280 if yyb34 {
1281 z.DecReadArrayEnd()
1282 return
1283 }
1284 z.DecReadArrayElem()
1285 z.F.DecSliceInt64X(&x.AI64slice0, d)
1286 yyj34++
1287 if yyhl34 {
1288 yyb34 = yyj34 > l
1289 } else {
1290 yyb34 = z.DecCheckBreak()
1291 }
1292 if yyb34 {
1293 z.DecReadArrayEnd()
1294 return
1295 }
1296 z.DecReadArrayElem()
1297 z.F.DecSliceUint64X(&x.AUi64sliceN, d)
1298 yyj34++
1299 if yyhl34 {
1300 yyb34 = yyj34 > l
1301 } else {
1302 yyb34 = z.DecCheckBreak()
1303 }
1304 if yyb34 {
1305 z.DecReadArrayEnd()
1306 return
1307 }
1308 z.DecReadArrayElem()
1309 z.F.DecMapStringUint64X(&x.AMSU64N, d)
1310 yyj34++
1311 if yyhl34 {
1312 yyb34 = yyj34 > l
1313 } else {
1314 yyb34 = z.DecCheckBreak()
1315 }
1316 if yyb34 {
1317 z.DecReadArrayEnd()
1318 return
1319 }
1320 z.DecReadArrayElem()
1321 z.F.DecMapStringUint64X(&x.AMSU64E, d)
1322 for {
1323 yyj34++
1324 if yyhl34 {
1325 yyb34 = yyj34 > l
1326 } else {
1327 yyb34 = z.DecCheckBreak()
1328 }
1329 if yyb34 {
1330 break
1331 }
1332 z.DecReadArrayElem()
1333 z.DecStructFieldNotFound(yyj34-1, "")
1334 }
1335 }
1336
1337 func (x *AnonInTestStruc) IsCodecEmpty() bool {
1338 return !(x.AS != "" || x.AI64 != 0 || x.AI16 != 0 || x.AUi64 != 0 || len(x.ASslice) != 0 || len(x.AI64slice) != 0 || len(x.AUi64slice) != 0 || len(x.AF64slice) != 0 || len(x.AF32slice) != 0 || len(x.AMSS) != 0 || len(x.AMSU64) != 0 || x.AI64arr8 != [8]int64{} || false || len(x.AI64slice0) != 0 || len(x.AUi64sliceN) != 0 || len(x.AMSU64N) != 0 || len(x.AMSU64E) != 0 || false)
1339 }
1340
1341 func (testSimpleFields) codecSelferViaCodecgen() {}
1342 func (x *testSimpleFields) CodecEncodeSelf(e *Encoder) {
1343 var h codecSelfer19780
1344 z, r := GenHelper().Encoder(e)
1345 _, _, _ = h, z, r
1346 if z.EncBasicHandle().CheckCircularRef {
1347 z.EncEncode(x)
1348 return
1349 }
1350 if x == nil {
1351 r.EncodeNil()
1352 } else {
1353 yy2arr2 := z.EncBasicHandle().StructToArray
1354 _ = yy2arr2
1355 const yyr2 bool = false // struct tag has 'toArray'
1356 if yyr2 || yy2arr2 {
1357 z.EncWriteArrayStart(17)
1358 z.EncWriteArrayElem()
1359 r.EncodeString(string(x.S))
1360 z.EncWriteArrayElem()
1361 r.EncodeInt(int64(x.I64))
1362 z.EncWriteArrayElem()
1363 r.EncodeInt(int64(x.I8))
1364 z.EncWriteArrayElem()
1365 r.EncodeUint(uint64(x.Ui64))
1366 z.EncWriteArrayElem()
1367 r.EncodeUint(uint64(x.Ui8))
1368 z.EncWriteArrayElem()
1369 r.EncodeFloat64(float64(x.F64))
1370 z.EncWriteArrayElem()
1371 r.EncodeFloat32(float32(x.F32))
1372 z.EncWriteArrayElem()
1373 r.EncodeBool(bool(x.B))
1374 z.EncWriteArrayElem()
1375 if x.Sslice == nil {
1376 r.EncodeNil()
1377 } else {
1378 z.F.EncSliceStringV(x.Sslice, e)
1379 } // end block: if x.Sslice slice == nil
1380 z.EncWriteArrayElem()
1381 if x.I32slice == nil {
1382 r.EncodeNil()
1383 } else {
1384 z.F.EncSliceInt32V(x.I32slice, e)
1385 } // end block: if x.I32slice slice == nil
1386 z.EncWriteArrayElem()
1387 if x.Ui64slice == nil {
1388 r.EncodeNil()
1389 } else {
1390 z.F.EncSliceUint64V(x.Ui64slice, e)
1391 } // end block: if x.Ui64slice slice == nil
1392 z.EncWriteArrayElem()
1393 if x.Ui8slice == nil {
1394 r.EncodeNil()
1395 } else {
1396 r.EncodeStringBytesRaw([]byte(x.Ui8slice))
1397 } // end block: if x.Ui8slice slice == nil
1398 z.EncWriteArrayElem()
1399 if x.Bslice == nil {
1400 r.EncodeNil()
1401 } else {
1402 z.F.EncSliceBoolV(x.Bslice, e)
1403 } // end block: if x.Bslice slice == nil
1404 z.EncWriteArrayElem()
1405 if x.Iptrslice == nil {
1406 r.EncodeNil()
1407 } else {
1408 h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
1409 } // end block: if x.Iptrslice slice == nil
1410 z.EncWriteArrayElem()
1411 if yyxt34 := z.Extension(x.WrapSliceInt64); yyxt34 != nil {
1412 z.EncExtension(x.WrapSliceInt64, yyxt34)
1413 } else {
1414 x.WrapSliceInt64.CodecEncodeSelf(e)
1415 }
1416 z.EncWriteArrayElem()
1417 if yyxt35 := z.Extension(x.WrapSliceString); yyxt35 != nil {
1418 z.EncExtension(x.WrapSliceString, yyxt35)
1419 } else {
1420 x.WrapSliceString.CodecEncodeSelf(e)
1421 }
1422 z.EncWriteArrayElem()
1423 if x.Msint == nil {
1424 r.EncodeNil()
1425 } else {
1426 z.F.EncMapStringIntV(x.Msint, e)
1427 } // end block: if x.Msint map == nil
1428 z.EncWriteArrayEnd()
1429 } else {
1430 z.EncWriteMapStart(17)
1431 if z.EncBasicHandle().Canonical {
1432 z.EncWriteMapElemKey()
1433 if z.IsJSONHandle() {
1434 z.WriteStr("\"B\"")
1435 } else {
1436 r.EncodeString(`B`)
1437 }
1438 z.EncWriteMapElemValue()
1439 r.EncodeBool(bool(x.B))
1440 z.EncWriteMapElemKey()
1441 if z.IsJSONHandle() {
1442 z.WriteStr("\"Bslice\"")
1443 } else {
1444 r.EncodeString(`Bslice`)
1445 }
1446 z.EncWriteMapElemValue()
1447 if x.Bslice == nil {
1448 r.EncodeNil()
1449 } else {
1450 z.F.EncSliceBoolV(x.Bslice, e)
1451 } // end block: if x.Bslice slice == nil
1452 z.EncWriteMapElemKey()
1453 if z.IsJSONHandle() {
1454 z.WriteStr("\"F32\"")
1455 } else {
1456 r.EncodeString(`F32`)
1457 }
1458 z.EncWriteMapElemValue()
1459 r.EncodeFloat32(float32(x.F32))
1460 z.EncWriteMapElemKey()
1461 if z.IsJSONHandle() {
1462 z.WriteStr("\"F64\"")
1463 } else {
1464 r.EncodeString(`F64`)
1465 }
1466 z.EncWriteMapElemValue()
1467 r.EncodeFloat64(float64(x.F64))
1468 z.EncWriteMapElemKey()
1469 if z.IsJSONHandle() {
1470 z.WriteStr("\"I32slice\"")
1471 } else {
1472 r.EncodeString(`I32slice`)
1473 }
1474 z.EncWriteMapElemValue()
1475 if x.I32slice == nil {
1476 r.EncodeNil()
1477 } else {
1478 z.F.EncSliceInt32V(x.I32slice, e)
1479 } // end block: if x.I32slice slice == nil
1480 z.EncWriteMapElemKey()
1481 if z.IsJSONHandle() {
1482 z.WriteStr("\"I64\"")
1483 } else {
1484 r.EncodeString(`I64`)
1485 }
1486 z.EncWriteMapElemValue()
1487 r.EncodeInt(int64(x.I64))
1488 z.EncWriteMapElemKey()
1489 if z.IsJSONHandle() {
1490 z.WriteStr("\"I8\"")
1491 } else {
1492 r.EncodeString(`I8`)
1493 }
1494 z.EncWriteMapElemValue()
1495 r.EncodeInt(int64(x.I8))
1496 z.EncWriteMapElemKey()
1497 if z.IsJSONHandle() {
1498 z.WriteStr("\"Iptrslice\"")
1499 } else {
1500 r.EncodeString(`Iptrslice`)
1501 }
1502 z.EncWriteMapElemValue()
1503 if x.Iptrslice == nil {
1504 r.EncodeNil()
1505 } else {
1506 h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
1507 } // end block: if x.Iptrslice slice == nil
1508 z.EncWriteMapElemKey()
1509 if z.IsJSONHandle() {
1510 z.WriteStr("\"Msint\"")
1511 } else {
1512 r.EncodeString(`Msint`)
1513 }
1514 z.EncWriteMapElemValue()
1515 if x.Msint == nil {
1516 r.EncodeNil()
1517 } else {
1518 z.F.EncMapStringIntV(x.Msint, e)
1519 } // end block: if x.Msint map == nil
1520 z.EncWriteMapElemKey()
1521 if z.IsJSONHandle() {
1522 z.WriteStr("\"S\"")
1523 } else {
1524 r.EncodeString(`S`)
1525 }
1526 z.EncWriteMapElemValue()
1527 r.EncodeString(string(x.S))
1528 z.EncWriteMapElemKey()
1529 if z.IsJSONHandle() {
1530 z.WriteStr("\"Sslice\"")
1531 } else {
1532 r.EncodeString(`Sslice`)
1533 }
1534 z.EncWriteMapElemValue()
1535 if x.Sslice == nil {
1536 r.EncodeNil()
1537 } else {
1538 z.F.EncSliceStringV(x.Sslice, e)
1539 } // end block: if x.Sslice slice == nil
1540 z.EncWriteMapElemKey()
1541 if z.IsJSONHandle() {
1542 z.WriteStr("\"Ui64\"")
1543 } else {
1544 r.EncodeString(`Ui64`)
1545 }
1546 z.EncWriteMapElemValue()
1547 r.EncodeUint(uint64(x.Ui64))
1548 z.EncWriteMapElemKey()
1549 if z.IsJSONHandle() {
1550 z.WriteStr("\"Ui64slice\"")
1551 } else {
1552 r.EncodeString(`Ui64slice`)
1553 }
1554 z.EncWriteMapElemValue()
1555 if x.Ui64slice == nil {
1556 r.EncodeNil()
1557 } else {
1558 z.F.EncSliceUint64V(x.Ui64slice, e)
1559 } // end block: if x.Ui64slice slice == nil
1560 z.EncWriteMapElemKey()
1561 if z.IsJSONHandle() {
1562 z.WriteStr("\"Ui8\"")
1563 } else {
1564 r.EncodeString(`Ui8`)
1565 }
1566 z.EncWriteMapElemValue()
1567 r.EncodeUint(uint64(x.Ui8))
1568 z.EncWriteMapElemKey()
1569 if z.IsJSONHandle() {
1570 z.WriteStr("\"Ui8slice\"")
1571 } else {
1572 r.EncodeString(`Ui8slice`)
1573 }
1574 z.EncWriteMapElemValue()
1575 if x.Ui8slice == nil {
1576 r.EncodeNil()
1577 } else {
1578 r.EncodeStringBytesRaw([]byte(x.Ui8slice))
1579 } // end block: if x.Ui8slice slice == nil
1580 z.EncWriteMapElemKey()
1581 if z.IsJSONHandle() {
1582 z.WriteStr("\"WrapSliceInt64\"")
1583 } else {
1584 r.EncodeString(`WrapSliceInt64`)
1585 }
1586 z.EncWriteMapElemValue()
1587 if yyxt52 := z.Extension(x.WrapSliceInt64); yyxt52 != nil {
1588 z.EncExtension(x.WrapSliceInt64, yyxt52)
1589 } else {
1590 x.WrapSliceInt64.CodecEncodeSelf(e)
1591 }
1592 z.EncWriteMapElemKey()
1593 if z.IsJSONHandle() {
1594 z.WriteStr("\"WrapSliceString\"")
1595 } else {
1596 r.EncodeString(`WrapSliceString`)
1597 }
1598 z.EncWriteMapElemValue()
1599 if yyxt53 := z.Extension(x.WrapSliceString); yyxt53 != nil {
1600 z.EncExtension(x.WrapSliceString, yyxt53)
1601 } else {
1602 x.WrapSliceString.CodecEncodeSelf(e)
1603 }
1604 } else {
1605 z.EncWriteMapElemKey()
1606 if z.IsJSONHandle() {
1607 z.WriteStr("\"S\"")
1608 } else {
1609 r.EncodeString(`S`)
1610 }
1611 z.EncWriteMapElemValue()
1612 r.EncodeString(string(x.S))
1613 z.EncWriteMapElemKey()
1614 if z.IsJSONHandle() {
1615 z.WriteStr("\"I64\"")
1616 } else {
1617 r.EncodeString(`I64`)
1618 }
1619 z.EncWriteMapElemValue()
1620 r.EncodeInt(int64(x.I64))
1621 z.EncWriteMapElemKey()
1622 if z.IsJSONHandle() {
1623 z.WriteStr("\"I8\"")
1624 } else {
1625 r.EncodeString(`I8`)
1626 }
1627 z.EncWriteMapElemValue()
1628 r.EncodeInt(int64(x.I8))
1629 z.EncWriteMapElemKey()
1630 if z.IsJSONHandle() {
1631 z.WriteStr("\"Ui64\"")
1632 } else {
1633 r.EncodeString(`Ui64`)
1634 }
1635 z.EncWriteMapElemValue()
1636 r.EncodeUint(uint64(x.Ui64))
1637 z.EncWriteMapElemKey()
1638 if z.IsJSONHandle() {
1639 z.WriteStr("\"Ui8\"")
1640 } else {
1641 r.EncodeString(`Ui8`)
1642 }
1643 z.EncWriteMapElemValue()
1644 r.EncodeUint(uint64(x.Ui8))
1645 z.EncWriteMapElemKey()
1646 if z.IsJSONHandle() {
1647 z.WriteStr("\"F64\"")
1648 } else {
1649 r.EncodeString(`F64`)
1650 }
1651 z.EncWriteMapElemValue()
1652 r.EncodeFloat64(float64(x.F64))
1653 z.EncWriteMapElemKey()
1654 if z.IsJSONHandle() {
1655 z.WriteStr("\"F32\"")
1656 } else {
1657 r.EncodeString(`F32`)
1658 }
1659 z.EncWriteMapElemValue()
1660 r.EncodeFloat32(float32(x.F32))
1661 z.EncWriteMapElemKey()
1662 if z.IsJSONHandle() {
1663 z.WriteStr("\"B\"")
1664 } else {
1665 r.EncodeString(`B`)
1666 }
1667 z.EncWriteMapElemValue()
1668 r.EncodeBool(bool(x.B))
1669 z.EncWriteMapElemKey()
1670 if z.IsJSONHandle() {
1671 z.WriteStr("\"Sslice\"")
1672 } else {
1673 r.EncodeString(`Sslice`)
1674 }
1675 z.EncWriteMapElemValue()
1676 if x.Sslice == nil {
1677 r.EncodeNil()
1678 } else {
1679 z.F.EncSliceStringV(x.Sslice, e)
1680 } // end block: if x.Sslice slice == nil
1681 z.EncWriteMapElemKey()
1682 if z.IsJSONHandle() {
1683 z.WriteStr("\"I32slice\"")
1684 } else {
1685 r.EncodeString(`I32slice`)
1686 }
1687 z.EncWriteMapElemValue()
1688 if x.I32slice == nil {
1689 r.EncodeNil()
1690 } else {
1691 z.F.EncSliceInt32V(x.I32slice, e)
1692 } // end block: if x.I32slice slice == nil
1693 z.EncWriteMapElemKey()
1694 if z.IsJSONHandle() {
1695 z.WriteStr("\"Ui64slice\"")
1696 } else {
1697 r.EncodeString(`Ui64slice`)
1698 }
1699 z.EncWriteMapElemValue()
1700 if x.Ui64slice == nil {
1701 r.EncodeNil()
1702 } else {
1703 z.F.EncSliceUint64V(x.Ui64slice, e)
1704 } // end block: if x.Ui64slice slice == nil
1705 z.EncWriteMapElemKey()
1706 if z.IsJSONHandle() {
1707 z.WriteStr("\"Ui8slice\"")
1708 } else {
1709 r.EncodeString(`Ui8slice`)
1710 }
1711 z.EncWriteMapElemValue()
1712 if x.Ui8slice == nil {
1713 r.EncodeNil()
1714 } else {
1715 r.EncodeStringBytesRaw([]byte(x.Ui8slice))
1716 } // end block: if x.Ui8slice slice == nil
1717 z.EncWriteMapElemKey()
1718 if z.IsJSONHandle() {
1719 z.WriteStr("\"Bslice\"")
1720 } else {
1721 r.EncodeString(`Bslice`)
1722 }
1723 z.EncWriteMapElemValue()
1724 if x.Bslice == nil {
1725 r.EncodeNil()
1726 } else {
1727 z.F.EncSliceBoolV(x.Bslice, e)
1728 } // end block: if x.Bslice slice == nil
1729 z.EncWriteMapElemKey()
1730 if z.IsJSONHandle() {
1731 z.WriteStr("\"Iptrslice\"")
1732 } else {
1733 r.EncodeString(`Iptrslice`)
1734 }
1735 z.EncWriteMapElemValue()
1736 if x.Iptrslice == nil {
1737 r.EncodeNil()
1738 } else {
1739 h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
1740 } // end block: if x.Iptrslice slice == nil
1741 z.EncWriteMapElemKey()
1742 if z.IsJSONHandle() {
1743 z.WriteStr("\"WrapSliceInt64\"")
1744 } else {
1745 r.EncodeString(`WrapSliceInt64`)
1746 }
1747 z.EncWriteMapElemValue()
1748 if yyxt68 := z.Extension(x.WrapSliceInt64); yyxt68 != nil {
1749 z.EncExtension(x.WrapSliceInt64, yyxt68)
1750 } else {
1751 x.WrapSliceInt64.CodecEncodeSelf(e)
1752 }
1753 z.EncWriteMapElemKey()
1754 if z.IsJSONHandle() {
1755 z.WriteStr("\"WrapSliceString\"")
1756 } else {
1757 r.EncodeString(`WrapSliceString`)
1758 }
1759 z.EncWriteMapElemValue()
1760 if yyxt69 := z.Extension(x.WrapSliceString); yyxt69 != nil {
1761 z.EncExtension(x.WrapSliceString, yyxt69)
1762 } else {
1763 x.WrapSliceString.CodecEncodeSelf(e)
1764 }
1765 z.EncWriteMapElemKey()
1766 if z.IsJSONHandle() {
1767 z.WriteStr("\"Msint\"")
1768 } else {
1769 r.EncodeString(`Msint`)
1770 }
1771 z.EncWriteMapElemValue()
1772 if x.Msint == nil {
1773 r.EncodeNil()
1774 } else {
1775 z.F.EncMapStringIntV(x.Msint, e)
1776 } // end block: if x.Msint map == nil
1777 }
1778 z.EncWriteMapEnd()
1779 }
1780 }
1781 }
1782
1783 func (x *testSimpleFields) CodecDecodeSelf(d *Decoder) {
1784 var h codecSelfer19780
1785 z, r := GenHelper().Decoder(d)
1786 _, _, _ = h, z, r
1787 yyct2 := r.ContainerType()
1788 if yyct2 == codecSelferValueTypeNil19780 {
1789 *(x) = testSimpleFields{}
1790 } else if yyct2 == codecSelferValueTypeMap19780 {
1791 yyl2 := z.DecReadMapStart()
1792 if yyl2 == 0 {
1793 } else {
1794 x.codecDecodeSelfFromMap(yyl2, d)
1795 }
1796 z.DecReadMapEnd()
1797 } else if yyct2 == codecSelferValueTypeArray19780 {
1798 yyl2 := z.DecReadArrayStart()
1799 if yyl2 != 0 {
1800 x.codecDecodeSelfFromArray(yyl2, d)
1801 }
1802 z.DecReadArrayEnd()
1803 } else {
1804 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
1805 }
1806 }
1807
1808 func (x *testSimpleFields) codecDecodeSelfFromMap(l int, d *Decoder) {
1809 var h codecSelfer19780
1810 z, r := GenHelper().Decoder(d)
1811 _, _, _ = h, z, r
1812 var yyhl3 bool = l >= 0
1813 for yyj3 := 0; ; yyj3++ {
1814 if yyhl3 {
1815 if yyj3 >= l {
1816 break
1817 }
1818 } else {
1819 if z.DecCheckBreak() {
1820 break
1821 }
1822 }
1823 z.DecReadMapElemKey()
1824 yys3 := r.DecodeStringAsBytes()
1825 z.DecReadMapElemValue()
1826 switch string(yys3) {
1827 case "S":
1828 x.S = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
1829 case "I64":
1830 x.I64 = (int64)(r.DecodeInt64())
1831 case "I8":
1832 x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
1833 case "Ui64":
1834 x.Ui64 = (uint64)(r.DecodeUint64())
1835 case "Ui8":
1836 x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
1837 case "F64":
1838 x.F64 = (float64)(r.DecodeFloat64())
1839 case "F32":
1840 x.F32 = (float32)(z.DecDecodeFloat32())
1841 case "B":
1842 x.B = (bool)(r.DecodeBool())
1843 case "Sslice":
1844 z.F.DecSliceStringX(&x.Sslice, d)
1845 case "I32slice":
1846 z.F.DecSliceInt32X(&x.I32slice, d)
1847 case "Ui64slice":
1848 z.F.DecSliceUint64X(&x.Ui64slice, d)
1849 case "Ui8slice":
1850 x.Ui8slice = z.DecodeBytesInto(([]byte)(x.Ui8slice))
1851 case "Bslice":
1852 z.F.DecSliceBoolX(&x.Bslice, d)
1853 case "Iptrslice":
1854 h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
1855 case "WrapSliceInt64":
1856 if yyxt25 := z.Extension(x.WrapSliceInt64); yyxt25 != nil {
1857 z.DecExtension(&x.WrapSliceInt64, yyxt25)
1858 } else {
1859 x.WrapSliceInt64.CodecDecodeSelf(d)
1860 }
1861 case "WrapSliceString":
1862 if yyxt27 := z.Extension(x.WrapSliceString); yyxt27 != nil {
1863 z.DecExtension(&x.WrapSliceString, yyxt27)
1864 } else {
1865 x.WrapSliceString.CodecDecodeSelf(d)
1866 }
1867 case "Msint":
1868 z.F.DecMapStringIntX(&x.Msint, d)
1869 default:
1870 z.DecStructFieldNotFound(-1, string(yys3))
1871 } // end switch yys3
1872 } // end for yyj3
1873 }
1874
1875 func (x *testSimpleFields) codecDecodeSelfFromArray(l int, d *Decoder) {
1876 var h codecSelfer19780
1877 z, r := GenHelper().Decoder(d)
1878 _, _, _ = h, z, r
1879 var yyj30 int
1880 var yyb30 bool
1881 var yyhl30 bool = l >= 0
1882 yyj30++
1883 if yyhl30 {
1884 yyb30 = yyj30 > l
1885 } else {
1886 yyb30 = z.DecCheckBreak()
1887 }
1888 if yyb30 {
1889 z.DecReadArrayEnd()
1890 return
1891 }
1892 z.DecReadArrayElem()
1893 x.S = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
1894 yyj30++
1895 if yyhl30 {
1896 yyb30 = yyj30 > l
1897 } else {
1898 yyb30 = z.DecCheckBreak()
1899 }
1900 if yyb30 {
1901 z.DecReadArrayEnd()
1902 return
1903 }
1904 z.DecReadArrayElem()
1905 x.I64 = (int64)(r.DecodeInt64())
1906 yyj30++
1907 if yyhl30 {
1908 yyb30 = yyj30 > l
1909 } else {
1910 yyb30 = z.DecCheckBreak()
1911 }
1912 if yyb30 {
1913 z.DecReadArrayEnd()
1914 return
1915 }
1916 z.DecReadArrayElem()
1917 x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
1918 yyj30++
1919 if yyhl30 {
1920 yyb30 = yyj30 > l
1921 } else {
1922 yyb30 = z.DecCheckBreak()
1923 }
1924 if yyb30 {
1925 z.DecReadArrayEnd()
1926 return
1927 }
1928 z.DecReadArrayElem()
1929 x.Ui64 = (uint64)(r.DecodeUint64())
1930 yyj30++
1931 if yyhl30 {
1932 yyb30 = yyj30 > l
1933 } else {
1934 yyb30 = z.DecCheckBreak()
1935 }
1936 if yyb30 {
1937 z.DecReadArrayEnd()
1938 return
1939 }
1940 z.DecReadArrayElem()
1941 x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
1942 yyj30++
1943 if yyhl30 {
1944 yyb30 = yyj30 > l
1945 } else {
1946 yyb30 = z.DecCheckBreak()
1947 }
1948 if yyb30 {
1949 z.DecReadArrayEnd()
1950 return
1951 }
1952 z.DecReadArrayElem()
1953 x.F64 = (float64)(r.DecodeFloat64())
1954 yyj30++
1955 if yyhl30 {
1956 yyb30 = yyj30 > l
1957 } else {
1958 yyb30 = z.DecCheckBreak()
1959 }
1960 if yyb30 {
1961 z.DecReadArrayEnd()
1962 return
1963 }
1964 z.DecReadArrayElem()
1965 x.F32 = (float32)(z.DecDecodeFloat32())
1966 yyj30++
1967 if yyhl30 {
1968 yyb30 = yyj30 > l
1969 } else {
1970 yyb30 = z.DecCheckBreak()
1971 }
1972 if yyb30 {
1973 z.DecReadArrayEnd()
1974 return
1975 }
1976 z.DecReadArrayElem()
1977 x.B = (bool)(r.DecodeBool())
1978 yyj30++
1979 if yyhl30 {
1980 yyb30 = yyj30 > l
1981 } else {
1982 yyb30 = z.DecCheckBreak()
1983 }
1984 if yyb30 {
1985 z.DecReadArrayEnd()
1986 return
1987 }
1988 z.DecReadArrayElem()
1989 z.F.DecSliceStringX(&x.Sslice, d)
1990 yyj30++
1991 if yyhl30 {
1992 yyb30 = yyj30 > l
1993 } else {
1994 yyb30 = z.DecCheckBreak()
1995 }
1996 if yyb30 {
1997 z.DecReadArrayEnd()
1998 return
1999 }
2000 z.DecReadArrayElem()
2001 z.F.DecSliceInt32X(&x.I32slice, d)
2002 yyj30++
2003 if yyhl30 {
2004 yyb30 = yyj30 > l
2005 } else {
2006 yyb30 = z.DecCheckBreak()
2007 }
2008 if yyb30 {
2009 z.DecReadArrayEnd()
2010 return
2011 }
2012 z.DecReadArrayElem()
2013 z.F.DecSliceUint64X(&x.Ui64slice, d)
2014 yyj30++
2015 if yyhl30 {
2016 yyb30 = yyj30 > l
2017 } else {
2018 yyb30 = z.DecCheckBreak()
2019 }
2020 if yyb30 {
2021 z.DecReadArrayEnd()
2022 return
2023 }
2024 z.DecReadArrayElem()
2025 x.Ui8slice = z.DecodeBytesInto(([]byte)(x.Ui8slice))
2026 yyj30++
2027 if yyhl30 {
2028 yyb30 = yyj30 > l
2029 } else {
2030 yyb30 = z.DecCheckBreak()
2031 }
2032 if yyb30 {
2033 z.DecReadArrayEnd()
2034 return
2035 }
2036 z.DecReadArrayElem()
2037 z.F.DecSliceBoolX(&x.Bslice, d)
2038 yyj30++
2039 if yyhl30 {
2040 yyb30 = yyj30 > l
2041 } else {
2042 yyb30 = z.DecCheckBreak()
2043 }
2044 if yyb30 {
2045 z.DecReadArrayEnd()
2046 return
2047 }
2048 z.DecReadArrayElem()
2049 h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
2050 yyj30++
2051 if yyhl30 {
2052 yyb30 = yyj30 > l
2053 } else {
2054 yyb30 = z.DecCheckBreak()
2055 }
2056 if yyb30 {
2057 z.DecReadArrayEnd()
2058 return
2059 }
2060 z.DecReadArrayElem()
2061 if yyxt52 := z.Extension(x.WrapSliceInt64); yyxt52 != nil {
2062 z.DecExtension(&x.WrapSliceInt64, yyxt52)
2063 } else {
2064 x.WrapSliceInt64.CodecDecodeSelf(d)
2065 }
2066 yyj30++
2067 if yyhl30 {
2068 yyb30 = yyj30 > l
2069 } else {
2070 yyb30 = z.DecCheckBreak()
2071 }
2072 if yyb30 {
2073 z.DecReadArrayEnd()
2074 return
2075 }
2076 z.DecReadArrayElem()
2077 if yyxt54 := z.Extension(x.WrapSliceString); yyxt54 != nil {
2078 z.DecExtension(&x.WrapSliceString, yyxt54)
2079 } else {
2080 x.WrapSliceString.CodecDecodeSelf(d)
2081 }
2082 yyj30++
2083 if yyhl30 {
2084 yyb30 = yyj30 > l
2085 } else {
2086 yyb30 = z.DecCheckBreak()
2087 }
2088 if yyb30 {
2089 z.DecReadArrayEnd()
2090 return
2091 }
2092 z.DecReadArrayElem()
2093 z.F.DecMapStringIntX(&x.Msint, d)
2094 for {
2095 yyj30++
2096 if yyhl30 {
2097 yyb30 = yyj30 > l
2098 } else {
2099 yyb30 = z.DecCheckBreak()
2100 }
2101 if yyb30 {
2102 break
2103 }
2104 z.DecReadArrayElem()
2105 z.DecStructFieldNotFound(yyj30-1, "")
2106 }
2107 }
2108
2109 func (x *testSimpleFields) IsCodecEmpty() bool {
2110 return !(x.S != "" || x.I64 != 0 || x.I8 != 0 || x.Ui64 != 0 || x.Ui8 != 0 || x.F64 != 0 || x.F32 != 0 || bool(x.B) || len(x.Sslice) != 0 || len(x.I32slice) != 0 || len(x.Ui64slice) != 0 || len(x.Ui8slice) != 0 || len(x.Bslice) != 0 || len(x.Iptrslice) != 0 || len(x.WrapSliceInt64) != 0 || len(x.WrapSliceString) != 0 || len(x.Msint) != 0 || false)
2111 }
2112
2113 func (TestStrucCommon) codecSelferViaCodecgen() {}
2114 func (x *TestStrucCommon) CodecEncodeSelf(e *Encoder) {
2115 var h codecSelfer19780
2116 z, r := GenHelper().Encoder(e)
2117 _, _, _ = h, z, r
2118 if z.EncBasicHandle().CheckCircularRef {
2119 z.EncEncode(x)
2120 return
2121 }
2122 if x == nil {
2123 r.EncodeNil()
2124 } else {
2125 yy2arr2 := z.EncBasicHandle().StructToArray
2126 _ = yy2arr2
2127 const yyr2 bool = false // struct tag has 'toArray'
2128 var yyn54 bool = x.AnonInTestStrucSlim == nil || x.AnonInTestStrucSlim.P == nil
2129 var yyn55 bool = x.NotAnonSlim == nil
2130 var yyn58 bool = x.Nint64 == nil
2131 if yyr2 || yy2arr2 {
2132 z.EncWriteArrayStart(56)
2133 z.EncWriteArrayElem()
2134 r.EncodeString(string(x.S))
2135 z.EncWriteArrayElem()
2136 r.EncodeInt(int64(x.I64))
2137 z.EncWriteArrayElem()
2138 r.EncodeInt(int64(x.I32))
2139 z.EncWriteArrayElem()
2140 r.EncodeInt(int64(x.I16))
2141 z.EncWriteArrayElem()
2142 r.EncodeInt(int64(x.I8))
2143 z.EncWriteArrayElem()
2144 r.EncodeInt(int64(x.I64n))
2145 z.EncWriteArrayElem()
2146 r.EncodeInt(int64(x.I32n))
2147 z.EncWriteArrayElem()
2148 r.EncodeInt(int64(x.I16n))
2149 z.EncWriteArrayElem()
2150 r.EncodeInt(int64(x.I8n))
2151 z.EncWriteArrayElem()
2152 r.EncodeUint(uint64(x.Ui64))
2153 z.EncWriteArrayElem()
2154 r.EncodeUint(uint64(x.Ui32))
2155 z.EncWriteArrayElem()
2156 r.EncodeUint(uint64(x.Ui16))
2157 z.EncWriteArrayElem()
2158 r.EncodeUint(uint64(x.Ui8))
2159 z.EncWriteArrayElem()
2160 r.EncodeFloat64(float64(x.F64))
2161 z.EncWriteArrayElem()
2162 r.EncodeFloat32(float32(x.F32))
2163 z.EncWriteArrayElem()
2164 r.EncodeBool(bool(x.B))
2165 z.EncWriteArrayElem()
2166 r.EncodeUint(uint64(x.By))
2167 z.EncWriteArrayElem()
2168 if x.Sslice == nil {
2169 r.EncodeNil()
2170 } else {
2171 z.F.EncSliceStringV(x.Sslice, e)
2172 } // end block: if x.Sslice slice == nil
2173 z.EncWriteArrayElem()
2174 if x.I64slice == nil {
2175 r.EncodeNil()
2176 } else {
2177 z.F.EncSliceInt64V(x.I64slice, e)
2178 } // end block: if x.I64slice slice == nil
2179 z.EncWriteArrayElem()
2180 if x.I32slice == nil {
2181 r.EncodeNil()
2182 } else {
2183 z.F.EncSliceInt32V(x.I32slice, e)
2184 } // end block: if x.I32slice slice == nil
2185 z.EncWriteArrayElem()
2186 if x.Ui64slice == nil {
2187 r.EncodeNil()
2188 } else {
2189 z.F.EncSliceUint64V(x.Ui64slice, e)
2190 } // end block: if x.Ui64slice slice == nil
2191 z.EncWriteArrayElem()
2192 if x.Ui8slice == nil {
2193 r.EncodeNil()
2194 } else {
2195 r.EncodeStringBytesRaw([]byte(x.Ui8slice))
2196 } // end block: if x.Ui8slice slice == nil
2197 z.EncWriteArrayElem()
2198 if x.Bslice == nil {
2199 r.EncodeNil()
2200 } else {
2201 z.F.EncSliceBoolV(x.Bslice, e)
2202 } // end block: if x.Bslice slice == nil
2203 z.EncWriteArrayElem()
2204 if x.Byslice == nil {
2205 r.EncodeNil()
2206 } else {
2207 r.EncodeStringBytesRaw([]byte(x.Byslice))
2208 } // end block: if x.Byslice slice == nil
2209 z.EncWriteArrayElem()
2210 if x.BytesSlice == nil {
2211 r.EncodeNil()
2212 } else {
2213 z.F.EncSliceBytesV(x.BytesSlice, e)
2214 } // end block: if x.BytesSlice slice == nil
2215 z.EncWriteArrayElem()
2216 if x.Iptrslice == nil {
2217 r.EncodeNil()
2218 } else {
2219 h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
2220 } // end block: if x.Iptrslice slice == nil
2221 z.EncWriteArrayElem()
2222 if yyxt85 := z.Extension(x.WrapSliceInt64); yyxt85 != nil {
2223 z.EncExtension(x.WrapSliceInt64, yyxt85)
2224 } else {
2225 x.WrapSliceInt64.CodecEncodeSelf(e)
2226 }
2227 z.EncWriteArrayElem()
2228 if yyxt86 := z.Extension(x.WrapSliceString); yyxt86 != nil {
2229 z.EncExtension(x.WrapSliceString, yyxt86)
2230 } else {
2231 x.WrapSliceString.CodecEncodeSelf(e)
2232 }
2233 z.EncWriteArrayElem()
2234 if x.Msint == nil {
2235 r.EncodeNil()
2236 } else {
2237 z.F.EncMapStringIntV(x.Msint, e)
2238 } // end block: if x.Msint map == nil
2239 z.EncWriteArrayElem()
2240 if x.Msbytes == nil {
2241 r.EncodeNil()
2242 } else {
2243 z.F.EncMapStringBytesV(x.Msbytes, e)
2244 } // end block: if x.Msbytes map == nil
2245 z.EncWriteArrayElem()
2246 yy89 := &x.Simplef
2247 if yyxt90 := z.Extension(yy89); yyxt90 != nil {
2248 z.EncExtension(yy89, yyxt90)
2249 } else {
2250 yy89.CodecEncodeSelf(e)
2251 }
2252 z.EncWriteArrayElem()
2253 if x.SstrUi64T == nil {
2254 r.EncodeNil()
2255 } else {
2256 h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
2257 } // end block: if x.SstrUi64T slice == nil
2258 z.EncWriteArrayElem()
2259 if x.MstrUi64T == nil {
2260 r.EncodeNil()
2261 } else {
2262 h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.MstrUi64T), e)
2263 } // end block: if x.MstrUi64T map == nil
2264 z.EncWriteArrayElem()
2265 r.EncodeString(string(x.AnonInTestStruc.AS))
2266 z.EncWriteArrayElem()
2267 r.EncodeInt(int64(x.AnonInTestStruc.AI64))
2268 z.EncWriteArrayElem()
2269 r.EncodeInt(int64(x.AnonInTestStruc.AI16))
2270 z.EncWriteArrayElem()
2271 r.EncodeUint(uint64(x.AnonInTestStruc.AUi64))
2272 z.EncWriteArrayElem()
2273 if x.AnonInTestStruc.ASslice == nil {
2274 r.EncodeNil()
2275 } else {
2276 z.F.EncSliceStringV(x.AnonInTestStruc.ASslice, e)
2277 } // end block: if x.AnonInTestStruc.ASslice slice == nil
2278 z.EncWriteArrayElem()
2279 if x.AnonInTestStruc.AI64slice == nil {
2280 r.EncodeNil()
2281 } else {
2282 z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice, e)
2283 } // end block: if x.AnonInTestStruc.AI64slice slice == nil
2284 z.EncWriteArrayElem()
2285 if x.AnonInTestStruc.AUi64slice == nil {
2286 r.EncodeNil()
2287 } else {
2288 z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64slice, e)
2289 } // end block: if x.AnonInTestStruc.AUi64slice slice == nil
2290 z.EncWriteArrayElem()
2291 if x.AnonInTestStruc.AF64slice == nil {
2292 r.EncodeNil()
2293 } else {
2294 z.F.EncSliceFloat64V(x.AnonInTestStruc.AF64slice, e)
2295 } // end block: if x.AnonInTestStruc.AF64slice slice == nil
2296 z.EncWriteArrayElem()
2297 if x.AnonInTestStruc.AF32slice == nil {
2298 r.EncodeNil()
2299 } else {
2300 z.F.EncSliceFloat32V(x.AnonInTestStruc.AF32slice, e)
2301 } // end block: if x.AnonInTestStruc.AF32slice slice == nil
2302 z.EncWriteArrayElem()
2303 if x.AnonInTestStruc.AMSS == nil {
2304 r.EncodeNil()
2305 } else {
2306 z.F.EncMapStringStringV(x.AnonInTestStruc.AMSS, e)
2307 } // end block: if x.AnonInTestStruc.AMSS map == nil
2308 z.EncWriteArrayElem()
2309 if x.AnonInTestStruc.AMSU64 == nil {
2310 r.EncodeNil()
2311 } else {
2312 z.F.EncMapStringUint64V(x.AnonInTestStruc.AMSU64, e)
2313 } // end block: if x.AnonInTestStruc.AMSU64 map == nil
2314 z.EncWriteArrayElem()
2315 yy104 := &x.AnonInTestStruc.AI64arr8
2316 h.encArray8int64((*[8]int64)(yy104), e)
2317 z.EncWriteArrayElem()
2318 yy106 := &x.AnonInTestStruc.AI64arr0
2319 h.encArray0int64((*[0]int64)(yy106), e)
2320 z.EncWriteArrayElem()
2321 if x.AnonInTestStruc.AI64slice0 == nil {
2322 r.EncodeNil()
2323 } else {
2324 z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice0, e)
2325 } // end block: if x.AnonInTestStruc.AI64slice0 slice == nil
2326 z.EncWriteArrayElem()
2327 if x.AnonInTestStruc.AUi64sliceN == nil {
2328 r.EncodeNil()
2329 } else {
2330 z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64sliceN, e)
2331 } // end block: if x.AnonInTestStruc.AUi64sliceN slice == nil
2332 z.EncWriteArrayElem()
2333 if x.AnonInTestStruc.AMSU64N == nil {
2334 r.EncodeNil()
2335 } else {
2336 z.F.EncMapStringUint64V(x.AnonInTestStruc.AMSU64N, e)
2337 } // end block: if x.AnonInTestStruc.AMSU64N map == nil
2338 z.EncWriteArrayElem()
2339 if x.AnonInTestStruc.AMSU64E == nil {
2340 r.EncodeNil()
2341 } else {
2342 z.F.EncMapStringUint64V(x.AnonInTestStruc.AMSU64E, e)
2343 } // end block: if x.AnonInTestStruc.AMSU64E map == nil
2344 z.EncWriteArrayElem()
2345 yy112 := &x.NotAnon
2346 if yyxt113 := z.Extension(yy112); yyxt113 != nil {
2347 z.EncExtension(yy112, yyxt113)
2348 } else {
2349 yy112.CodecEncodeSelf(e)
2350 }
2351 if yyn54 {
2352 z.EncWriteArrayElem()
2353 r.EncodeNil()
2354 } else {
2355 z.EncWriteArrayElem()
2356 yy114 := *x.AnonInTestStrucSlim.P
2357 r.EncodeString(string(yy114))
2358 }
2359 if yyn55 {
2360 z.EncWriteArrayElem()
2361 r.EncodeNil()
2362 } else {
2363 z.EncWriteArrayElem()
2364 if yyxt116 := z.Extension(x.NotAnonSlim); yyxt116 != nil {
2365 z.EncExtension(x.NotAnonSlim, yyxt116)
2366 } else {
2367 x.NotAnonSlim.CodecEncodeSelf(e)
2368 }
2369 }
2370 z.EncWriteArrayElem()
2371 if x.Nmap == nil {
2372 r.EncodeNil()
2373 } else {
2374 z.F.EncMapStringBoolV(x.Nmap, e)
2375 } // end block: if x.Nmap map == nil
2376 z.EncWriteArrayElem()
2377 if x.Nslice == nil {
2378 r.EncodeNil()
2379 } else {
2380 r.EncodeStringBytesRaw([]byte(x.Nslice))
2381 } // end block: if x.Nslice slice == nil
2382 if yyn58 {
2383 z.EncWriteArrayElem()
2384 r.EncodeNil()
2385 } else {
2386 z.EncWriteArrayElem()
2387 yy119 := *x.Nint64
2388 r.EncodeInt(int64(yy119))
2389 }
2390 z.EncWriteArrayEnd()
2391 } else {
2392 z.EncWriteMapStart(56)
2393 if z.EncBasicHandle().Canonical {
2394 z.EncWriteMapElemKey()
2395 if z.IsJSONHandle() {
2396 z.WriteStr("\"AF32slice\"")
2397 } else {
2398 r.EncodeString(`AF32slice`)
2399 }
2400 z.EncWriteMapElemValue()
2401 if x.AnonInTestStruc.AF32slice == nil {
2402 r.EncodeNil()
2403 } else {
2404 z.F.EncSliceFloat32V(x.AnonInTestStruc.AF32slice, e)
2405 } // end block: if x.AnonInTestStruc.AF32slice slice == nil
2406 z.EncWriteMapElemKey()
2407 if z.IsJSONHandle() {
2408 z.WriteStr("\"AF64slice\"")
2409 } else {
2410 r.EncodeString(`AF64slice`)
2411 }
2412 z.EncWriteMapElemValue()
2413 if x.AnonInTestStruc.AF64slice == nil {
2414 r.EncodeNil()
2415 } else {
2416 z.F.EncSliceFloat64V(x.AnonInTestStruc.AF64slice, e)
2417 } // end block: if x.AnonInTestStruc.AF64slice slice == nil
2418 z.EncWriteMapElemKey()
2419 if z.IsJSONHandle() {
2420 z.WriteStr("\"AI16\"")
2421 } else {
2422 r.EncodeString(`AI16`)
2423 }
2424 z.EncWriteMapElemValue()
2425 r.EncodeInt(int64(x.AnonInTestStruc.AI16))
2426 z.EncWriteMapElemKey()
2427 if z.IsJSONHandle() {
2428 z.WriteStr("\"AI64\"")
2429 } else {
2430 r.EncodeString(`AI64`)
2431 }
2432 z.EncWriteMapElemValue()
2433 r.EncodeInt(int64(x.AnonInTestStruc.AI64))
2434 z.EncWriteMapElemKey()
2435 if z.IsJSONHandle() {
2436 z.WriteStr("\"AI64arr0\"")
2437 } else {
2438 r.EncodeString(`AI64arr0`)
2439 }
2440 z.EncWriteMapElemValue()
2441 yy125 := &x.AnonInTestStruc.AI64arr0
2442 h.encArray0int64((*[0]int64)(yy125), e)
2443 z.EncWriteMapElemKey()
2444 if z.IsJSONHandle() {
2445 z.WriteStr("\"AI64arr8\"")
2446 } else {
2447 r.EncodeString(`AI64arr8`)
2448 }
2449 z.EncWriteMapElemValue()
2450 yy127 := &x.AnonInTestStruc.AI64arr8
2451 h.encArray8int64((*[8]int64)(yy127), e)
2452 z.EncWriteMapElemKey()
2453 if z.IsJSONHandle() {
2454 z.WriteStr("\"AI64slice\"")
2455 } else {
2456 r.EncodeString(`AI64slice`)
2457 }
2458 z.EncWriteMapElemValue()
2459 if x.AnonInTestStruc.AI64slice == nil {
2460 r.EncodeNil()
2461 } else {
2462 z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice, e)
2463 } // end block: if x.AnonInTestStruc.AI64slice slice == nil
2464 z.EncWriteMapElemKey()
2465 if z.IsJSONHandle() {
2466 z.WriteStr("\"AI64slice0\"")
2467 } else {
2468 r.EncodeString(`AI64slice0`)
2469 }
2470 z.EncWriteMapElemValue()
2471 if x.AnonInTestStruc.AI64slice0 == nil {
2472 r.EncodeNil()
2473 } else {
2474 z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice0, e)
2475 } // end block: if x.AnonInTestStruc.AI64slice0 slice == nil
2476 z.EncWriteMapElemKey()
2477 if z.IsJSONHandle() {
2478 z.WriteStr("\"AMSS\"")
2479 } else {
2480 r.EncodeString(`AMSS`)
2481 }
2482 z.EncWriteMapElemValue()
2483 if x.AnonInTestStruc.AMSS == nil {
2484 r.EncodeNil()
2485 } else {
2486 z.F.EncMapStringStringV(x.AnonInTestStruc.AMSS, e)
2487 } // end block: if x.AnonInTestStruc.AMSS map == nil
2488 z.EncWriteMapElemKey()
2489 if z.IsJSONHandle() {
2490 z.WriteStr("\"AMSU64\"")
2491 } else {
2492 r.EncodeString(`AMSU64`)
2493 }
2494 z.EncWriteMapElemValue()
2495 if x.AnonInTestStruc.AMSU64 == nil {
2496 r.EncodeNil()
2497 } else {
2498 z.F.EncMapStringUint64V(x.AnonInTestStruc.AMSU64, e)
2499 } // end block: if x.AnonInTestStruc.AMSU64 map == nil
2500 z.EncWriteMapElemKey()
2501 if z.IsJSONHandle() {
2502 z.WriteStr("\"AMSU64E\"")
2503 } else {
2504 r.EncodeString(`AMSU64E`)
2505 }
2506 z.EncWriteMapElemValue()
2507 if x.AnonInTestStruc.AMSU64E == nil {
2508 r.EncodeNil()
2509 } else {
2510 z.F.EncMapStringUint64V(x.AnonInTestStruc.AMSU64E, e)
2511 } // end block: if x.AnonInTestStruc.AMSU64E map == nil
2512 z.EncWriteMapElemKey()
2513 if z.IsJSONHandle() {
2514 z.WriteStr("\"AMSU64N\"")
2515 } else {
2516 r.EncodeString(`AMSU64N`)
2517 }
2518 z.EncWriteMapElemValue()
2519 if x.AnonInTestStruc.AMSU64N == nil {
2520 r.EncodeNil()
2521 } else {
2522 z.F.EncMapStringUint64V(x.AnonInTestStruc.AMSU64N, e)
2523 } // end block: if x.AnonInTestStruc.AMSU64N map == nil
2524 z.EncWriteMapElemKey()
2525 if z.IsJSONHandle() {
2526 z.WriteStr("\"AS\"")
2527 } else {
2528 r.EncodeString(`AS`)
2529 }
2530 z.EncWriteMapElemValue()
2531 r.EncodeString(string(x.AnonInTestStruc.AS))
2532 z.EncWriteMapElemKey()
2533 if z.IsJSONHandle() {
2534 z.WriteStr("\"ASslice\"")
2535 } else {
2536 r.EncodeString(`ASslice`)
2537 }
2538 z.EncWriteMapElemValue()
2539 if x.AnonInTestStruc.ASslice == nil {
2540 r.EncodeNil()
2541 } else {
2542 z.F.EncSliceStringV(x.AnonInTestStruc.ASslice, e)
2543 } // end block: if x.AnonInTestStruc.ASslice slice == nil
2544 z.EncWriteMapElemKey()
2545 if z.IsJSONHandle() {
2546 z.WriteStr("\"AUi64\"")
2547 } else {
2548 r.EncodeString(`AUi64`)
2549 }
2550 z.EncWriteMapElemValue()
2551 r.EncodeUint(uint64(x.AnonInTestStruc.AUi64))
2552 z.EncWriteMapElemKey()
2553 if z.IsJSONHandle() {
2554 z.WriteStr("\"AUi64slice\"")
2555 } else {
2556 r.EncodeString(`AUi64slice`)
2557 }
2558 z.EncWriteMapElemValue()
2559 if x.AnonInTestStruc.AUi64slice == nil {
2560 r.EncodeNil()
2561 } else {
2562 z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64slice, e)
2563 } // end block: if x.AnonInTestStruc.AUi64slice slice == nil
2564 z.EncWriteMapElemKey()
2565 if z.IsJSONHandle() {
2566 z.WriteStr("\"AUi64sliceN\"")
2567 } else {
2568 r.EncodeString(`AUi64sliceN`)
2569 }
2570 z.EncWriteMapElemValue()
2571 if x.AnonInTestStruc.AUi64sliceN == nil {
2572 r.EncodeNil()
2573 } else {
2574 z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64sliceN, e)
2575 } // end block: if x.AnonInTestStruc.AUi64sliceN slice == nil
2576 z.EncWriteMapElemKey()
2577 if z.IsJSONHandle() {
2578 z.WriteStr("\"B\"")
2579 } else {
2580 r.EncodeString(`B`)
2581 }
2582 z.EncWriteMapElemValue()
2583 r.EncodeBool(bool(x.B))
2584 z.EncWriteMapElemKey()
2585 if z.IsJSONHandle() {
2586 z.WriteStr("\"Bslice\"")
2587 } else {
2588 r.EncodeString(`Bslice`)
2589 }
2590 z.EncWriteMapElemValue()
2591 if x.Bslice == nil {
2592 r.EncodeNil()
2593 } else {
2594 z.F.EncSliceBoolV(x.Bslice, e)
2595 } // end block: if x.Bslice slice == nil
2596 z.EncWriteMapElemKey()
2597 if z.IsJSONHandle() {
2598 z.WriteStr("\"By\"")
2599 } else {
2600 r.EncodeString(`By`)
2601 }
2602 z.EncWriteMapElemValue()
2603 r.EncodeUint(uint64(x.By))
2604 z.EncWriteMapElemKey()
2605 if z.IsJSONHandle() {
2606 z.WriteStr("\"Byslice\"")
2607 } else {
2608 r.EncodeString(`Byslice`)
2609 }
2610 z.EncWriteMapElemValue()
2611 if x.Byslice == nil {
2612 r.EncodeNil()
2613 } else {
2614 r.EncodeStringBytesRaw([]byte(x.Byslice))
2615 } // end block: if x.Byslice slice == nil
2616 z.EncWriteMapElemKey()
2617 if z.IsJSONHandle() {
2618 z.WriteStr("\"BytesSlice\"")
2619 } else {
2620 r.EncodeString(`BytesSlice`)
2621 }
2622 z.EncWriteMapElemValue()
2623 if x.BytesSlice == nil {
2624 r.EncodeNil()
2625 } else {
2626 z.F.EncSliceBytesV(x.BytesSlice, e)
2627 } // end block: if x.BytesSlice slice == nil
2628 z.EncWriteMapElemKey()
2629 if z.IsJSONHandle() {
2630 z.WriteStr("\"F32\"")
2631 } else {
2632 r.EncodeString(`F32`)
2633 }
2634 z.EncWriteMapElemValue()
2635 r.EncodeFloat32(float32(x.F32))
2636 z.EncWriteMapElemKey()
2637 if z.IsJSONHandle() {
2638 z.WriteStr("\"F64\"")
2639 } else {
2640 r.EncodeString(`F64`)
2641 }
2642 z.EncWriteMapElemValue()
2643 r.EncodeFloat64(float64(x.F64))
2644 z.EncWriteMapElemKey()
2645 if z.IsJSONHandle() {
2646 z.WriteStr("\"I16\"")
2647 } else {
2648 r.EncodeString(`I16`)
2649 }
2650 z.EncWriteMapElemValue()
2651 r.EncodeInt(int64(x.I16))
2652 z.EncWriteMapElemKey()
2653 if z.IsJSONHandle() {
2654 z.WriteStr("\"I16n\"")
2655 } else {
2656 r.EncodeString(`I16n`)
2657 }
2658 z.EncWriteMapElemValue()
2659 r.EncodeInt(int64(x.I16n))
2660 z.EncWriteMapElemKey()
2661 if z.IsJSONHandle() {
2662 z.WriteStr("\"I32\"")
2663 } else {
2664 r.EncodeString(`I32`)
2665 }
2666 z.EncWriteMapElemValue()
2667 r.EncodeInt(int64(x.I32))
2668 z.EncWriteMapElemKey()
2669 if z.IsJSONHandle() {
2670 z.WriteStr("\"I32n\"")
2671 } else {
2672 r.EncodeString(`I32n`)
2673 }
2674 z.EncWriteMapElemValue()
2675 r.EncodeInt(int64(x.I32n))
2676 z.EncWriteMapElemKey()
2677 if z.IsJSONHandle() {
2678 z.WriteStr("\"I32slice\"")
2679 } else {
2680 r.EncodeString(`I32slice`)
2681 }
2682 z.EncWriteMapElemValue()
2683 if x.I32slice == nil {
2684 r.EncodeNil()
2685 } else {
2686 z.F.EncSliceInt32V(x.I32slice, e)
2687 } // end block: if x.I32slice slice == nil
2688 z.EncWriteMapElemKey()
2689 if z.IsJSONHandle() {
2690 z.WriteStr("\"I64\"")
2691 } else {
2692 r.EncodeString(`I64`)
2693 }
2694 z.EncWriteMapElemValue()
2695 r.EncodeInt(int64(x.I64))
2696 z.EncWriteMapElemKey()
2697 if z.IsJSONHandle() {
2698 z.WriteStr("\"I64n\"")
2699 } else {
2700 r.EncodeString(`I64n`)
2701 }
2702 z.EncWriteMapElemValue()
2703 r.EncodeInt(int64(x.I64n))
2704 z.EncWriteMapElemKey()
2705 if z.IsJSONHandle() {
2706 z.WriteStr("\"I64slice\"")
2707 } else {
2708 r.EncodeString(`I64slice`)
2709 }
2710 z.EncWriteMapElemValue()
2711 if x.I64slice == nil {
2712 r.EncodeNil()
2713 } else {
2714 z.F.EncSliceInt64V(x.I64slice, e)
2715 } // end block: if x.I64slice slice == nil
2716 z.EncWriteMapElemKey()
2717 if z.IsJSONHandle() {
2718 z.WriteStr("\"I8\"")
2719 } else {
2720 r.EncodeString(`I8`)
2721 }
2722 z.EncWriteMapElemValue()
2723 r.EncodeInt(int64(x.I8))
2724 z.EncWriteMapElemKey()
2725 if z.IsJSONHandle() {
2726 z.WriteStr("\"I8n\"")
2727 } else {
2728 r.EncodeString(`I8n`)
2729 }
2730 z.EncWriteMapElemValue()
2731 r.EncodeInt(int64(x.I8n))
2732 z.EncWriteMapElemKey()
2733 if z.IsJSONHandle() {
2734 z.WriteStr("\"Iptrslice\"")
2735 } else {
2736 r.EncodeString(`Iptrslice`)
2737 }
2738 z.EncWriteMapElemValue()
2739 if x.Iptrslice == nil {
2740 r.EncodeNil()
2741 } else {
2742 h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
2743 } // end block: if x.Iptrslice slice == nil
2744 z.EncWriteMapElemKey()
2745 if z.IsJSONHandle() {
2746 z.WriteStr("\"Msbytes\"")
2747 } else {
2748 r.EncodeString(`Msbytes`)
2749 }
2750 z.EncWriteMapElemValue()
2751 if x.Msbytes == nil {
2752 r.EncodeNil()
2753 } else {
2754 z.F.EncMapStringBytesV(x.Msbytes, e)
2755 } // end block: if x.Msbytes map == nil
2756 z.EncWriteMapElemKey()
2757 if z.IsJSONHandle() {
2758 z.WriteStr("\"Msint\"")
2759 } else {
2760 r.EncodeString(`Msint`)
2761 }
2762 z.EncWriteMapElemValue()
2763 if x.Msint == nil {
2764 r.EncodeNil()
2765 } else {
2766 z.F.EncMapStringIntV(x.Msint, e)
2767 } // end block: if x.Msint map == nil
2768 z.EncWriteMapElemKey()
2769 if z.IsJSONHandle() {
2770 z.WriteStr("\"MstrUi64T\"")
2771 } else {
2772 r.EncodeString(`MstrUi64T`)
2773 }
2774 z.EncWriteMapElemValue()
2775 if x.MstrUi64T == nil {
2776 r.EncodeNil()
2777 } else {
2778 h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.MstrUi64T), e)
2779 } // end block: if x.MstrUi64T map == nil
2780 z.EncWriteMapElemKey()
2781 if z.IsJSONHandle() {
2782 z.WriteStr("\"Nint64\"")
2783 } else {
2784 r.EncodeString(`Nint64`)
2785 }
2786 z.EncWriteMapElemValue()
2787 if yyn58 {
2788 r.EncodeNil()
2789 } else {
2790 yy161 := *x.Nint64
2791 r.EncodeInt(int64(yy161))
2792 }
2793 z.EncWriteMapElemKey()
2794 if z.IsJSONHandle() {
2795 z.WriteStr("\"Nmap\"")
2796 } else {
2797 r.EncodeString(`Nmap`)
2798 }
2799 z.EncWriteMapElemValue()
2800 if x.Nmap == nil {
2801 r.EncodeNil()
2802 } else {
2803 z.F.EncMapStringBoolV(x.Nmap, e)
2804 } // end block: if x.Nmap map == nil
2805 z.EncWriteMapElemKey()
2806 if z.IsJSONHandle() {
2807 z.WriteStr("\"NotAnon\"")
2808 } else {
2809 r.EncodeString(`NotAnon`)
2810 }
2811 z.EncWriteMapElemValue()
2812 yy164 := &x.NotAnon
2813 if yyxt165 := z.Extension(yy164); yyxt165 != nil {
2814 z.EncExtension(yy164, yyxt165)
2815 } else {
2816 yy164.CodecEncodeSelf(e)
2817 }
2818 z.EncWriteMapElemKey()
2819 if z.IsJSONHandle() {
2820 z.WriteStr("\"NotAnonSlim\"")
2821 } else {
2822 r.EncodeString(`NotAnonSlim`)
2823 }
2824 z.EncWriteMapElemValue()
2825 if yyn55 {
2826 r.EncodeNil()
2827 } else {
2828 if yyxt166 := z.Extension(x.NotAnonSlim); yyxt166 != nil {
2829 z.EncExtension(x.NotAnonSlim, yyxt166)
2830 } else {
2831 x.NotAnonSlim.CodecEncodeSelf(e)
2832 }
2833 }
2834 z.EncWriteMapElemKey()
2835 if z.IsJSONHandle() {
2836 z.WriteStr("\"Nslice\"")
2837 } else {
2838 r.EncodeString(`Nslice`)
2839 }
2840 z.EncWriteMapElemValue()
2841 if x.Nslice == nil {
2842 r.EncodeNil()
2843 } else {
2844 r.EncodeStringBytesRaw([]byte(x.Nslice))
2845 } // end block: if x.Nslice slice == nil
2846 z.EncWriteMapElemKey()
2847 if z.IsJSONHandle() {
2848 z.WriteStr("\"P\"")
2849 } else {
2850 r.EncodeString(`P`)
2851 }
2852 z.EncWriteMapElemValue()
2853 if yyn54 {
2854 r.EncodeNil()
2855 } else {
2856 yy168 := *x.AnonInTestStrucSlim.P
2857 r.EncodeString(string(yy168))
2858 }
2859 z.EncWriteMapElemKey()
2860 if z.IsJSONHandle() {
2861 z.WriteStr("\"S\"")
2862 } else {
2863 r.EncodeString(`S`)
2864 }
2865 z.EncWriteMapElemValue()
2866 r.EncodeString(string(x.S))
2867 z.EncWriteMapElemKey()
2868 if z.IsJSONHandle() {
2869 z.WriteStr("\"Simplef\"")
2870 } else {
2871 r.EncodeString(`Simplef`)
2872 }
2873 z.EncWriteMapElemValue()
2874 yy171 := &x.Simplef
2875 if yyxt172 := z.Extension(yy171); yyxt172 != nil {
2876 z.EncExtension(yy171, yyxt172)
2877 } else {
2878 yy171.CodecEncodeSelf(e)
2879 }
2880 z.EncWriteMapElemKey()
2881 if z.IsJSONHandle() {
2882 z.WriteStr("\"Sslice\"")
2883 } else {
2884 r.EncodeString(`Sslice`)
2885 }
2886 z.EncWriteMapElemValue()
2887 if x.Sslice == nil {
2888 r.EncodeNil()
2889 } else {
2890 z.F.EncSliceStringV(x.Sslice, e)
2891 } // end block: if x.Sslice slice == nil
2892 z.EncWriteMapElemKey()
2893 if z.IsJSONHandle() {
2894 z.WriteStr("\"SstrUi64T\"")
2895 } else {
2896 r.EncodeString(`SstrUi64T`)
2897 }
2898 z.EncWriteMapElemValue()
2899 if x.SstrUi64T == nil {
2900 r.EncodeNil()
2901 } else {
2902 h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
2903 } // end block: if x.SstrUi64T slice == nil
2904 z.EncWriteMapElemKey()
2905 if z.IsJSONHandle() {
2906 z.WriteStr("\"Ui16\"")
2907 } else {
2908 r.EncodeString(`Ui16`)
2909 }
2910 z.EncWriteMapElemValue()
2911 r.EncodeUint(uint64(x.Ui16))
2912 z.EncWriteMapElemKey()
2913 if z.IsJSONHandle() {
2914 z.WriteStr("\"Ui32\"")
2915 } else {
2916 r.EncodeString(`Ui32`)
2917 }
2918 z.EncWriteMapElemValue()
2919 r.EncodeUint(uint64(x.Ui32))
2920 z.EncWriteMapElemKey()
2921 if z.IsJSONHandle() {
2922 z.WriteStr("\"Ui64\"")
2923 } else {
2924 r.EncodeString(`Ui64`)
2925 }
2926 z.EncWriteMapElemValue()
2927 r.EncodeUint(uint64(x.Ui64))
2928 z.EncWriteMapElemKey()
2929 if z.IsJSONHandle() {
2930 z.WriteStr("\"Ui64slice\"")
2931 } else {
2932 r.EncodeString(`Ui64slice`)
2933 }
2934 z.EncWriteMapElemValue()
2935 if x.Ui64slice == nil {
2936 r.EncodeNil()
2937 } else {
2938 z.F.EncSliceUint64V(x.Ui64slice, e)
2939 } // end block: if x.Ui64slice slice == nil
2940 z.EncWriteMapElemKey()
2941 if z.IsJSONHandle() {
2942 z.WriteStr("\"Ui8\"")
2943 } else {
2944 r.EncodeString(`Ui8`)
2945 }
2946 z.EncWriteMapElemValue()
2947 r.EncodeUint(uint64(x.Ui8))
2948 z.EncWriteMapElemKey()
2949 if z.IsJSONHandle() {
2950 z.WriteStr("\"Ui8slice\"")
2951 } else {
2952 r.EncodeString(`Ui8slice`)
2953 }
2954 z.EncWriteMapElemValue()
2955 if x.Ui8slice == nil {
2956 r.EncodeNil()
2957 } else {
2958 r.EncodeStringBytesRaw([]byte(x.Ui8slice))
2959 } // end block: if x.Ui8slice slice == nil
2960 z.EncWriteMapElemKey()
2961 if z.IsJSONHandle() {
2962 z.WriteStr("\"WrapSliceInt64\"")
2963 } else {
2964 r.EncodeString(`WrapSliceInt64`)
2965 }
2966 z.EncWriteMapElemValue()
2967 if yyxt181 := z.Extension(x.WrapSliceInt64); yyxt181 != nil {
2968 z.EncExtension(x.WrapSliceInt64, yyxt181)
2969 } else {
2970 x.WrapSliceInt64.CodecEncodeSelf(e)
2971 }
2972 z.EncWriteMapElemKey()
2973 if z.IsJSONHandle() {
2974 z.WriteStr("\"WrapSliceString\"")
2975 } else {
2976 r.EncodeString(`WrapSliceString`)
2977 }
2978 z.EncWriteMapElemValue()
2979 if yyxt182 := z.Extension(x.WrapSliceString); yyxt182 != nil {
2980 z.EncExtension(x.WrapSliceString, yyxt182)
2981 } else {
2982 x.WrapSliceString.CodecEncodeSelf(e)
2983 }
2984 } else {
2985 z.EncWriteMapElemKey()
2986 if z.IsJSONHandle() {
2987 z.WriteStr("\"S\"")
2988 } else {
2989 r.EncodeString(`S`)
2990 }
2991 z.EncWriteMapElemValue()
2992 r.EncodeString(string(x.S))
2993 z.EncWriteMapElemKey()
2994 if z.IsJSONHandle() {
2995 z.WriteStr("\"I64\"")
2996 } else {
2997 r.EncodeString(`I64`)
2998 }
2999 z.EncWriteMapElemValue()
3000 r.EncodeInt(int64(x.I64))
3001 z.EncWriteMapElemKey()
3002 if z.IsJSONHandle() {
3003 z.WriteStr("\"I32\"")
3004 } else {
3005 r.EncodeString(`I32`)
3006 }
3007 z.EncWriteMapElemValue()
3008 r.EncodeInt(int64(x.I32))
3009 z.EncWriteMapElemKey()
3010 if z.IsJSONHandle() {
3011 z.WriteStr("\"I16\"")
3012 } else {
3013 r.EncodeString(`I16`)
3014 }
3015 z.EncWriteMapElemValue()
3016 r.EncodeInt(int64(x.I16))
3017 z.EncWriteMapElemKey()
3018 if z.IsJSONHandle() {
3019 z.WriteStr("\"I8\"")
3020 } else {
3021 r.EncodeString(`I8`)
3022 }
3023 z.EncWriteMapElemValue()
3024 r.EncodeInt(int64(x.I8))
3025 z.EncWriteMapElemKey()
3026 if z.IsJSONHandle() {
3027 z.WriteStr("\"I64n\"")
3028 } else {
3029 r.EncodeString(`I64n`)
3030 }
3031 z.EncWriteMapElemValue()
3032 r.EncodeInt(int64(x.I64n))
3033 z.EncWriteMapElemKey()
3034 if z.IsJSONHandle() {
3035 z.WriteStr("\"I32n\"")
3036 } else {
3037 r.EncodeString(`I32n`)
3038 }
3039 z.EncWriteMapElemValue()
3040 r.EncodeInt(int64(x.I32n))
3041 z.EncWriteMapElemKey()
3042 if z.IsJSONHandle() {
3043 z.WriteStr("\"I16n\"")
3044 } else {
3045 r.EncodeString(`I16n`)
3046 }
3047 z.EncWriteMapElemValue()
3048 r.EncodeInt(int64(x.I16n))
3049 z.EncWriteMapElemKey()
3050 if z.IsJSONHandle() {
3051 z.WriteStr("\"I8n\"")
3052 } else {
3053 r.EncodeString(`I8n`)
3054 }
3055 z.EncWriteMapElemValue()
3056 r.EncodeInt(int64(x.I8n))
3057 z.EncWriteMapElemKey()
3058 if z.IsJSONHandle() {
3059 z.WriteStr("\"Ui64\"")
3060 } else {
3061 r.EncodeString(`Ui64`)
3062 }
3063 z.EncWriteMapElemValue()
3064 r.EncodeUint(uint64(x.Ui64))
3065 z.EncWriteMapElemKey()
3066 if z.IsJSONHandle() {
3067 z.WriteStr("\"Ui32\"")
3068 } else {
3069 r.EncodeString(`Ui32`)
3070 }
3071 z.EncWriteMapElemValue()
3072 r.EncodeUint(uint64(x.Ui32))
3073 z.EncWriteMapElemKey()
3074 if z.IsJSONHandle() {
3075 z.WriteStr("\"Ui16\"")
3076 } else {
3077 r.EncodeString(`Ui16`)
3078 }
3079 z.EncWriteMapElemValue()
3080 r.EncodeUint(uint64(x.Ui16))
3081 z.EncWriteMapElemKey()
3082 if z.IsJSONHandle() {
3083 z.WriteStr("\"Ui8\"")
3084 } else {
3085 r.EncodeString(`Ui8`)
3086 }
3087 z.EncWriteMapElemValue()
3088 r.EncodeUint(uint64(x.Ui8))
3089 z.EncWriteMapElemKey()
3090 if z.IsJSONHandle() {
3091 z.WriteStr("\"F64\"")
3092 } else {
3093 r.EncodeString(`F64`)
3094 }
3095 z.EncWriteMapElemValue()
3096 r.EncodeFloat64(float64(x.F64))
3097 z.EncWriteMapElemKey()
3098 if z.IsJSONHandle() {
3099 z.WriteStr("\"F32\"")
3100 } else {
3101 r.EncodeString(`F32`)
3102 }
3103 z.EncWriteMapElemValue()
3104 r.EncodeFloat32(float32(x.F32))
3105 z.EncWriteMapElemKey()
3106 if z.IsJSONHandle() {
3107 z.WriteStr("\"B\"")
3108 } else {
3109 r.EncodeString(`B`)
3110 }
3111 z.EncWriteMapElemValue()
3112 r.EncodeBool(bool(x.B))
3113 z.EncWriteMapElemKey()
3114 if z.IsJSONHandle() {
3115 z.WriteStr("\"By\"")
3116 } else {
3117 r.EncodeString(`By`)
3118 }
3119 z.EncWriteMapElemValue()
3120 r.EncodeUint(uint64(x.By))
3121 z.EncWriteMapElemKey()
3122 if z.IsJSONHandle() {
3123 z.WriteStr("\"Sslice\"")
3124 } else {
3125 r.EncodeString(`Sslice`)
3126 }
3127 z.EncWriteMapElemValue()
3128 if x.Sslice == nil {
3129 r.EncodeNil()
3130 } else {
3131 z.F.EncSliceStringV(x.Sslice, e)
3132 } // end block: if x.Sslice slice == nil
3133 z.EncWriteMapElemKey()
3134 if z.IsJSONHandle() {
3135 z.WriteStr("\"I64slice\"")
3136 } else {
3137 r.EncodeString(`I64slice`)
3138 }
3139 z.EncWriteMapElemValue()
3140 if x.I64slice == nil {
3141 r.EncodeNil()
3142 } else {
3143 z.F.EncSliceInt64V(x.I64slice, e)
3144 } // end block: if x.I64slice slice == nil
3145 z.EncWriteMapElemKey()
3146 if z.IsJSONHandle() {
3147 z.WriteStr("\"I32slice\"")
3148 } else {
3149 r.EncodeString(`I32slice`)
3150 }
3151 z.EncWriteMapElemValue()
3152 if x.I32slice == nil {
3153 r.EncodeNil()
3154 } else {
3155 z.F.EncSliceInt32V(x.I32slice, e)
3156 } // end block: if x.I32slice slice == nil
3157 z.EncWriteMapElemKey()
3158 if z.IsJSONHandle() {
3159 z.WriteStr("\"Ui64slice\"")
3160 } else {
3161 r.EncodeString(`Ui64slice`)
3162 }
3163 z.EncWriteMapElemValue()
3164 if x.Ui64slice == nil {
3165 r.EncodeNil()
3166 } else {
3167 z.F.EncSliceUint64V(x.Ui64slice, e)
3168 } // end block: if x.Ui64slice slice == nil
3169 z.EncWriteMapElemKey()
3170 if z.IsJSONHandle() {
3171 z.WriteStr("\"Ui8slice\"")
3172 } else {
3173 r.EncodeString(`Ui8slice`)
3174 }
3175 z.EncWriteMapElemValue()
3176 if x.Ui8slice == nil {
3177 r.EncodeNil()
3178 } else {
3179 r.EncodeStringBytesRaw([]byte(x.Ui8slice))
3180 } // end block: if x.Ui8slice slice == nil
3181 z.EncWriteMapElemKey()
3182 if z.IsJSONHandle() {
3183 z.WriteStr("\"Bslice\"")
3184 } else {
3185 r.EncodeString(`Bslice`)
3186 }
3187 z.EncWriteMapElemValue()
3188 if x.Bslice == nil {
3189 r.EncodeNil()
3190 } else {
3191 z.F.EncSliceBoolV(x.Bslice, e)
3192 } // end block: if x.Bslice slice == nil
3193 z.EncWriteMapElemKey()
3194 if z.IsJSONHandle() {
3195 z.WriteStr("\"Byslice\"")
3196 } else {
3197 r.EncodeString(`Byslice`)
3198 }
3199 z.EncWriteMapElemValue()
3200 if x.Byslice == nil {
3201 r.EncodeNil()
3202 } else {
3203 r.EncodeStringBytesRaw([]byte(x.Byslice))
3204 } // end block: if x.Byslice slice == nil
3205 z.EncWriteMapElemKey()
3206 if z.IsJSONHandle() {
3207 z.WriteStr("\"BytesSlice\"")
3208 } else {
3209 r.EncodeString(`BytesSlice`)
3210 }
3211 z.EncWriteMapElemValue()
3212 if x.BytesSlice == nil {
3213 r.EncodeNil()
3214 } else {
3215 z.F.EncSliceBytesV(x.BytesSlice, e)
3216 } // end block: if x.BytesSlice slice == nil
3217 z.EncWriteMapElemKey()
3218 if z.IsJSONHandle() {
3219 z.WriteStr("\"Iptrslice\"")
3220 } else {
3221 r.EncodeString(`Iptrslice`)
3222 }
3223 z.EncWriteMapElemValue()
3224 if x.Iptrslice == nil {
3225 r.EncodeNil()
3226 } else {
3227 h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
3228 } // end block: if x.Iptrslice slice == nil
3229 z.EncWriteMapElemKey()
3230 if z.IsJSONHandle() {
3231 z.WriteStr("\"WrapSliceInt64\"")
3232 } else {
3233 r.EncodeString(`WrapSliceInt64`)
3234 }
3235 z.EncWriteMapElemValue()
3236 if yyxt209 := z.Extension(x.WrapSliceInt64); yyxt209 != nil {
3237 z.EncExtension(x.WrapSliceInt64, yyxt209)
3238 } else {
3239 x.WrapSliceInt64.CodecEncodeSelf(e)
3240 }
3241 z.EncWriteMapElemKey()
3242 if z.IsJSONHandle() {
3243 z.WriteStr("\"WrapSliceString\"")
3244 } else {
3245 r.EncodeString(`WrapSliceString`)
3246 }
3247 z.EncWriteMapElemValue()
3248 if yyxt210 := z.Extension(x.WrapSliceString); yyxt210 != nil {
3249 z.EncExtension(x.WrapSliceString, yyxt210)
3250 } else {
3251 x.WrapSliceString.CodecEncodeSelf(e)
3252 }
3253 z.EncWriteMapElemKey()
3254 if z.IsJSONHandle() {
3255 z.WriteStr("\"Msint\"")
3256 } else {
3257 r.EncodeString(`Msint`)
3258 }
3259 z.EncWriteMapElemValue()
3260 if x.Msint == nil {
3261 r.EncodeNil()
3262 } else {
3263 z.F.EncMapStringIntV(x.Msint, e)
3264 } // end block: if x.Msint map == nil
3265 z.EncWriteMapElemKey()
3266 if z.IsJSONHandle() {
3267 z.WriteStr("\"Msbytes\"")
3268 } else {
3269 r.EncodeString(`Msbytes`)
3270 }
3271 z.EncWriteMapElemValue()
3272 if x.Msbytes == nil {
3273 r.EncodeNil()
3274 } else {
3275 z.F.EncMapStringBytesV(x.Msbytes, e)
3276 } // end block: if x.Msbytes map == nil
3277 z.EncWriteMapElemKey()
3278 if z.IsJSONHandle() {
3279 z.WriteStr("\"Simplef\"")
3280 } else {
3281 r.EncodeString(`Simplef`)
3282 }
3283 z.EncWriteMapElemValue()
3284 yy213 := &x.Simplef
3285 if yyxt214 := z.Extension(yy213); yyxt214 != nil {
3286 z.EncExtension(yy213, yyxt214)
3287 } else {
3288 yy213.CodecEncodeSelf(e)
3289 }
3290 z.EncWriteMapElemKey()
3291 if z.IsJSONHandle() {
3292 z.WriteStr("\"SstrUi64T\"")
3293 } else {
3294 r.EncodeString(`SstrUi64T`)
3295 }
3296 z.EncWriteMapElemValue()
3297 if x.SstrUi64T == nil {
3298 r.EncodeNil()
3299 } else {
3300 h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
3301 } // end block: if x.SstrUi64T slice == nil
3302 z.EncWriteMapElemKey()
3303 if z.IsJSONHandle() {
3304 z.WriteStr("\"MstrUi64T\"")
3305 } else {
3306 r.EncodeString(`MstrUi64T`)
3307 }
3308 z.EncWriteMapElemValue()
3309 if x.MstrUi64T == nil {
3310 r.EncodeNil()
3311 } else {
3312 h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.MstrUi64T), e)
3313 } // end block: if x.MstrUi64T map == nil
3314 z.EncWriteMapElemKey()
3315 if z.IsJSONHandle() {
3316 z.WriteStr("\"AS\"")
3317 } else {
3318 r.EncodeString(`AS`)
3319 }
3320 z.EncWriteMapElemValue()
3321 r.EncodeString(string(x.AnonInTestStruc.AS))
3322 z.EncWriteMapElemKey()
3323 if z.IsJSONHandle() {
3324 z.WriteStr("\"AI64\"")
3325 } else {
3326 r.EncodeString(`AI64`)
3327 }
3328 z.EncWriteMapElemValue()
3329 r.EncodeInt(int64(x.AnonInTestStruc.AI64))
3330 z.EncWriteMapElemKey()
3331 if z.IsJSONHandle() {
3332 z.WriteStr("\"AI16\"")
3333 } else {
3334 r.EncodeString(`AI16`)
3335 }
3336 z.EncWriteMapElemValue()
3337 r.EncodeInt(int64(x.AnonInTestStruc.AI16))
3338 z.EncWriteMapElemKey()
3339 if z.IsJSONHandle() {
3340 z.WriteStr("\"AUi64\"")
3341 } else {
3342 r.EncodeString(`AUi64`)
3343 }
3344 z.EncWriteMapElemValue()
3345 r.EncodeUint(uint64(x.AnonInTestStruc.AUi64))
3346 z.EncWriteMapElemKey()
3347 if z.IsJSONHandle() {
3348 z.WriteStr("\"ASslice\"")
3349 } else {
3350 r.EncodeString(`ASslice`)
3351 }
3352 z.EncWriteMapElemValue()
3353 if x.AnonInTestStruc.ASslice == nil {
3354 r.EncodeNil()
3355 } else {
3356 z.F.EncSliceStringV(x.AnonInTestStruc.ASslice, e)
3357 } // end block: if x.AnonInTestStruc.ASslice slice == nil
3358 z.EncWriteMapElemKey()
3359 if z.IsJSONHandle() {
3360 z.WriteStr("\"AI64slice\"")
3361 } else {
3362 r.EncodeString(`AI64slice`)
3363 }
3364 z.EncWriteMapElemValue()
3365 if x.AnonInTestStruc.AI64slice == nil {
3366 r.EncodeNil()
3367 } else {
3368 z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice, e)
3369 } // end block: if x.AnonInTestStruc.AI64slice slice == nil
3370 z.EncWriteMapElemKey()
3371 if z.IsJSONHandle() {
3372 z.WriteStr("\"AUi64slice\"")
3373 } else {
3374 r.EncodeString(`AUi64slice`)
3375 }
3376 z.EncWriteMapElemValue()
3377 if x.AnonInTestStruc.AUi64slice == nil {
3378 r.EncodeNil()
3379 } else {
3380 z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64slice, e)
3381 } // end block: if x.AnonInTestStruc.AUi64slice slice == nil
3382 z.EncWriteMapElemKey()
3383 if z.IsJSONHandle() {
3384 z.WriteStr("\"AF64slice\"")
3385 } else {
3386 r.EncodeString(`AF64slice`)
3387 }
3388 z.EncWriteMapElemValue()
3389 if x.AnonInTestStruc.AF64slice == nil {
3390 r.EncodeNil()
3391 } else {
3392 z.F.EncSliceFloat64V(x.AnonInTestStruc.AF64slice, e)
3393 } // end block: if x.AnonInTestStruc.AF64slice slice == nil
3394 z.EncWriteMapElemKey()
3395 if z.IsJSONHandle() {
3396 z.WriteStr("\"AF32slice\"")
3397 } else {
3398 r.EncodeString(`AF32slice`)
3399 }
3400 z.EncWriteMapElemValue()
3401 if x.AnonInTestStruc.AF32slice == nil {
3402 r.EncodeNil()
3403 } else {
3404 z.F.EncSliceFloat32V(x.AnonInTestStruc.AF32slice, e)
3405 } // end block: if x.AnonInTestStruc.AF32slice slice == nil
3406 z.EncWriteMapElemKey()
3407 if z.IsJSONHandle() {
3408 z.WriteStr("\"AMSS\"")
3409 } else {
3410 r.EncodeString(`AMSS`)
3411 }
3412 z.EncWriteMapElemValue()
3413 if x.AnonInTestStruc.AMSS == nil {
3414 r.EncodeNil()
3415 } else {
3416 z.F.EncMapStringStringV(x.AnonInTestStruc.AMSS, e)
3417 } // end block: if x.AnonInTestStruc.AMSS map == nil
3418 z.EncWriteMapElemKey()
3419 if z.IsJSONHandle() {
3420 z.WriteStr("\"AMSU64\"")
3421 } else {
3422 r.EncodeString(`AMSU64`)
3423 }
3424 z.EncWriteMapElemValue()
3425 if x.AnonInTestStruc.AMSU64 == nil {
3426 r.EncodeNil()
3427 } else {
3428 z.F.EncMapStringUint64V(x.AnonInTestStruc.AMSU64, e)
3429 } // end block: if x.AnonInTestStruc.AMSU64 map == nil
3430 z.EncWriteMapElemKey()
3431 if z.IsJSONHandle() {
3432 z.WriteStr("\"AI64arr8\"")
3433 } else {
3434 r.EncodeString(`AI64arr8`)
3435 }
3436 z.EncWriteMapElemValue()
3437 yy228 := &x.AnonInTestStruc.AI64arr8
3438 h.encArray8int64((*[8]int64)(yy228), e)
3439 z.EncWriteMapElemKey()
3440 if z.IsJSONHandle() {
3441 z.WriteStr("\"AI64arr0\"")
3442 } else {
3443 r.EncodeString(`AI64arr0`)
3444 }
3445 z.EncWriteMapElemValue()
3446 yy230 := &x.AnonInTestStruc.AI64arr0
3447 h.encArray0int64((*[0]int64)(yy230), e)
3448 z.EncWriteMapElemKey()
3449 if z.IsJSONHandle() {
3450 z.WriteStr("\"AI64slice0\"")
3451 } else {
3452 r.EncodeString(`AI64slice0`)
3453 }
3454 z.EncWriteMapElemValue()
3455 if x.AnonInTestStruc.AI64slice0 == nil {
3456 r.EncodeNil()
3457 } else {
3458 z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice0, e)
3459 } // end block: if x.AnonInTestStruc.AI64slice0 slice == nil
3460 z.EncWriteMapElemKey()
3461 if z.IsJSONHandle() {
3462 z.WriteStr("\"AUi64sliceN\"")
3463 } else {
3464 r.EncodeString(`AUi64sliceN`)
3465 }
3466 z.EncWriteMapElemValue()
3467 if x.AnonInTestStruc.AUi64sliceN == nil {
3468 r.EncodeNil()
3469 } else {
3470 z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64sliceN, e)
3471 } // end block: if x.AnonInTestStruc.AUi64sliceN slice == nil
3472 z.EncWriteMapElemKey()
3473 if z.IsJSONHandle() {
3474 z.WriteStr("\"AMSU64N\"")
3475 } else {
3476 r.EncodeString(`AMSU64N`)
3477 }
3478 z.EncWriteMapElemValue()
3479 if x.AnonInTestStruc.AMSU64N == nil {
3480 r.EncodeNil()
3481 } else {
3482 z.F.EncMapStringUint64V(x.AnonInTestStruc.AMSU64N, e)
3483 } // end block: if x.AnonInTestStruc.AMSU64N map == nil
3484 z.EncWriteMapElemKey()
3485 if z.IsJSONHandle() {
3486 z.WriteStr("\"AMSU64E\"")
3487 } else {
3488 r.EncodeString(`AMSU64E`)
3489 }
3490 z.EncWriteMapElemValue()
3491 if x.AnonInTestStruc.AMSU64E == nil {
3492 r.EncodeNil()
3493 } else {
3494 z.F.EncMapStringUint64V(x.AnonInTestStruc.AMSU64E, e)
3495 } // end block: if x.AnonInTestStruc.AMSU64E map == nil
3496 z.EncWriteMapElemKey()
3497 if z.IsJSONHandle() {
3498 z.WriteStr("\"NotAnon\"")
3499 } else {
3500 r.EncodeString(`NotAnon`)
3501 }
3502 z.EncWriteMapElemValue()
3503 yy236 := &x.NotAnon
3504 if yyxt237 := z.Extension(yy236); yyxt237 != nil {
3505 z.EncExtension(yy236, yyxt237)
3506 } else {
3507 yy236.CodecEncodeSelf(e)
3508 }
3509 z.EncWriteMapElemKey()
3510 if z.IsJSONHandle() {
3511 z.WriteStr("\"P\"")
3512 } else {
3513 r.EncodeString(`P`)
3514 }
3515 z.EncWriteMapElemValue()
3516 if yyn54 {
3517 r.EncodeNil()
3518 } else {
3519 yy238 := *x.AnonInTestStrucSlim.P
3520 r.EncodeString(string(yy238))
3521 }
3522 z.EncWriteMapElemKey()
3523 if z.IsJSONHandle() {
3524 z.WriteStr("\"NotAnonSlim\"")
3525 } else {
3526 r.EncodeString(`NotAnonSlim`)
3527 }
3528 z.EncWriteMapElemValue()
3529 if yyn55 {
3530 r.EncodeNil()
3531 } else {
3532 if yyxt240 := z.Extension(x.NotAnonSlim); yyxt240 != nil {
3533 z.EncExtension(x.NotAnonSlim, yyxt240)
3534 } else {
3535 x.NotAnonSlim.CodecEncodeSelf(e)
3536 }
3537 }
3538 z.EncWriteMapElemKey()
3539 if z.IsJSONHandle() {
3540 z.WriteStr("\"Nmap\"")
3541 } else {
3542 r.EncodeString(`Nmap`)
3543 }
3544 z.EncWriteMapElemValue()
3545 if x.Nmap == nil {
3546 r.EncodeNil()
3547 } else {
3548 z.F.EncMapStringBoolV(x.Nmap, e)
3549 } // end block: if x.Nmap map == nil
3550 z.EncWriteMapElemKey()
3551 if z.IsJSONHandle() {
3552 z.WriteStr("\"Nslice\"")
3553 } else {
3554 r.EncodeString(`Nslice`)
3555 }
3556 z.EncWriteMapElemValue()
3557 if x.Nslice == nil {
3558 r.EncodeNil()
3559 } else {
3560 r.EncodeStringBytesRaw([]byte(x.Nslice))
3561 } // end block: if x.Nslice slice == nil
3562 z.EncWriteMapElemKey()
3563 if z.IsJSONHandle() {
3564 z.WriteStr("\"Nint64\"")
3565 } else {
3566 r.EncodeString(`Nint64`)
3567 }
3568 z.EncWriteMapElemValue()
3569 if yyn58 {
3570 r.EncodeNil()
3571 } else {
3572 yy243 := *x.Nint64
3573 r.EncodeInt(int64(yy243))
3574 }
3575 }
3576 z.EncWriteMapEnd()
3577 }
3578 }
3579 }
3580
3581 func (x *TestStrucCommon) CodecDecodeSelf(d *Decoder) {
3582 var h codecSelfer19780
3583 z, r := GenHelper().Decoder(d)
3584 _, _, _ = h, z, r
3585 yyct2 := r.ContainerType()
3586 if yyct2 == codecSelferValueTypeNil19780 {
3587 *(x) = TestStrucCommon{}
3588 } else if yyct2 == codecSelferValueTypeMap19780 {
3589 yyl2 := z.DecReadMapStart()
3590 if yyl2 == 0 {
3591 } else {
3592 x.codecDecodeSelfFromMap(yyl2, d)
3593 }
3594 z.DecReadMapEnd()
3595 } else if yyct2 == codecSelferValueTypeArray19780 {
3596 yyl2 := z.DecReadArrayStart()
3597 if yyl2 != 0 {
3598 x.codecDecodeSelfFromArray(yyl2, d)
3599 }
3600 z.DecReadArrayEnd()
3601 } else {
3602 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
3603 }
3604 }
3605
3606 func (x *TestStrucCommon) codecDecodeSelfFromMap(l int, d *Decoder) {
3607 var h codecSelfer19780
3608 z, r := GenHelper().Decoder(d)
3609 _, _, _ = h, z, r
3610 var yyhl3 bool = l >= 0
3611 for yyj3 := 0; ; yyj3++ {
3612 if yyhl3 {
3613 if yyj3 >= l {
3614 break
3615 }
3616 } else {
3617 if z.DecCheckBreak() {
3618 break
3619 }
3620 }
3621 z.DecReadMapElemKey()
3622 yys3 := r.DecodeStringAsBytes()
3623 z.DecReadMapElemValue()
3624 switch string(yys3) {
3625 case "S":
3626 x.S = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
3627 case "I64":
3628 x.I64 = (int64)(r.DecodeInt64())
3629 case "I32":
3630 x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
3631 case "I16":
3632 x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
3633 case "I8":
3634 x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
3635 case "I64n":
3636 x.I64n = (int64)(r.DecodeInt64())
3637 case "I32n":
3638 x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
3639 case "I16n":
3640 x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
3641 case "I8n":
3642 x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
3643 case "Ui64":
3644 x.Ui64 = (uint64)(r.DecodeUint64())
3645 case "Ui32":
3646 x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
3647 case "Ui16":
3648 x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
3649 case "Ui8":
3650 x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
3651 case "F64":
3652 x.F64 = (float64)(r.DecodeFloat64())
3653 case "F32":
3654 x.F32 = (float32)(z.DecDecodeFloat32())
3655 case "B":
3656 x.B = (bool)(r.DecodeBool())
3657 case "By":
3658 x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
3659 case "Sslice":
3660 z.F.DecSliceStringX(&x.Sslice, d)
3661 case "I64slice":
3662 z.F.DecSliceInt64X(&x.I64slice, d)
3663 case "I32slice":
3664 z.F.DecSliceInt32X(&x.I32slice, d)
3665 case "Ui64slice":
3666 z.F.DecSliceUint64X(&x.Ui64slice, d)
3667 case "Ui8slice":
3668 x.Ui8slice = z.DecodeBytesInto(([]byte)(x.Ui8slice))
3669 case "Bslice":
3670 z.F.DecSliceBoolX(&x.Bslice, d)
3671 case "Byslice":
3672 x.Byslice = z.DecodeBytesInto(([]byte)(x.Byslice))
3673 case "BytesSlice":
3674 z.F.DecSliceBytesX(&x.BytesSlice, d)
3675 case "Iptrslice":
3676 h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
3677 case "WrapSliceInt64":
3678 if yyxt40 := z.Extension(x.WrapSliceInt64); yyxt40 != nil {
3679 z.DecExtension(&x.WrapSliceInt64, yyxt40)
3680 } else {
3681 x.WrapSliceInt64.CodecDecodeSelf(d)
3682 }
3683 case "WrapSliceString":
3684 if yyxt42 := z.Extension(x.WrapSliceString); yyxt42 != nil {
3685 z.DecExtension(&x.WrapSliceString, yyxt42)
3686 } else {
3687 x.WrapSliceString.CodecDecodeSelf(d)
3688 }
3689 case "Msint":
3690 z.F.DecMapStringIntX(&x.Msint, d)
3691 case "Msbytes":
3692 z.F.DecMapStringBytesX(&x.Msbytes, d)
3693 case "Simplef":
3694 if yyxt48 := z.Extension(x.Simplef); yyxt48 != nil {
3695 z.DecExtension(&x.Simplef, yyxt48)
3696 } else {
3697 x.Simplef.CodecDecodeSelf(d)
3698 }
3699 case "SstrUi64T":
3700 h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
3701 case "MstrUi64T":
3702 h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.MstrUi64T), d)
3703 case "AS":
3704 x.AnonInTestStruc.AS = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
3705 case "AI64":
3706 x.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
3707 case "AI16":
3708 x.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
3709 case "AUi64":
3710 x.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
3711 case "ASslice":
3712 z.F.DecSliceStringX(&x.AnonInTestStruc.ASslice, d)
3713 case "AI64slice":
3714 z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice, d)
3715 case "AUi64slice":
3716 z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64slice, d)
3717 case "AF64slice":
3718 z.F.DecSliceFloat64X(&x.AnonInTestStruc.AF64slice, d)
3719 case "AF32slice":
3720 z.F.DecSliceFloat32X(&x.AnonInTestStruc.AF32slice, d)
3721 case "AMSS":
3722 z.F.DecMapStringStringX(&x.AnonInTestStruc.AMSS, d)
3723 case "AMSU64":
3724 z.F.DecMapStringUint64X(&x.AnonInTestStruc.AMSU64, d)
3725 case "AI64arr8":
3726 h.decArray8int64((*[8]int64)(&x.AnonInTestStruc.AI64arr8), d)
3727 case "AI64arr0":
3728 h.decArray0int64((*[0]int64)(&x.AnonInTestStruc.AI64arr0), d)
3729 case "AI64slice0":
3730 z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice0, d)
3731 case "AUi64sliceN":
3732 z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64sliceN, d)
3733 case "AMSU64N":
3734 z.F.DecMapStringUint64X(&x.AnonInTestStruc.AMSU64N, d)
3735 case "AMSU64E":
3736 z.F.DecMapStringUint64X(&x.AnonInTestStruc.AMSU64E, d)
3737 case "NotAnon":
3738 if yyxt84 := z.Extension(x.NotAnon); yyxt84 != nil {
3739 z.DecExtension(&x.NotAnon, yyxt84)
3740 } else {
3741 x.NotAnon.CodecDecodeSelf(d)
3742 }
3743 case "P":
3744 if r.TryNil() {
3745 if x.AnonInTestStrucSlim != nil && x.AnonInTestStrucSlim.P != nil { // remove the if-true
3746 x.AnonInTestStrucSlim.P = nil
3747 }
3748 } else {
3749 if x.AnonInTestStrucSlim == nil {
3750 x.AnonInTestStrucSlim = new(AnonInTestStrucSlim)
3751 }
3752 if x.AnonInTestStrucSlim.P == nil {
3753 x.AnonInTestStrucSlim.P = new(string)
3754 }
3755 *x.AnonInTestStrucSlim.P = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
3756 }
3757 case "NotAnonSlim":
3758 if r.TryNil() {
3759 if x.NotAnonSlim != nil { // remove the if-true
3760 x.NotAnonSlim = nil
3761 }
3762 } else {
3763 if x.NotAnonSlim == nil {
3764 x.NotAnonSlim = new(AnonInTestStrucSlim)
3765 }
3766 if yyxt88 := z.Extension(x.NotAnonSlim); yyxt88 != nil {
3767 z.DecExtension(x.NotAnonSlim, yyxt88)
3768 } else {
3769 x.NotAnonSlim.CodecDecodeSelf(d)
3770 }
3771 }
3772 case "Nmap":
3773 z.F.DecMapStringBoolX(&x.Nmap, d)
3774 case "Nslice":
3775 x.Nslice = z.DecodeBytesInto(([]byte)(x.Nslice))
3776 case "Nint64":
3777 if r.TryNil() {
3778 if x.Nint64 != nil { // remove the if-true
3779 x.Nint64 = nil
3780 }
3781 } else {
3782 if x.Nint64 == nil {
3783 x.Nint64 = new(int64)
3784 }
3785 *x.Nint64 = (int64)(r.DecodeInt64())
3786 }
3787 default:
3788 z.DecStructFieldNotFound(-1, string(yys3))
3789 } // end switch yys3
3790 } // end for yyj3
3791 }
3792
3793 func (x *TestStrucCommon) codecDecodeSelfFromArray(l int, d *Decoder) {
3794 var h codecSelfer19780
3795 z, r := GenHelper().Decoder(d)
3796 _, _, _ = h, z, r
3797 var yyj95 int
3798 var yyb95 bool
3799 var yyhl95 bool = l >= 0
3800 yyj95++
3801 if yyhl95 {
3802 yyb95 = yyj95 > l
3803 } else {
3804 yyb95 = z.DecCheckBreak()
3805 }
3806 if yyb95 {
3807 z.DecReadArrayEnd()
3808 return
3809 }
3810 z.DecReadArrayElem()
3811 x.S = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
3812 yyj95++
3813 if yyhl95 {
3814 yyb95 = yyj95 > l
3815 } else {
3816 yyb95 = z.DecCheckBreak()
3817 }
3818 if yyb95 {
3819 z.DecReadArrayEnd()
3820 return
3821 }
3822 z.DecReadArrayElem()
3823 x.I64 = (int64)(r.DecodeInt64())
3824 yyj95++
3825 if yyhl95 {
3826 yyb95 = yyj95 > l
3827 } else {
3828 yyb95 = z.DecCheckBreak()
3829 }
3830 if yyb95 {
3831 z.DecReadArrayEnd()
3832 return
3833 }
3834 z.DecReadArrayElem()
3835 x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
3836 yyj95++
3837 if yyhl95 {
3838 yyb95 = yyj95 > l
3839 } else {
3840 yyb95 = z.DecCheckBreak()
3841 }
3842 if yyb95 {
3843 z.DecReadArrayEnd()
3844 return
3845 }
3846 z.DecReadArrayElem()
3847 x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
3848 yyj95++
3849 if yyhl95 {
3850 yyb95 = yyj95 > l
3851 } else {
3852 yyb95 = z.DecCheckBreak()
3853 }
3854 if yyb95 {
3855 z.DecReadArrayEnd()
3856 return
3857 }
3858 z.DecReadArrayElem()
3859 x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
3860 yyj95++
3861 if yyhl95 {
3862 yyb95 = yyj95 > l
3863 } else {
3864 yyb95 = z.DecCheckBreak()
3865 }
3866 if yyb95 {
3867 z.DecReadArrayEnd()
3868 return
3869 }
3870 z.DecReadArrayElem()
3871 x.I64n = (int64)(r.DecodeInt64())
3872 yyj95++
3873 if yyhl95 {
3874 yyb95 = yyj95 > l
3875 } else {
3876 yyb95 = z.DecCheckBreak()
3877 }
3878 if yyb95 {
3879 z.DecReadArrayEnd()
3880 return
3881 }
3882 z.DecReadArrayElem()
3883 x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
3884 yyj95++
3885 if yyhl95 {
3886 yyb95 = yyj95 > l
3887 } else {
3888 yyb95 = z.DecCheckBreak()
3889 }
3890 if yyb95 {
3891 z.DecReadArrayEnd()
3892 return
3893 }
3894 z.DecReadArrayElem()
3895 x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
3896 yyj95++
3897 if yyhl95 {
3898 yyb95 = yyj95 > l
3899 } else {
3900 yyb95 = z.DecCheckBreak()
3901 }
3902 if yyb95 {
3903 z.DecReadArrayEnd()
3904 return
3905 }
3906 z.DecReadArrayElem()
3907 x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
3908 yyj95++
3909 if yyhl95 {
3910 yyb95 = yyj95 > l
3911 } else {
3912 yyb95 = z.DecCheckBreak()
3913 }
3914 if yyb95 {
3915 z.DecReadArrayEnd()
3916 return
3917 }
3918 z.DecReadArrayElem()
3919 x.Ui64 = (uint64)(r.DecodeUint64())
3920 yyj95++
3921 if yyhl95 {
3922 yyb95 = yyj95 > l
3923 } else {
3924 yyb95 = z.DecCheckBreak()
3925 }
3926 if yyb95 {
3927 z.DecReadArrayEnd()
3928 return
3929 }
3930 z.DecReadArrayElem()
3931 x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
3932 yyj95++
3933 if yyhl95 {
3934 yyb95 = yyj95 > l
3935 } else {
3936 yyb95 = z.DecCheckBreak()
3937 }
3938 if yyb95 {
3939 z.DecReadArrayEnd()
3940 return
3941 }
3942 z.DecReadArrayElem()
3943 x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
3944 yyj95++
3945 if yyhl95 {
3946 yyb95 = yyj95 > l
3947 } else {
3948 yyb95 = z.DecCheckBreak()
3949 }
3950 if yyb95 {
3951 z.DecReadArrayEnd()
3952 return
3953 }
3954 z.DecReadArrayElem()
3955 x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
3956 yyj95++
3957 if yyhl95 {
3958 yyb95 = yyj95 > l
3959 } else {
3960 yyb95 = z.DecCheckBreak()
3961 }
3962 if yyb95 {
3963 z.DecReadArrayEnd()
3964 return
3965 }
3966 z.DecReadArrayElem()
3967 x.F64 = (float64)(r.DecodeFloat64())
3968 yyj95++
3969 if yyhl95 {
3970 yyb95 = yyj95 > l
3971 } else {
3972 yyb95 = z.DecCheckBreak()
3973 }
3974 if yyb95 {
3975 z.DecReadArrayEnd()
3976 return
3977 }
3978 z.DecReadArrayElem()
3979 x.F32 = (float32)(z.DecDecodeFloat32())
3980 yyj95++
3981 if yyhl95 {
3982 yyb95 = yyj95 > l
3983 } else {
3984 yyb95 = z.DecCheckBreak()
3985 }
3986 if yyb95 {
3987 z.DecReadArrayEnd()
3988 return
3989 }
3990 z.DecReadArrayElem()
3991 x.B = (bool)(r.DecodeBool())
3992 yyj95++
3993 if yyhl95 {
3994 yyb95 = yyj95 > l
3995 } else {
3996 yyb95 = z.DecCheckBreak()
3997 }
3998 if yyb95 {
3999 z.DecReadArrayEnd()
4000 return
4001 }
4002 z.DecReadArrayElem()
4003 x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
4004 yyj95++
4005 if yyhl95 {
4006 yyb95 = yyj95 > l
4007 } else {
4008 yyb95 = z.DecCheckBreak()
4009 }
4010 if yyb95 {
4011 z.DecReadArrayEnd()
4012 return
4013 }
4014 z.DecReadArrayElem()
4015 z.F.DecSliceStringX(&x.Sslice, d)
4016 yyj95++
4017 if yyhl95 {
4018 yyb95 = yyj95 > l
4019 } else {
4020 yyb95 = z.DecCheckBreak()
4021 }
4022 if yyb95 {
4023 z.DecReadArrayEnd()
4024 return
4025 }
4026 z.DecReadArrayElem()
4027 z.F.DecSliceInt64X(&x.I64slice, d)
4028 yyj95++
4029 if yyhl95 {
4030 yyb95 = yyj95 > l
4031 } else {
4032 yyb95 = z.DecCheckBreak()
4033 }
4034 if yyb95 {
4035 z.DecReadArrayEnd()
4036 return
4037 }
4038 z.DecReadArrayElem()
4039 z.F.DecSliceInt32X(&x.I32slice, d)
4040 yyj95++
4041 if yyhl95 {
4042 yyb95 = yyj95 > l
4043 } else {
4044 yyb95 = z.DecCheckBreak()
4045 }
4046 if yyb95 {
4047 z.DecReadArrayEnd()
4048 return
4049 }
4050 z.DecReadArrayElem()
4051 z.F.DecSliceUint64X(&x.Ui64slice, d)
4052 yyj95++
4053 if yyhl95 {
4054 yyb95 = yyj95 > l
4055 } else {
4056 yyb95 = z.DecCheckBreak()
4057 }
4058 if yyb95 {
4059 z.DecReadArrayEnd()
4060 return
4061 }
4062 z.DecReadArrayElem()
4063 x.Ui8slice = z.DecodeBytesInto(([]byte)(x.Ui8slice))
4064 yyj95++
4065 if yyhl95 {
4066 yyb95 = yyj95 > l
4067 } else {
4068 yyb95 = z.DecCheckBreak()
4069 }
4070 if yyb95 {
4071 z.DecReadArrayEnd()
4072 return
4073 }
4074 z.DecReadArrayElem()
4075 z.F.DecSliceBoolX(&x.Bslice, d)
4076 yyj95++
4077 if yyhl95 {
4078 yyb95 = yyj95 > l
4079 } else {
4080 yyb95 = z.DecCheckBreak()
4081 }
4082 if yyb95 {
4083 z.DecReadArrayEnd()
4084 return
4085 }
4086 z.DecReadArrayElem()
4087 x.Byslice = z.DecodeBytesInto(([]byte)(x.Byslice))
4088 yyj95++
4089 if yyhl95 {
4090 yyb95 = yyj95 > l
4091 } else {
4092 yyb95 = z.DecCheckBreak()
4093 }
4094 if yyb95 {
4095 z.DecReadArrayEnd()
4096 return
4097 }
4098 z.DecReadArrayElem()
4099 z.F.DecSliceBytesX(&x.BytesSlice, d)
4100 yyj95++
4101 if yyhl95 {
4102 yyb95 = yyj95 > l
4103 } else {
4104 yyb95 = z.DecCheckBreak()
4105 }
4106 if yyb95 {
4107 z.DecReadArrayEnd()
4108 return
4109 }
4110 z.DecReadArrayElem()
4111 h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
4112 yyj95++
4113 if yyhl95 {
4114 yyb95 = yyj95 > l
4115 } else {
4116 yyb95 = z.DecCheckBreak()
4117 }
4118 if yyb95 {
4119 z.DecReadArrayEnd()
4120 return
4121 }
4122 z.DecReadArrayElem()
4123 if yyxt132 := z.Extension(x.WrapSliceInt64); yyxt132 != nil {
4124 z.DecExtension(&x.WrapSliceInt64, yyxt132)
4125 } else {
4126 x.WrapSliceInt64.CodecDecodeSelf(d)
4127 }
4128 yyj95++
4129 if yyhl95 {
4130 yyb95 = yyj95 > l
4131 } else {
4132 yyb95 = z.DecCheckBreak()
4133 }
4134 if yyb95 {
4135 z.DecReadArrayEnd()
4136 return
4137 }
4138 z.DecReadArrayElem()
4139 if yyxt134 := z.Extension(x.WrapSliceString); yyxt134 != nil {
4140 z.DecExtension(&x.WrapSliceString, yyxt134)
4141 } else {
4142 x.WrapSliceString.CodecDecodeSelf(d)
4143 }
4144 yyj95++
4145 if yyhl95 {
4146 yyb95 = yyj95 > l
4147 } else {
4148 yyb95 = z.DecCheckBreak()
4149 }
4150 if yyb95 {
4151 z.DecReadArrayEnd()
4152 return
4153 }
4154 z.DecReadArrayElem()
4155 z.F.DecMapStringIntX(&x.Msint, d)
4156 yyj95++
4157 if yyhl95 {
4158 yyb95 = yyj95 > l
4159 } else {
4160 yyb95 = z.DecCheckBreak()
4161 }
4162 if yyb95 {
4163 z.DecReadArrayEnd()
4164 return
4165 }
4166 z.DecReadArrayElem()
4167 z.F.DecMapStringBytesX(&x.Msbytes, d)
4168 yyj95++
4169 if yyhl95 {
4170 yyb95 = yyj95 > l
4171 } else {
4172 yyb95 = z.DecCheckBreak()
4173 }
4174 if yyb95 {
4175 z.DecReadArrayEnd()
4176 return
4177 }
4178 z.DecReadArrayElem()
4179 if yyxt140 := z.Extension(x.Simplef); yyxt140 != nil {
4180 z.DecExtension(&x.Simplef, yyxt140)
4181 } else {
4182 x.Simplef.CodecDecodeSelf(d)
4183 }
4184 yyj95++
4185 if yyhl95 {
4186 yyb95 = yyj95 > l
4187 } else {
4188 yyb95 = z.DecCheckBreak()
4189 }
4190 if yyb95 {
4191 z.DecReadArrayEnd()
4192 return
4193 }
4194 z.DecReadArrayElem()
4195 h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
4196 yyj95++
4197 if yyhl95 {
4198 yyb95 = yyj95 > l
4199 } else {
4200 yyb95 = z.DecCheckBreak()
4201 }
4202 if yyb95 {
4203 z.DecReadArrayEnd()
4204 return
4205 }
4206 z.DecReadArrayElem()
4207 h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.MstrUi64T), d)
4208 yyj95++
4209 if yyhl95 {
4210 yyb95 = yyj95 > l
4211 } else {
4212 yyb95 = z.DecCheckBreak()
4213 }
4214 if yyb95 {
4215 z.DecReadArrayEnd()
4216 return
4217 }
4218 z.DecReadArrayElem()
4219 x.AnonInTestStruc.AS = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
4220 yyj95++
4221 if yyhl95 {
4222 yyb95 = yyj95 > l
4223 } else {
4224 yyb95 = z.DecCheckBreak()
4225 }
4226 if yyb95 {
4227 z.DecReadArrayEnd()
4228 return
4229 }
4230 z.DecReadArrayElem()
4231 x.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
4232 yyj95++
4233 if yyhl95 {
4234 yyb95 = yyj95 > l
4235 } else {
4236 yyb95 = z.DecCheckBreak()
4237 }
4238 if yyb95 {
4239 z.DecReadArrayEnd()
4240 return
4241 }
4242 z.DecReadArrayElem()
4243 x.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
4244 yyj95++
4245 if yyhl95 {
4246 yyb95 = yyj95 > l
4247 } else {
4248 yyb95 = z.DecCheckBreak()
4249 }
4250 if yyb95 {
4251 z.DecReadArrayEnd()
4252 return
4253 }
4254 z.DecReadArrayElem()
4255 x.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
4256 yyj95++
4257 if yyhl95 {
4258 yyb95 = yyj95 > l
4259 } else {
4260 yyb95 = z.DecCheckBreak()
4261 }
4262 if yyb95 {
4263 z.DecReadArrayEnd()
4264 return
4265 }
4266 z.DecReadArrayElem()
4267 z.F.DecSliceStringX(&x.AnonInTestStruc.ASslice, d)
4268 yyj95++
4269 if yyhl95 {
4270 yyb95 = yyj95 > l
4271 } else {
4272 yyb95 = z.DecCheckBreak()
4273 }
4274 if yyb95 {
4275 z.DecReadArrayEnd()
4276 return
4277 }
4278 z.DecReadArrayElem()
4279 z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice, d)
4280 yyj95++
4281 if yyhl95 {
4282 yyb95 = yyj95 > l
4283 } else {
4284 yyb95 = z.DecCheckBreak()
4285 }
4286 if yyb95 {
4287 z.DecReadArrayEnd()
4288 return
4289 }
4290 z.DecReadArrayElem()
4291 z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64slice, d)
4292 yyj95++
4293 if yyhl95 {
4294 yyb95 = yyj95 > l
4295 } else {
4296 yyb95 = z.DecCheckBreak()
4297 }
4298 if yyb95 {
4299 z.DecReadArrayEnd()
4300 return
4301 }
4302 z.DecReadArrayElem()
4303 z.F.DecSliceFloat64X(&x.AnonInTestStruc.AF64slice, d)
4304 yyj95++
4305 if yyhl95 {
4306 yyb95 = yyj95 > l
4307 } else {
4308 yyb95 = z.DecCheckBreak()
4309 }
4310 if yyb95 {
4311 z.DecReadArrayEnd()
4312 return
4313 }
4314 z.DecReadArrayElem()
4315 z.F.DecSliceFloat32X(&x.AnonInTestStruc.AF32slice, d)
4316 yyj95++
4317 if yyhl95 {
4318 yyb95 = yyj95 > l
4319 } else {
4320 yyb95 = z.DecCheckBreak()
4321 }
4322 if yyb95 {
4323 z.DecReadArrayEnd()
4324 return
4325 }
4326 z.DecReadArrayElem()
4327 z.F.DecMapStringStringX(&x.AnonInTestStruc.AMSS, d)
4328 yyj95++
4329 if yyhl95 {
4330 yyb95 = yyj95 > l
4331 } else {
4332 yyb95 = z.DecCheckBreak()
4333 }
4334 if yyb95 {
4335 z.DecReadArrayEnd()
4336 return
4337 }
4338 z.DecReadArrayElem()
4339 z.F.DecMapStringUint64X(&x.AnonInTestStruc.AMSU64, d)
4340 yyj95++
4341 if yyhl95 {
4342 yyb95 = yyj95 > l
4343 } else {
4344 yyb95 = z.DecCheckBreak()
4345 }
4346 if yyb95 {
4347 z.DecReadArrayEnd()
4348 return
4349 }
4350 z.DecReadArrayElem()
4351 h.decArray8int64((*[8]int64)(&x.AnonInTestStruc.AI64arr8), d)
4352 yyj95++
4353 if yyhl95 {
4354 yyb95 = yyj95 > l
4355 } else {
4356 yyb95 = z.DecCheckBreak()
4357 }
4358 if yyb95 {
4359 z.DecReadArrayEnd()
4360 return
4361 }
4362 z.DecReadArrayElem()
4363 h.decArray0int64((*[0]int64)(&x.AnonInTestStruc.AI64arr0), d)
4364 yyj95++
4365 if yyhl95 {
4366 yyb95 = yyj95 > l
4367 } else {
4368 yyb95 = z.DecCheckBreak()
4369 }
4370 if yyb95 {
4371 z.DecReadArrayEnd()
4372 return
4373 }
4374 z.DecReadArrayElem()
4375 z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice0, d)
4376 yyj95++
4377 if yyhl95 {
4378 yyb95 = yyj95 > l
4379 } else {
4380 yyb95 = z.DecCheckBreak()
4381 }
4382 if yyb95 {
4383 z.DecReadArrayEnd()
4384 return
4385 }
4386 z.DecReadArrayElem()
4387 z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64sliceN, d)
4388 yyj95++
4389 if yyhl95 {
4390 yyb95 = yyj95 > l
4391 } else {
4392 yyb95 = z.DecCheckBreak()
4393 }
4394 if yyb95 {
4395 z.DecReadArrayEnd()
4396 return
4397 }
4398 z.DecReadArrayElem()
4399 z.F.DecMapStringUint64X(&x.AnonInTestStruc.AMSU64N, d)
4400 yyj95++
4401 if yyhl95 {
4402 yyb95 = yyj95 > l
4403 } else {
4404 yyb95 = z.DecCheckBreak()
4405 }
4406 if yyb95 {
4407 z.DecReadArrayEnd()
4408 return
4409 }
4410 z.DecReadArrayElem()
4411 z.F.DecMapStringUint64X(&x.AnonInTestStruc.AMSU64E, d)
4412 yyj95++
4413 if yyhl95 {
4414 yyb95 = yyj95 > l
4415 } else {
4416 yyb95 = z.DecCheckBreak()
4417 }
4418 if yyb95 {
4419 z.DecReadArrayEnd()
4420 return
4421 }
4422 z.DecReadArrayElem()
4423 if yyxt176 := z.Extension(x.NotAnon); yyxt176 != nil {
4424 z.DecExtension(&x.NotAnon, yyxt176)
4425 } else {
4426 x.NotAnon.CodecDecodeSelf(d)
4427 }
4428 yyj95++
4429 if yyhl95 {
4430 yyb95 = yyj95 > l
4431 } else {
4432 yyb95 = z.DecCheckBreak()
4433 }
4434 if yyb95 {
4435 z.DecReadArrayEnd()
4436 return
4437 }
4438 z.DecReadArrayElem()
4439 if r.TryNil() {
4440 if x.AnonInTestStrucSlim != nil && x.AnonInTestStrucSlim.P != nil { // remove the if-true
4441 x.AnonInTestStrucSlim.P = nil
4442 }
4443 } else {
4444 if x.AnonInTestStrucSlim == nil {
4445 x.AnonInTestStrucSlim = new(AnonInTestStrucSlim)
4446 }
4447 if x.AnonInTestStrucSlim.P == nil {
4448 x.AnonInTestStrucSlim.P = new(string)
4449 }
4450 *x.AnonInTestStrucSlim.P = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
4451 }
4452 yyj95++
4453 if yyhl95 {
4454 yyb95 = yyj95 > l
4455 } else {
4456 yyb95 = z.DecCheckBreak()
4457 }
4458 if yyb95 {
4459 z.DecReadArrayEnd()
4460 return
4461 }
4462 z.DecReadArrayElem()
4463 if r.TryNil() {
4464 if x.NotAnonSlim != nil { // remove the if-true
4465 x.NotAnonSlim = nil
4466 }
4467 } else {
4468 if x.NotAnonSlim == nil {
4469 x.NotAnonSlim = new(AnonInTestStrucSlim)
4470 }
4471 if yyxt180 := z.Extension(x.NotAnonSlim); yyxt180 != nil {
4472 z.DecExtension(x.NotAnonSlim, yyxt180)
4473 } else {
4474 x.NotAnonSlim.CodecDecodeSelf(d)
4475 }
4476 }
4477 yyj95++
4478 if yyhl95 {
4479 yyb95 = yyj95 > l
4480 } else {
4481 yyb95 = z.DecCheckBreak()
4482 }
4483 if yyb95 {
4484 z.DecReadArrayEnd()
4485 return
4486 }
4487 z.DecReadArrayElem()
4488 z.F.DecMapStringBoolX(&x.Nmap, d)
4489 yyj95++
4490 if yyhl95 {
4491 yyb95 = yyj95 > l
4492 } else {
4493 yyb95 = z.DecCheckBreak()
4494 }
4495 if yyb95 {
4496 z.DecReadArrayEnd()
4497 return
4498 }
4499 z.DecReadArrayElem()
4500 x.Nslice = z.DecodeBytesInto(([]byte)(x.Nslice))
4501 yyj95++
4502 if yyhl95 {
4503 yyb95 = yyj95 > l
4504 } else {
4505 yyb95 = z.DecCheckBreak()
4506 }
4507 if yyb95 {
4508 z.DecReadArrayEnd()
4509 return
4510 }
4511 z.DecReadArrayElem()
4512 if r.TryNil() {
4513 if x.Nint64 != nil { // remove the if-true
4514 x.Nint64 = nil
4515 }
4516 } else {
4517 if x.Nint64 == nil {
4518 x.Nint64 = new(int64)
4519 }
4520 *x.Nint64 = (int64)(r.DecodeInt64())
4521 }
4522 for {
4523 yyj95++
4524 if yyhl95 {
4525 yyb95 = yyj95 > l
4526 } else {
4527 yyb95 = z.DecCheckBreak()
4528 }
4529 if yyb95 {
4530 break
4531 }
4532 z.DecReadArrayElem()
4533 z.DecStructFieldNotFound(yyj95-1, "")
4534 }
4535 }
4536
4537 func (x *TestStrucCommon) IsCodecEmpty() bool {
4538 return !(x.S != "" || x.I64 != 0 || x.I32 != 0 || x.I16 != 0 || x.I8 != 0 || x.I64n != 0 || x.I32n != 0 || x.I16n != 0 || x.I8n != 0 || x.Ui64 != 0 || x.Ui32 != 0 || x.Ui16 != 0 || x.Ui8 != 0 || x.F64 != 0 || x.F32 != 0 || bool(x.B) || x.By != 0 || len(x.Sslice) != 0 || len(x.I64slice) != 0 || len(x.I32slice) != 0 || len(x.Ui64slice) != 0 || len(x.Ui8slice) != 0 || len(x.Bslice) != 0 || len(x.Byslice) != 0 || len(x.BytesSlice) != 0 || len(x.Iptrslice) != 0 || len(x.WrapSliceInt64) != 0 || len(x.WrapSliceString) != 0 || len(x.Msint) != 0 || len(x.Msbytes) != 0 || !(x.Simplef.IsCodecEmpty()) || len(x.SstrUi64T) != 0 || len(x.MstrUi64T) != 0 || !(x.AnonInTestStruc.IsCodecEmpty()) || !(x.NotAnon.IsCodecEmpty()) || x.AnonInTestStrucSlim != nil && len(x.Nmap) != 0 || len(x.Nslice) != 0 || false)
4539 }
4540
4541 func (TestStruc) codecSelferViaCodecgen() {}
4542 func (x *TestStruc) CodecEncodeSelf(e *Encoder) {
4543 var h codecSelfer19780
4544 z, r := GenHelper().Encoder(e)
4545 _, _, _ = h, z, r
4546 if z.EncBasicHandle().CheckCircularRef {
4547 z.EncEncode(x)
4548 return
4549 }
4550 if x == nil {
4551 r.EncodeNil()
4552 } else {
4553 yy2arr2 := z.EncBasicHandle().StructToArray
4554 _ = yy2arr2
4555 const yyr2 bool = false // struct tag has 'toArray'
4556 var yyn54 bool = x.TestStrucCommon.AnonInTestStrucSlim == nil || x.TestStrucCommon.AnonInTestStrucSlim.P == nil
4557 var yyn55 bool = x.TestStrucCommon.NotAnonSlim == nil
4558 var yyn58 bool = x.TestStrucCommon.Nint64 == nil
4559 var yyn62 bool = x.Nteststruc == nil
4560 if yyr2 || yy2arr2 {
4561 z.EncWriteArrayStart(60)
4562 z.EncWriteArrayElem()
4563 r.EncodeString(string(x.TestStrucCommon.S))
4564 z.EncWriteArrayElem()
4565 r.EncodeInt(int64(x.TestStrucCommon.I64))
4566 z.EncWriteArrayElem()
4567 r.EncodeInt(int64(x.TestStrucCommon.I32))
4568 z.EncWriteArrayElem()
4569 r.EncodeInt(int64(x.TestStrucCommon.I16))
4570 z.EncWriteArrayElem()
4571 r.EncodeInt(int64(x.TestStrucCommon.I8))
4572 z.EncWriteArrayElem()
4573 r.EncodeInt(int64(x.TestStrucCommon.I64n))
4574 z.EncWriteArrayElem()
4575 r.EncodeInt(int64(x.TestStrucCommon.I32n))
4576 z.EncWriteArrayElem()
4577 r.EncodeInt(int64(x.TestStrucCommon.I16n))
4578 z.EncWriteArrayElem()
4579 r.EncodeInt(int64(x.TestStrucCommon.I8n))
4580 z.EncWriteArrayElem()
4581 r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
4582 z.EncWriteArrayElem()
4583 r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
4584 z.EncWriteArrayElem()
4585 r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
4586 z.EncWriteArrayElem()
4587 r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
4588 z.EncWriteArrayElem()
4589 r.EncodeFloat64(float64(x.TestStrucCommon.F64))
4590 z.EncWriteArrayElem()
4591 r.EncodeFloat32(float32(x.TestStrucCommon.F32))
4592 z.EncWriteArrayElem()
4593 r.EncodeBool(bool(x.TestStrucCommon.B))
4594 z.EncWriteArrayElem()
4595 r.EncodeUint(uint64(x.TestStrucCommon.By))
4596 z.EncWriteArrayElem()
4597 if x.TestStrucCommon.Sslice == nil {
4598 r.EncodeNil()
4599 } else {
4600 z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
4601 } // end block: if x.TestStrucCommon.Sslice slice == nil
4602 z.EncWriteArrayElem()
4603 if x.TestStrucCommon.I64slice == nil {
4604 r.EncodeNil()
4605 } else {
4606 z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
4607 } // end block: if x.TestStrucCommon.I64slice slice == nil
4608 z.EncWriteArrayElem()
4609 if x.TestStrucCommon.I32slice == nil {
4610 r.EncodeNil()
4611 } else {
4612 z.F.EncSliceInt32V(x.TestStrucCommon.I32slice, e)
4613 } // end block: if x.TestStrucCommon.I32slice slice == nil
4614 z.EncWriteArrayElem()
4615 if x.TestStrucCommon.Ui64slice == nil {
4616 r.EncodeNil()
4617 } else {
4618 z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
4619 } // end block: if x.TestStrucCommon.Ui64slice slice == nil
4620 z.EncWriteArrayElem()
4621 if x.TestStrucCommon.Ui8slice == nil {
4622 r.EncodeNil()
4623 } else {
4624 r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
4625 } // end block: if x.TestStrucCommon.Ui8slice slice == nil
4626 z.EncWriteArrayElem()
4627 if x.TestStrucCommon.Bslice == nil {
4628 r.EncodeNil()
4629 } else {
4630 z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
4631 } // end block: if x.TestStrucCommon.Bslice slice == nil
4632 z.EncWriteArrayElem()
4633 if x.TestStrucCommon.Byslice == nil {
4634 r.EncodeNil()
4635 } else {
4636 r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
4637 } // end block: if x.TestStrucCommon.Byslice slice == nil
4638 z.EncWriteArrayElem()
4639 if x.TestStrucCommon.BytesSlice == nil {
4640 r.EncodeNil()
4641 } else {
4642 z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
4643 } // end block: if x.TestStrucCommon.BytesSlice slice == nil
4644 z.EncWriteArrayElem()
4645 if x.TestStrucCommon.Iptrslice == nil {
4646 r.EncodeNil()
4647 } else {
4648 h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
4649 } // end block: if x.TestStrucCommon.Iptrslice slice == nil
4650 z.EncWriteArrayElem()
4651 if yyxt89 := z.Extension(x.TestStrucCommon.WrapSliceInt64); yyxt89 != nil {
4652 z.EncExtension(x.TestStrucCommon.WrapSliceInt64, yyxt89)
4653 } else {
4654 x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
4655 }
4656 z.EncWriteArrayElem()
4657 if yyxt90 := z.Extension(x.TestStrucCommon.WrapSliceString); yyxt90 != nil {
4658 z.EncExtension(x.TestStrucCommon.WrapSliceString, yyxt90)
4659 } else {
4660 x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
4661 }
4662 z.EncWriteArrayElem()
4663 if x.TestStrucCommon.Msint == nil {
4664 r.EncodeNil()
4665 } else {
4666 z.F.EncMapStringIntV(x.TestStrucCommon.Msint, e)
4667 } // end block: if x.TestStrucCommon.Msint map == nil
4668 z.EncWriteArrayElem()
4669 if x.TestStrucCommon.Msbytes == nil {
4670 r.EncodeNil()
4671 } else {
4672 z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
4673 } // end block: if x.TestStrucCommon.Msbytes map == nil
4674 z.EncWriteArrayElem()
4675 yy93 := &x.TestStrucCommon.Simplef
4676 if yyxt94 := z.Extension(yy93); yyxt94 != nil {
4677 z.EncExtension(yy93, yyxt94)
4678 } else {
4679 yy93.CodecEncodeSelf(e)
4680 }
4681 z.EncWriteArrayElem()
4682 if x.TestStrucCommon.SstrUi64T == nil {
4683 r.EncodeNil()
4684 } else {
4685 h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
4686 } // end block: if x.TestStrucCommon.SstrUi64T slice == nil
4687 z.EncWriteArrayElem()
4688 if x.TestStrucCommon.MstrUi64T == nil {
4689 r.EncodeNil()
4690 } else {
4691 h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
4692 } // end block: if x.TestStrucCommon.MstrUi64T map == nil
4693 z.EncWriteArrayElem()
4694 r.EncodeString(string(x.TestStrucCommon.AnonInTestStruc.AS))
4695 z.EncWriteArrayElem()
4696 r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
4697 z.EncWriteArrayElem()
4698 r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
4699 z.EncWriteArrayElem()
4700 r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
4701 z.EncWriteArrayElem()
4702 if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
4703 r.EncodeNil()
4704 } else {
4705 z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
4706 } // end block: if x.TestStrucCommon.AnonInTestStruc.ASslice slice == nil
4707 z.EncWriteArrayElem()
4708 if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
4709 r.EncodeNil()
4710 } else {
4711 z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
4712 } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice slice == nil
4713 z.EncWriteArrayElem()
4714 if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
4715 r.EncodeNil()
4716 } else {
4717 z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
4718 } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64slice slice == nil
4719 z.EncWriteArrayElem()
4720 if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
4721 r.EncodeNil()
4722 } else {
4723 z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
4724 } // end block: if x.TestStrucCommon.AnonInTestStruc.AF64slice slice == nil
4725 z.EncWriteArrayElem()
4726 if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
4727 r.EncodeNil()
4728 } else {
4729 z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
4730 } // end block: if x.TestStrucCommon.AnonInTestStruc.AF32slice slice == nil
4731 z.EncWriteArrayElem()
4732 if x.TestStrucCommon.AnonInTestStruc.AMSS == nil {
4733 r.EncodeNil()
4734 } else {
4735 z.F.EncMapStringStringV(x.TestStrucCommon.AnonInTestStruc.AMSS, e)
4736 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSS map == nil
4737 z.EncWriteArrayElem()
4738 if x.TestStrucCommon.AnonInTestStruc.AMSU64 == nil {
4739 r.EncodeNil()
4740 } else {
4741 z.F.EncMapStringUint64V(x.TestStrucCommon.AnonInTestStruc.AMSU64, e)
4742 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU64 map == nil
4743 z.EncWriteArrayElem()
4744 yy108 := &x.TestStrucCommon.AnonInTestStruc.AI64arr8
4745 h.encArray8int64((*[8]int64)(yy108), e)
4746 z.EncWriteArrayElem()
4747 yy110 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
4748 h.encArray0int64((*[0]int64)(yy110), e)
4749 z.EncWriteArrayElem()
4750 if x.TestStrucCommon.AnonInTestStruc.AI64slice0 == nil {
4751 r.EncodeNil()
4752 } else {
4753 z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
4754 } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice0 slice == nil
4755 z.EncWriteArrayElem()
4756 if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
4757 r.EncodeNil()
4758 } else {
4759 z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
4760 } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN slice == nil
4761 z.EncWriteArrayElem()
4762 if x.TestStrucCommon.AnonInTestStruc.AMSU64N == nil {
4763 r.EncodeNil()
4764 } else {
4765 z.F.EncMapStringUint64V(x.TestStrucCommon.AnonInTestStruc.AMSU64N, e)
4766 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU64N map == nil
4767 z.EncWriteArrayElem()
4768 if x.TestStrucCommon.AnonInTestStruc.AMSU64E == nil {
4769 r.EncodeNil()
4770 } else {
4771 z.F.EncMapStringUint64V(x.TestStrucCommon.AnonInTestStruc.AMSU64E, e)
4772 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU64E map == nil
4773 z.EncWriteArrayElem()
4774 yy116 := &x.TestStrucCommon.NotAnon
4775 if yyxt117 := z.Extension(yy116); yyxt117 != nil {
4776 z.EncExtension(yy116, yyxt117)
4777 } else {
4778 yy116.CodecEncodeSelf(e)
4779 }
4780 if yyn54 {
4781 z.EncWriteArrayElem()
4782 r.EncodeNil()
4783 } else {
4784 z.EncWriteArrayElem()
4785 yy118 := *x.TestStrucCommon.AnonInTestStrucSlim.P
4786 r.EncodeString(string(yy118))
4787 }
4788 if yyn55 {
4789 z.EncWriteArrayElem()
4790 r.EncodeNil()
4791 } else {
4792 z.EncWriteArrayElem()
4793 if yyxt120 := z.Extension(x.TestStrucCommon.NotAnonSlim); yyxt120 != nil {
4794 z.EncExtension(x.TestStrucCommon.NotAnonSlim, yyxt120)
4795 } else {
4796 x.TestStrucCommon.NotAnonSlim.CodecEncodeSelf(e)
4797 }
4798 }
4799 z.EncWriteArrayElem()
4800 if x.TestStrucCommon.Nmap == nil {
4801 r.EncodeNil()
4802 } else {
4803 z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
4804 } // end block: if x.TestStrucCommon.Nmap map == nil
4805 z.EncWriteArrayElem()
4806 if x.TestStrucCommon.Nslice == nil {
4807 r.EncodeNil()
4808 } else {
4809 r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
4810 } // end block: if x.TestStrucCommon.Nslice slice == nil
4811 if yyn58 {
4812 z.EncWriteArrayElem()
4813 r.EncodeNil()
4814 } else {
4815 z.EncWriteArrayElem()
4816 yy123 := *x.TestStrucCommon.Nint64
4817 r.EncodeInt(int64(yy123))
4818 }
4819 z.EncWriteArrayElem()
4820 if x.Mtsptr == nil {
4821 r.EncodeNil()
4822 } else {
4823 h.encMapstringPtrtoTestStruc((map[string]*TestStruc)(x.Mtsptr), e)
4824 } // end block: if x.Mtsptr map == nil
4825 z.EncWriteArrayElem()
4826 if x.Mts == nil {
4827 r.EncodeNil()
4828 } else {
4829 h.encMapstringTestStruc((map[string]TestStruc)(x.Mts), e)
4830 } // end block: if x.Mts map == nil
4831 z.EncWriteArrayElem()
4832 if x.Its == nil {
4833 r.EncodeNil()
4834 } else {
4835 h.encSlicePtrtoTestStruc(([]*TestStruc)(x.Its), e)
4836 } // end block: if x.Its slice == nil
4837 if yyn62 {
4838 z.EncWriteArrayElem()
4839 r.EncodeNil()
4840 } else {
4841 z.EncWriteArrayElem()
4842 if yyxt128 := z.Extension(x.Nteststruc); yyxt128 != nil {
4843 z.EncExtension(x.Nteststruc, yyxt128)
4844 } else {
4845 x.Nteststruc.CodecEncodeSelf(e)
4846 }
4847 }
4848 z.EncWriteArrayEnd()
4849 } else {
4850 z.EncWriteMapStart(60)
4851 if z.EncBasicHandle().Canonical {
4852 z.EncWriteMapElemKey()
4853 if z.IsJSONHandle() {
4854 z.WriteStr("\"AF32slice\"")
4855 } else {
4856 r.EncodeString(`AF32slice`)
4857 }
4858 z.EncWriteMapElemValue()
4859 if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
4860 r.EncodeNil()
4861 } else {
4862 z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
4863 } // end block: if x.TestStrucCommon.AnonInTestStruc.AF32slice slice == nil
4864 z.EncWriteMapElemKey()
4865 if z.IsJSONHandle() {
4866 z.WriteStr("\"AF64slice\"")
4867 } else {
4868 r.EncodeString(`AF64slice`)
4869 }
4870 z.EncWriteMapElemValue()
4871 if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
4872 r.EncodeNil()
4873 } else {
4874 z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
4875 } // end block: if x.TestStrucCommon.AnonInTestStruc.AF64slice slice == nil
4876 z.EncWriteMapElemKey()
4877 if z.IsJSONHandle() {
4878 z.WriteStr("\"AI16\"")
4879 } else {
4880 r.EncodeString(`AI16`)
4881 }
4882 z.EncWriteMapElemValue()
4883 r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
4884 z.EncWriteMapElemKey()
4885 if z.IsJSONHandle() {
4886 z.WriteStr("\"AI64\"")
4887 } else {
4888 r.EncodeString(`AI64`)
4889 }
4890 z.EncWriteMapElemValue()
4891 r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
4892 z.EncWriteMapElemKey()
4893 if z.IsJSONHandle() {
4894 z.WriteStr("\"AI64arr0\"")
4895 } else {
4896 r.EncodeString(`AI64arr0`)
4897 }
4898 z.EncWriteMapElemValue()
4899 yy133 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
4900 h.encArray0int64((*[0]int64)(yy133), e)
4901 z.EncWriteMapElemKey()
4902 if z.IsJSONHandle() {
4903 z.WriteStr("\"AI64arr8\"")
4904 } else {
4905 r.EncodeString(`AI64arr8`)
4906 }
4907 z.EncWriteMapElemValue()
4908 yy135 := &x.TestStrucCommon.AnonInTestStruc.AI64arr8
4909 h.encArray8int64((*[8]int64)(yy135), e)
4910 z.EncWriteMapElemKey()
4911 if z.IsJSONHandle() {
4912 z.WriteStr("\"AI64slice\"")
4913 } else {
4914 r.EncodeString(`AI64slice`)
4915 }
4916 z.EncWriteMapElemValue()
4917 if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
4918 r.EncodeNil()
4919 } else {
4920 z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
4921 } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice slice == nil
4922 z.EncWriteMapElemKey()
4923 if z.IsJSONHandle() {
4924 z.WriteStr("\"AI64slice0\"")
4925 } else {
4926 r.EncodeString(`AI64slice0`)
4927 }
4928 z.EncWriteMapElemValue()
4929 if x.TestStrucCommon.AnonInTestStruc.AI64slice0 == nil {
4930 r.EncodeNil()
4931 } else {
4932 z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
4933 } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice0 slice == nil
4934 z.EncWriteMapElemKey()
4935 if z.IsJSONHandle() {
4936 z.WriteStr("\"AMSS\"")
4937 } else {
4938 r.EncodeString(`AMSS`)
4939 }
4940 z.EncWriteMapElemValue()
4941 if x.TestStrucCommon.AnonInTestStruc.AMSS == nil {
4942 r.EncodeNil()
4943 } else {
4944 z.F.EncMapStringStringV(x.TestStrucCommon.AnonInTestStruc.AMSS, e)
4945 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSS map == nil
4946 z.EncWriteMapElemKey()
4947 if z.IsJSONHandle() {
4948 z.WriteStr("\"AMSU64\"")
4949 } else {
4950 r.EncodeString(`AMSU64`)
4951 }
4952 z.EncWriteMapElemValue()
4953 if x.TestStrucCommon.AnonInTestStruc.AMSU64 == nil {
4954 r.EncodeNil()
4955 } else {
4956 z.F.EncMapStringUint64V(x.TestStrucCommon.AnonInTestStruc.AMSU64, e)
4957 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU64 map == nil
4958 z.EncWriteMapElemKey()
4959 if z.IsJSONHandle() {
4960 z.WriteStr("\"AMSU64E\"")
4961 } else {
4962 r.EncodeString(`AMSU64E`)
4963 }
4964 z.EncWriteMapElemValue()
4965 if x.TestStrucCommon.AnonInTestStruc.AMSU64E == nil {
4966 r.EncodeNil()
4967 } else {
4968 z.F.EncMapStringUint64V(x.TestStrucCommon.AnonInTestStruc.AMSU64E, e)
4969 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU64E map == nil
4970 z.EncWriteMapElemKey()
4971 if z.IsJSONHandle() {
4972 z.WriteStr("\"AMSU64N\"")
4973 } else {
4974 r.EncodeString(`AMSU64N`)
4975 }
4976 z.EncWriteMapElemValue()
4977 if x.TestStrucCommon.AnonInTestStruc.AMSU64N == nil {
4978 r.EncodeNil()
4979 } else {
4980 z.F.EncMapStringUint64V(x.TestStrucCommon.AnonInTestStruc.AMSU64N, e)
4981 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU64N map == nil
4982 z.EncWriteMapElemKey()
4983 if z.IsJSONHandle() {
4984 z.WriteStr("\"AS\"")
4985 } else {
4986 r.EncodeString(`AS`)
4987 }
4988 z.EncWriteMapElemValue()
4989 r.EncodeString(string(x.TestStrucCommon.AnonInTestStruc.AS))
4990 z.EncWriteMapElemKey()
4991 if z.IsJSONHandle() {
4992 z.WriteStr("\"ASslice\"")
4993 } else {
4994 r.EncodeString(`ASslice`)
4995 }
4996 z.EncWriteMapElemValue()
4997 if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
4998 r.EncodeNil()
4999 } else {
5000 z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
5001 } // end block: if x.TestStrucCommon.AnonInTestStruc.ASslice slice == nil
5002 z.EncWriteMapElemKey()
5003 if z.IsJSONHandle() {
5004 z.WriteStr("\"AUi64\"")
5005 } else {
5006 r.EncodeString(`AUi64`)
5007 }
5008 z.EncWriteMapElemValue()
5009 r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
5010 z.EncWriteMapElemKey()
5011 if z.IsJSONHandle() {
5012 z.WriteStr("\"AUi64slice\"")
5013 } else {
5014 r.EncodeString(`AUi64slice`)
5015 }
5016 z.EncWriteMapElemValue()
5017 if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
5018 r.EncodeNil()
5019 } else {
5020 z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
5021 } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64slice slice == nil
5022 z.EncWriteMapElemKey()
5023 if z.IsJSONHandle() {
5024 z.WriteStr("\"AUi64sliceN\"")
5025 } else {
5026 r.EncodeString(`AUi64sliceN`)
5027 }
5028 z.EncWriteMapElemValue()
5029 if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
5030 r.EncodeNil()
5031 } else {
5032 z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
5033 } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN slice == nil
5034 z.EncWriteMapElemKey()
5035 if z.IsJSONHandle() {
5036 z.WriteStr("\"B\"")
5037 } else {
5038 r.EncodeString(`B`)
5039 }
5040 z.EncWriteMapElemValue()
5041 r.EncodeBool(bool(x.TestStrucCommon.B))
5042 z.EncWriteMapElemKey()
5043 if z.IsJSONHandle() {
5044 z.WriteStr("\"Bslice\"")
5045 } else {
5046 r.EncodeString(`Bslice`)
5047 }
5048 z.EncWriteMapElemValue()
5049 if x.TestStrucCommon.Bslice == nil {
5050 r.EncodeNil()
5051 } else {
5052 z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
5053 } // end block: if x.TestStrucCommon.Bslice slice == nil
5054 z.EncWriteMapElemKey()
5055 if z.IsJSONHandle() {
5056 z.WriteStr("\"By\"")
5057 } else {
5058 r.EncodeString(`By`)
5059 }
5060 z.EncWriteMapElemValue()
5061 r.EncodeUint(uint64(x.TestStrucCommon.By))
5062 z.EncWriteMapElemKey()
5063 if z.IsJSONHandle() {
5064 z.WriteStr("\"Byslice\"")
5065 } else {
5066 r.EncodeString(`Byslice`)
5067 }
5068 z.EncWriteMapElemValue()
5069 if x.TestStrucCommon.Byslice == nil {
5070 r.EncodeNil()
5071 } else {
5072 r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
5073 } // end block: if x.TestStrucCommon.Byslice slice == nil
5074 z.EncWriteMapElemKey()
5075 if z.IsJSONHandle() {
5076 z.WriteStr("\"BytesSlice\"")
5077 } else {
5078 r.EncodeString(`BytesSlice`)
5079 }
5080 z.EncWriteMapElemValue()
5081 if x.TestStrucCommon.BytesSlice == nil {
5082 r.EncodeNil()
5083 } else {
5084 z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
5085 } // end block: if x.TestStrucCommon.BytesSlice slice == nil
5086 z.EncWriteMapElemKey()
5087 if z.IsJSONHandle() {
5088 z.WriteStr("\"F32\"")
5089 } else {
5090 r.EncodeString(`F32`)
5091 }
5092 z.EncWriteMapElemValue()
5093 r.EncodeFloat32(float32(x.TestStrucCommon.F32))
5094 z.EncWriteMapElemKey()
5095 if z.IsJSONHandle() {
5096 z.WriteStr("\"F64\"")
5097 } else {
5098 r.EncodeString(`F64`)
5099 }
5100 z.EncWriteMapElemValue()
5101 r.EncodeFloat64(float64(x.TestStrucCommon.F64))
5102 z.EncWriteMapElemKey()
5103 if z.IsJSONHandle() {
5104 z.WriteStr("\"I16\"")
5105 } else {
5106 r.EncodeString(`I16`)
5107 }
5108 z.EncWriteMapElemValue()
5109 r.EncodeInt(int64(x.TestStrucCommon.I16))
5110 z.EncWriteMapElemKey()
5111 if z.IsJSONHandle() {
5112 z.WriteStr("\"I16n\"")
5113 } else {
5114 r.EncodeString(`I16n`)
5115 }
5116 z.EncWriteMapElemValue()
5117 r.EncodeInt(int64(x.TestStrucCommon.I16n))
5118 z.EncWriteMapElemKey()
5119 if z.IsJSONHandle() {
5120 z.WriteStr("\"I32\"")
5121 } else {
5122 r.EncodeString(`I32`)
5123 }
5124 z.EncWriteMapElemValue()
5125 r.EncodeInt(int64(x.TestStrucCommon.I32))
5126 z.EncWriteMapElemKey()
5127 if z.IsJSONHandle() {
5128 z.WriteStr("\"I32n\"")
5129 } else {
5130 r.EncodeString(`I32n`)
5131 }
5132 z.EncWriteMapElemValue()
5133 r.EncodeInt(int64(x.TestStrucCommon.I32n))
5134 z.EncWriteMapElemKey()
5135 if z.IsJSONHandle() {
5136 z.WriteStr("\"I32slice\"")
5137 } else {
5138 r.EncodeString(`I32slice`)
5139 }
5140 z.EncWriteMapElemValue()
5141 if x.TestStrucCommon.I32slice == nil {
5142 r.EncodeNil()
5143 } else {
5144 z.F.EncSliceInt32V(x.TestStrucCommon.I32slice, e)
5145 } // end block: if x.TestStrucCommon.I32slice slice == nil
5146 z.EncWriteMapElemKey()
5147 if z.IsJSONHandle() {
5148 z.WriteStr("\"I64\"")
5149 } else {
5150 r.EncodeString(`I64`)
5151 }
5152 z.EncWriteMapElemValue()
5153 r.EncodeInt(int64(x.TestStrucCommon.I64))
5154 z.EncWriteMapElemKey()
5155 if z.IsJSONHandle() {
5156 z.WriteStr("\"I64n\"")
5157 } else {
5158 r.EncodeString(`I64n`)
5159 }
5160 z.EncWriteMapElemValue()
5161 r.EncodeInt(int64(x.TestStrucCommon.I64n))
5162 z.EncWriteMapElemKey()
5163 if z.IsJSONHandle() {
5164 z.WriteStr("\"I64slice\"")
5165 } else {
5166 r.EncodeString(`I64slice`)
5167 }
5168 z.EncWriteMapElemValue()
5169 if x.TestStrucCommon.I64slice == nil {
5170 r.EncodeNil()
5171 } else {
5172 z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
5173 } // end block: if x.TestStrucCommon.I64slice slice == nil
5174 z.EncWriteMapElemKey()
5175 if z.IsJSONHandle() {
5176 z.WriteStr("\"I8\"")
5177 } else {
5178 r.EncodeString(`I8`)
5179 }
5180 z.EncWriteMapElemValue()
5181 r.EncodeInt(int64(x.TestStrucCommon.I8))
5182 z.EncWriteMapElemKey()
5183 if z.IsJSONHandle() {
5184 z.WriteStr("\"I8n\"")
5185 } else {
5186 r.EncodeString(`I8n`)
5187 }
5188 z.EncWriteMapElemValue()
5189 r.EncodeInt(int64(x.TestStrucCommon.I8n))
5190 z.EncWriteMapElemKey()
5191 if z.IsJSONHandle() {
5192 z.WriteStr("\"Iptrslice\"")
5193 } else {
5194 r.EncodeString(`Iptrslice`)
5195 }
5196 z.EncWriteMapElemValue()
5197 if x.TestStrucCommon.Iptrslice == nil {
5198 r.EncodeNil()
5199 } else {
5200 h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
5201 } // end block: if x.TestStrucCommon.Iptrslice slice == nil
5202 z.EncWriteMapElemKey()
5203 if z.IsJSONHandle() {
5204 z.WriteStr("\"Its\"")
5205 } else {
5206 r.EncodeString(`Its`)
5207 }
5208 z.EncWriteMapElemValue()
5209 if x.Its == nil {
5210 r.EncodeNil()
5211 } else {
5212 h.encSlicePtrtoTestStruc(([]*TestStruc)(x.Its), e)
5213 } // end block: if x.Its slice == nil
5214 z.EncWriteMapElemKey()
5215 if z.IsJSONHandle() {
5216 z.WriteStr("\"Msbytes\"")
5217 } else {
5218 r.EncodeString(`Msbytes`)
5219 }
5220 z.EncWriteMapElemValue()
5221 if x.TestStrucCommon.Msbytes == nil {
5222 r.EncodeNil()
5223 } else {
5224 z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
5225 } // end block: if x.TestStrucCommon.Msbytes map == nil
5226 z.EncWriteMapElemKey()
5227 if z.IsJSONHandle() {
5228 z.WriteStr("\"Msint\"")
5229 } else {
5230 r.EncodeString(`Msint`)
5231 }
5232 z.EncWriteMapElemValue()
5233 if x.TestStrucCommon.Msint == nil {
5234 r.EncodeNil()
5235 } else {
5236 z.F.EncMapStringIntV(x.TestStrucCommon.Msint, e)
5237 } // end block: if x.TestStrucCommon.Msint map == nil
5238 z.EncWriteMapElemKey()
5239 if z.IsJSONHandle() {
5240 z.WriteStr("\"MstrUi64T\"")
5241 } else {
5242 r.EncodeString(`MstrUi64T`)
5243 }
5244 z.EncWriteMapElemValue()
5245 if x.TestStrucCommon.MstrUi64T == nil {
5246 r.EncodeNil()
5247 } else {
5248 h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
5249 } // end block: if x.TestStrucCommon.MstrUi64T map == nil
5250 z.EncWriteMapElemKey()
5251 if z.IsJSONHandle() {
5252 z.WriteStr("\"Mts\"")
5253 } else {
5254 r.EncodeString(`Mts`)
5255 }
5256 z.EncWriteMapElemValue()
5257 if x.Mts == nil {
5258 r.EncodeNil()
5259 } else {
5260 h.encMapstringTestStruc((map[string]TestStruc)(x.Mts), e)
5261 } // end block: if x.Mts map == nil
5262 z.EncWriteMapElemKey()
5263 if z.IsJSONHandle() {
5264 z.WriteStr("\"Mtsptr\"")
5265 } else {
5266 r.EncodeString(`Mtsptr`)
5267 }
5268 z.EncWriteMapElemValue()
5269 if x.Mtsptr == nil {
5270 r.EncodeNil()
5271 } else {
5272 h.encMapstringPtrtoTestStruc((map[string]*TestStruc)(x.Mtsptr), e)
5273 } // end block: if x.Mtsptr map == nil
5274 z.EncWriteMapElemKey()
5275 if z.IsJSONHandle() {
5276 z.WriteStr("\"Nint64\"")
5277 } else {
5278 r.EncodeString(`Nint64`)
5279 }
5280 z.EncWriteMapElemValue()
5281 if yyn58 {
5282 r.EncodeNil()
5283 } else {
5284 yy172 := *x.TestStrucCommon.Nint64
5285 r.EncodeInt(int64(yy172))
5286 }
5287 z.EncWriteMapElemKey()
5288 if z.IsJSONHandle() {
5289 z.WriteStr("\"Nmap\"")
5290 } else {
5291 r.EncodeString(`Nmap`)
5292 }
5293 z.EncWriteMapElemValue()
5294 if x.TestStrucCommon.Nmap == nil {
5295 r.EncodeNil()
5296 } else {
5297 z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
5298 } // end block: if x.TestStrucCommon.Nmap map == nil
5299 z.EncWriteMapElemKey()
5300 if z.IsJSONHandle() {
5301 z.WriteStr("\"NotAnon\"")
5302 } else {
5303 r.EncodeString(`NotAnon`)
5304 }
5305 z.EncWriteMapElemValue()
5306 yy175 := &x.TestStrucCommon.NotAnon
5307 if yyxt176 := z.Extension(yy175); yyxt176 != nil {
5308 z.EncExtension(yy175, yyxt176)
5309 } else {
5310 yy175.CodecEncodeSelf(e)
5311 }
5312 z.EncWriteMapElemKey()
5313 if z.IsJSONHandle() {
5314 z.WriteStr("\"NotAnonSlim\"")
5315 } else {
5316 r.EncodeString(`NotAnonSlim`)
5317 }
5318 z.EncWriteMapElemValue()
5319 if yyn55 {
5320 r.EncodeNil()
5321 } else {
5322 if yyxt177 := z.Extension(x.TestStrucCommon.NotAnonSlim); yyxt177 != nil {
5323 z.EncExtension(x.TestStrucCommon.NotAnonSlim, yyxt177)
5324 } else {
5325 x.TestStrucCommon.NotAnonSlim.CodecEncodeSelf(e)
5326 }
5327 }
5328 z.EncWriteMapElemKey()
5329 if z.IsJSONHandle() {
5330 z.WriteStr("\"Nslice\"")
5331 } else {
5332 r.EncodeString(`Nslice`)
5333 }
5334 z.EncWriteMapElemValue()
5335 if x.TestStrucCommon.Nslice == nil {
5336 r.EncodeNil()
5337 } else {
5338 r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
5339 } // end block: if x.TestStrucCommon.Nslice slice == nil
5340 z.EncWriteMapElemKey()
5341 if z.IsJSONHandle() {
5342 z.WriteStr("\"Nteststruc\"")
5343 } else {
5344 r.EncodeString(`Nteststruc`)
5345 }
5346 z.EncWriteMapElemValue()
5347 if yyn62 {
5348 r.EncodeNil()
5349 } else {
5350 if yyxt179 := z.Extension(x.Nteststruc); yyxt179 != nil {
5351 z.EncExtension(x.Nteststruc, yyxt179)
5352 } else {
5353 x.Nteststruc.CodecEncodeSelf(e)
5354 }
5355 }
5356 z.EncWriteMapElemKey()
5357 if z.IsJSONHandle() {
5358 z.WriteStr("\"P\"")
5359 } else {
5360 r.EncodeString(`P`)
5361 }
5362 z.EncWriteMapElemValue()
5363 if yyn54 {
5364 r.EncodeNil()
5365 } else {
5366 yy180 := *x.TestStrucCommon.AnonInTestStrucSlim.P
5367 r.EncodeString(string(yy180))
5368 }
5369 z.EncWriteMapElemKey()
5370 if z.IsJSONHandle() {
5371 z.WriteStr("\"S\"")
5372 } else {
5373 r.EncodeString(`S`)
5374 }
5375 z.EncWriteMapElemValue()
5376 r.EncodeString(string(x.TestStrucCommon.S))
5377 z.EncWriteMapElemKey()
5378 if z.IsJSONHandle() {
5379 z.WriteStr("\"Simplef\"")
5380 } else {
5381 r.EncodeString(`Simplef`)
5382 }
5383 z.EncWriteMapElemValue()
5384 yy183 := &x.TestStrucCommon.Simplef
5385 if yyxt184 := z.Extension(yy183); yyxt184 != nil {
5386 z.EncExtension(yy183, yyxt184)
5387 } else {
5388 yy183.CodecEncodeSelf(e)
5389 }
5390 z.EncWriteMapElemKey()
5391 if z.IsJSONHandle() {
5392 z.WriteStr("\"Sslice\"")
5393 } else {
5394 r.EncodeString(`Sslice`)
5395 }
5396 z.EncWriteMapElemValue()
5397 if x.TestStrucCommon.Sslice == nil {
5398 r.EncodeNil()
5399 } else {
5400 z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
5401 } // end block: if x.TestStrucCommon.Sslice slice == nil
5402 z.EncWriteMapElemKey()
5403 if z.IsJSONHandle() {
5404 z.WriteStr("\"SstrUi64T\"")
5405 } else {
5406 r.EncodeString(`SstrUi64T`)
5407 }
5408 z.EncWriteMapElemValue()
5409 if x.TestStrucCommon.SstrUi64T == nil {
5410 r.EncodeNil()
5411 } else {
5412 h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
5413 } // end block: if x.TestStrucCommon.SstrUi64T slice == nil
5414 z.EncWriteMapElemKey()
5415 if z.IsJSONHandle() {
5416 z.WriteStr("\"Ui16\"")
5417 } else {
5418 r.EncodeString(`Ui16`)
5419 }
5420 z.EncWriteMapElemValue()
5421 r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
5422 z.EncWriteMapElemKey()
5423 if z.IsJSONHandle() {
5424 z.WriteStr("\"Ui32\"")
5425 } else {
5426 r.EncodeString(`Ui32`)
5427 }
5428 z.EncWriteMapElemValue()
5429 r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
5430 z.EncWriteMapElemKey()
5431 if z.IsJSONHandle() {
5432 z.WriteStr("\"Ui64\"")
5433 } else {
5434 r.EncodeString(`Ui64`)
5435 }
5436 z.EncWriteMapElemValue()
5437 r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
5438 z.EncWriteMapElemKey()
5439 if z.IsJSONHandle() {
5440 z.WriteStr("\"Ui64slice\"")
5441 } else {
5442 r.EncodeString(`Ui64slice`)
5443 }
5444 z.EncWriteMapElemValue()
5445 if x.TestStrucCommon.Ui64slice == nil {
5446 r.EncodeNil()
5447 } else {
5448 z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
5449 } // end block: if x.TestStrucCommon.Ui64slice slice == nil
5450 z.EncWriteMapElemKey()
5451 if z.IsJSONHandle() {
5452 z.WriteStr("\"Ui8\"")
5453 } else {
5454 r.EncodeString(`Ui8`)
5455 }
5456 z.EncWriteMapElemValue()
5457 r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
5458 z.EncWriteMapElemKey()
5459 if z.IsJSONHandle() {
5460 z.WriteStr("\"Ui8slice\"")
5461 } else {
5462 r.EncodeString(`Ui8slice`)
5463 }
5464 z.EncWriteMapElemValue()
5465 if x.TestStrucCommon.Ui8slice == nil {
5466 r.EncodeNil()
5467 } else {
5468 r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
5469 } // end block: if x.TestStrucCommon.Ui8slice slice == nil
5470 z.EncWriteMapElemKey()
5471 if z.IsJSONHandle() {
5472 z.WriteStr("\"WrapSliceInt64\"")
5473 } else {
5474 r.EncodeString(`WrapSliceInt64`)
5475 }
5476 z.EncWriteMapElemValue()
5477 if yyxt193 := z.Extension(x.TestStrucCommon.WrapSliceInt64); yyxt193 != nil {
5478 z.EncExtension(x.TestStrucCommon.WrapSliceInt64, yyxt193)
5479 } else {
5480 x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
5481 }
5482 z.EncWriteMapElemKey()
5483 if z.IsJSONHandle() {
5484 z.WriteStr("\"WrapSliceString\"")
5485 } else {
5486 r.EncodeString(`WrapSliceString`)
5487 }
5488 z.EncWriteMapElemValue()
5489 if yyxt194 := z.Extension(x.TestStrucCommon.WrapSliceString); yyxt194 != nil {
5490 z.EncExtension(x.TestStrucCommon.WrapSliceString, yyxt194)
5491 } else {
5492 x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
5493 }
5494 } else {
5495 z.EncWriteMapElemKey()
5496 if z.IsJSONHandle() {
5497 z.WriteStr("\"S\"")
5498 } else {
5499 r.EncodeString(`S`)
5500 }
5501 z.EncWriteMapElemValue()
5502 r.EncodeString(string(x.TestStrucCommon.S))
5503 z.EncWriteMapElemKey()
5504 if z.IsJSONHandle() {
5505 z.WriteStr("\"I64\"")
5506 } else {
5507 r.EncodeString(`I64`)
5508 }
5509 z.EncWriteMapElemValue()
5510 r.EncodeInt(int64(x.TestStrucCommon.I64))
5511 z.EncWriteMapElemKey()
5512 if z.IsJSONHandle() {
5513 z.WriteStr("\"I32\"")
5514 } else {
5515 r.EncodeString(`I32`)
5516 }
5517 z.EncWriteMapElemValue()
5518 r.EncodeInt(int64(x.TestStrucCommon.I32))
5519 z.EncWriteMapElemKey()
5520 if z.IsJSONHandle() {
5521 z.WriteStr("\"I16\"")
5522 } else {
5523 r.EncodeString(`I16`)
5524 }
5525 z.EncWriteMapElemValue()
5526 r.EncodeInt(int64(x.TestStrucCommon.I16))
5527 z.EncWriteMapElemKey()
5528 if z.IsJSONHandle() {
5529 z.WriteStr("\"I8\"")
5530 } else {
5531 r.EncodeString(`I8`)
5532 }
5533 z.EncWriteMapElemValue()
5534 r.EncodeInt(int64(x.TestStrucCommon.I8))
5535 z.EncWriteMapElemKey()
5536 if z.IsJSONHandle() {
5537 z.WriteStr("\"I64n\"")
5538 } else {
5539 r.EncodeString(`I64n`)
5540 }
5541 z.EncWriteMapElemValue()
5542 r.EncodeInt(int64(x.TestStrucCommon.I64n))
5543 z.EncWriteMapElemKey()
5544 if z.IsJSONHandle() {
5545 z.WriteStr("\"I32n\"")
5546 } else {
5547 r.EncodeString(`I32n`)
5548 }
5549 z.EncWriteMapElemValue()
5550 r.EncodeInt(int64(x.TestStrucCommon.I32n))
5551 z.EncWriteMapElemKey()
5552 if z.IsJSONHandle() {
5553 z.WriteStr("\"I16n\"")
5554 } else {
5555 r.EncodeString(`I16n`)
5556 }
5557 z.EncWriteMapElemValue()
5558 r.EncodeInt(int64(x.TestStrucCommon.I16n))
5559 z.EncWriteMapElemKey()
5560 if z.IsJSONHandle() {
5561 z.WriteStr("\"I8n\"")
5562 } else {
5563 r.EncodeString(`I8n`)
5564 }
5565 z.EncWriteMapElemValue()
5566 r.EncodeInt(int64(x.TestStrucCommon.I8n))
5567 z.EncWriteMapElemKey()
5568 if z.IsJSONHandle() {
5569 z.WriteStr("\"Ui64\"")
5570 } else {
5571 r.EncodeString(`Ui64`)
5572 }
5573 z.EncWriteMapElemValue()
5574 r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
5575 z.EncWriteMapElemKey()
5576 if z.IsJSONHandle() {
5577 z.WriteStr("\"Ui32\"")
5578 } else {
5579 r.EncodeString(`Ui32`)
5580 }
5581 z.EncWriteMapElemValue()
5582 r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
5583 z.EncWriteMapElemKey()
5584 if z.IsJSONHandle() {
5585 z.WriteStr("\"Ui16\"")
5586 } else {
5587 r.EncodeString(`Ui16`)
5588 }
5589 z.EncWriteMapElemValue()
5590 r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
5591 z.EncWriteMapElemKey()
5592 if z.IsJSONHandle() {
5593 z.WriteStr("\"Ui8\"")
5594 } else {
5595 r.EncodeString(`Ui8`)
5596 }
5597 z.EncWriteMapElemValue()
5598 r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
5599 z.EncWriteMapElemKey()
5600 if z.IsJSONHandle() {
5601 z.WriteStr("\"F64\"")
5602 } else {
5603 r.EncodeString(`F64`)
5604 }
5605 z.EncWriteMapElemValue()
5606 r.EncodeFloat64(float64(x.TestStrucCommon.F64))
5607 z.EncWriteMapElemKey()
5608 if z.IsJSONHandle() {
5609 z.WriteStr("\"F32\"")
5610 } else {
5611 r.EncodeString(`F32`)
5612 }
5613 z.EncWriteMapElemValue()
5614 r.EncodeFloat32(float32(x.TestStrucCommon.F32))
5615 z.EncWriteMapElemKey()
5616 if z.IsJSONHandle() {
5617 z.WriteStr("\"B\"")
5618 } else {
5619 r.EncodeString(`B`)
5620 }
5621 z.EncWriteMapElemValue()
5622 r.EncodeBool(bool(x.TestStrucCommon.B))
5623 z.EncWriteMapElemKey()
5624 if z.IsJSONHandle() {
5625 z.WriteStr("\"By\"")
5626 } else {
5627 r.EncodeString(`By`)
5628 }
5629 z.EncWriteMapElemValue()
5630 r.EncodeUint(uint64(x.TestStrucCommon.By))
5631 z.EncWriteMapElemKey()
5632 if z.IsJSONHandle() {
5633 z.WriteStr("\"Sslice\"")
5634 } else {
5635 r.EncodeString(`Sslice`)
5636 }
5637 z.EncWriteMapElemValue()
5638 if x.TestStrucCommon.Sslice == nil {
5639 r.EncodeNil()
5640 } else {
5641 z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
5642 } // end block: if x.TestStrucCommon.Sslice slice == nil
5643 z.EncWriteMapElemKey()
5644 if z.IsJSONHandle() {
5645 z.WriteStr("\"I64slice\"")
5646 } else {
5647 r.EncodeString(`I64slice`)
5648 }
5649 z.EncWriteMapElemValue()
5650 if x.TestStrucCommon.I64slice == nil {
5651 r.EncodeNil()
5652 } else {
5653 z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
5654 } // end block: if x.TestStrucCommon.I64slice slice == nil
5655 z.EncWriteMapElemKey()
5656 if z.IsJSONHandle() {
5657 z.WriteStr("\"I32slice\"")
5658 } else {
5659 r.EncodeString(`I32slice`)
5660 }
5661 z.EncWriteMapElemValue()
5662 if x.TestStrucCommon.I32slice == nil {
5663 r.EncodeNil()
5664 } else {
5665 z.F.EncSliceInt32V(x.TestStrucCommon.I32slice, e)
5666 } // end block: if x.TestStrucCommon.I32slice slice == nil
5667 z.EncWriteMapElemKey()
5668 if z.IsJSONHandle() {
5669 z.WriteStr("\"Ui64slice\"")
5670 } else {
5671 r.EncodeString(`Ui64slice`)
5672 }
5673 z.EncWriteMapElemValue()
5674 if x.TestStrucCommon.Ui64slice == nil {
5675 r.EncodeNil()
5676 } else {
5677 z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
5678 } // end block: if x.TestStrucCommon.Ui64slice slice == nil
5679 z.EncWriteMapElemKey()
5680 if z.IsJSONHandle() {
5681 z.WriteStr("\"Ui8slice\"")
5682 } else {
5683 r.EncodeString(`Ui8slice`)
5684 }
5685 z.EncWriteMapElemValue()
5686 if x.TestStrucCommon.Ui8slice == nil {
5687 r.EncodeNil()
5688 } else {
5689 r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
5690 } // end block: if x.TestStrucCommon.Ui8slice slice == nil
5691 z.EncWriteMapElemKey()
5692 if z.IsJSONHandle() {
5693 z.WriteStr("\"Bslice\"")
5694 } else {
5695 r.EncodeString(`Bslice`)
5696 }
5697 z.EncWriteMapElemValue()
5698 if x.TestStrucCommon.Bslice == nil {
5699 r.EncodeNil()
5700 } else {
5701 z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
5702 } // end block: if x.TestStrucCommon.Bslice slice == nil
5703 z.EncWriteMapElemKey()
5704 if z.IsJSONHandle() {
5705 z.WriteStr("\"Byslice\"")
5706 } else {
5707 r.EncodeString(`Byslice`)
5708 }
5709 z.EncWriteMapElemValue()
5710 if x.TestStrucCommon.Byslice == nil {
5711 r.EncodeNil()
5712 } else {
5713 r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
5714 } // end block: if x.TestStrucCommon.Byslice slice == nil
5715 z.EncWriteMapElemKey()
5716 if z.IsJSONHandle() {
5717 z.WriteStr("\"BytesSlice\"")
5718 } else {
5719 r.EncodeString(`BytesSlice`)
5720 }
5721 z.EncWriteMapElemValue()
5722 if x.TestStrucCommon.BytesSlice == nil {
5723 r.EncodeNil()
5724 } else {
5725 z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
5726 } // end block: if x.TestStrucCommon.BytesSlice slice == nil
5727 z.EncWriteMapElemKey()
5728 if z.IsJSONHandle() {
5729 z.WriteStr("\"Iptrslice\"")
5730 } else {
5731 r.EncodeString(`Iptrslice`)
5732 }
5733 z.EncWriteMapElemValue()
5734 if x.TestStrucCommon.Iptrslice == nil {
5735 r.EncodeNil()
5736 } else {
5737 h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
5738 } // end block: if x.TestStrucCommon.Iptrslice slice == nil
5739 z.EncWriteMapElemKey()
5740 if z.IsJSONHandle() {
5741 z.WriteStr("\"WrapSliceInt64\"")
5742 } else {
5743 r.EncodeString(`WrapSliceInt64`)
5744 }
5745 z.EncWriteMapElemValue()
5746 if yyxt221 := z.Extension(x.TestStrucCommon.WrapSliceInt64); yyxt221 != nil {
5747 z.EncExtension(x.TestStrucCommon.WrapSliceInt64, yyxt221)
5748 } else {
5749 x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
5750 }
5751 z.EncWriteMapElemKey()
5752 if z.IsJSONHandle() {
5753 z.WriteStr("\"WrapSliceString\"")
5754 } else {
5755 r.EncodeString(`WrapSliceString`)
5756 }
5757 z.EncWriteMapElemValue()
5758 if yyxt222 := z.Extension(x.TestStrucCommon.WrapSliceString); yyxt222 != nil {
5759 z.EncExtension(x.TestStrucCommon.WrapSliceString, yyxt222)
5760 } else {
5761 x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
5762 }
5763 z.EncWriteMapElemKey()
5764 if z.IsJSONHandle() {
5765 z.WriteStr("\"Msint\"")
5766 } else {
5767 r.EncodeString(`Msint`)
5768 }
5769 z.EncWriteMapElemValue()
5770 if x.TestStrucCommon.Msint == nil {
5771 r.EncodeNil()
5772 } else {
5773 z.F.EncMapStringIntV(x.TestStrucCommon.Msint, e)
5774 } // end block: if x.TestStrucCommon.Msint map == nil
5775 z.EncWriteMapElemKey()
5776 if z.IsJSONHandle() {
5777 z.WriteStr("\"Msbytes\"")
5778 } else {
5779 r.EncodeString(`Msbytes`)
5780 }
5781 z.EncWriteMapElemValue()
5782 if x.TestStrucCommon.Msbytes == nil {
5783 r.EncodeNil()
5784 } else {
5785 z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
5786 } // end block: if x.TestStrucCommon.Msbytes map == nil
5787 z.EncWriteMapElemKey()
5788 if z.IsJSONHandle() {
5789 z.WriteStr("\"Simplef\"")
5790 } else {
5791 r.EncodeString(`Simplef`)
5792 }
5793 z.EncWriteMapElemValue()
5794 yy225 := &x.TestStrucCommon.Simplef
5795 if yyxt226 := z.Extension(yy225); yyxt226 != nil {
5796 z.EncExtension(yy225, yyxt226)
5797 } else {
5798 yy225.CodecEncodeSelf(e)
5799 }
5800 z.EncWriteMapElemKey()
5801 if z.IsJSONHandle() {
5802 z.WriteStr("\"SstrUi64T\"")
5803 } else {
5804 r.EncodeString(`SstrUi64T`)
5805 }
5806 z.EncWriteMapElemValue()
5807 if x.TestStrucCommon.SstrUi64T == nil {
5808 r.EncodeNil()
5809 } else {
5810 h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
5811 } // end block: if x.TestStrucCommon.SstrUi64T slice == nil
5812 z.EncWriteMapElemKey()
5813 if z.IsJSONHandle() {
5814 z.WriteStr("\"MstrUi64T\"")
5815 } else {
5816 r.EncodeString(`MstrUi64T`)
5817 }
5818 z.EncWriteMapElemValue()
5819 if x.TestStrucCommon.MstrUi64T == nil {
5820 r.EncodeNil()
5821 } else {
5822 h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
5823 } // end block: if x.TestStrucCommon.MstrUi64T map == nil
5824 z.EncWriteMapElemKey()
5825 if z.IsJSONHandle() {
5826 z.WriteStr("\"AS\"")
5827 } else {
5828 r.EncodeString(`AS`)
5829 }
5830 z.EncWriteMapElemValue()
5831 r.EncodeString(string(x.TestStrucCommon.AnonInTestStruc.AS))
5832 z.EncWriteMapElemKey()
5833 if z.IsJSONHandle() {
5834 z.WriteStr("\"AI64\"")
5835 } else {
5836 r.EncodeString(`AI64`)
5837 }
5838 z.EncWriteMapElemValue()
5839 r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
5840 z.EncWriteMapElemKey()
5841 if z.IsJSONHandle() {
5842 z.WriteStr("\"AI16\"")
5843 } else {
5844 r.EncodeString(`AI16`)
5845 }
5846 z.EncWriteMapElemValue()
5847 r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
5848 z.EncWriteMapElemKey()
5849 if z.IsJSONHandle() {
5850 z.WriteStr("\"AUi64\"")
5851 } else {
5852 r.EncodeString(`AUi64`)
5853 }
5854 z.EncWriteMapElemValue()
5855 r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
5856 z.EncWriteMapElemKey()
5857 if z.IsJSONHandle() {
5858 z.WriteStr("\"ASslice\"")
5859 } else {
5860 r.EncodeString(`ASslice`)
5861 }
5862 z.EncWriteMapElemValue()
5863 if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
5864 r.EncodeNil()
5865 } else {
5866 z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
5867 } // end block: if x.TestStrucCommon.AnonInTestStruc.ASslice slice == nil
5868 z.EncWriteMapElemKey()
5869 if z.IsJSONHandle() {
5870 z.WriteStr("\"AI64slice\"")
5871 } else {
5872 r.EncodeString(`AI64slice`)
5873 }
5874 z.EncWriteMapElemValue()
5875 if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
5876 r.EncodeNil()
5877 } else {
5878 z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
5879 } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice slice == nil
5880 z.EncWriteMapElemKey()
5881 if z.IsJSONHandle() {
5882 z.WriteStr("\"AUi64slice\"")
5883 } else {
5884 r.EncodeString(`AUi64slice`)
5885 }
5886 z.EncWriteMapElemValue()
5887 if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
5888 r.EncodeNil()
5889 } else {
5890 z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
5891 } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64slice slice == nil
5892 z.EncWriteMapElemKey()
5893 if z.IsJSONHandle() {
5894 z.WriteStr("\"AF64slice\"")
5895 } else {
5896 r.EncodeString(`AF64slice`)
5897 }
5898 z.EncWriteMapElemValue()
5899 if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
5900 r.EncodeNil()
5901 } else {
5902 z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
5903 } // end block: if x.TestStrucCommon.AnonInTestStruc.AF64slice slice == nil
5904 z.EncWriteMapElemKey()
5905 if z.IsJSONHandle() {
5906 z.WriteStr("\"AF32slice\"")
5907 } else {
5908 r.EncodeString(`AF32slice`)
5909 }
5910 z.EncWriteMapElemValue()
5911 if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
5912 r.EncodeNil()
5913 } else {
5914 z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
5915 } // end block: if x.TestStrucCommon.AnonInTestStruc.AF32slice slice == nil
5916 z.EncWriteMapElemKey()
5917 if z.IsJSONHandle() {
5918 z.WriteStr("\"AMSS\"")
5919 } else {
5920 r.EncodeString(`AMSS`)
5921 }
5922 z.EncWriteMapElemValue()
5923 if x.TestStrucCommon.AnonInTestStruc.AMSS == nil {
5924 r.EncodeNil()
5925 } else {
5926 z.F.EncMapStringStringV(x.TestStrucCommon.AnonInTestStruc.AMSS, e)
5927 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSS map == nil
5928 z.EncWriteMapElemKey()
5929 if z.IsJSONHandle() {
5930 z.WriteStr("\"AMSU64\"")
5931 } else {
5932 r.EncodeString(`AMSU64`)
5933 }
5934 z.EncWriteMapElemValue()
5935 if x.TestStrucCommon.AnonInTestStruc.AMSU64 == nil {
5936 r.EncodeNil()
5937 } else {
5938 z.F.EncMapStringUint64V(x.TestStrucCommon.AnonInTestStruc.AMSU64, e)
5939 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU64 map == nil
5940 z.EncWriteMapElemKey()
5941 if z.IsJSONHandle() {
5942 z.WriteStr("\"AI64arr8\"")
5943 } else {
5944 r.EncodeString(`AI64arr8`)
5945 }
5946 z.EncWriteMapElemValue()
5947 yy240 := &x.TestStrucCommon.AnonInTestStruc.AI64arr8
5948 h.encArray8int64((*[8]int64)(yy240), e)
5949 z.EncWriteMapElemKey()
5950 if z.IsJSONHandle() {
5951 z.WriteStr("\"AI64arr0\"")
5952 } else {
5953 r.EncodeString(`AI64arr0`)
5954 }
5955 z.EncWriteMapElemValue()
5956 yy242 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
5957 h.encArray0int64((*[0]int64)(yy242), e)
5958 z.EncWriteMapElemKey()
5959 if z.IsJSONHandle() {
5960 z.WriteStr("\"AI64slice0\"")
5961 } else {
5962 r.EncodeString(`AI64slice0`)
5963 }
5964 z.EncWriteMapElemValue()
5965 if x.TestStrucCommon.AnonInTestStruc.AI64slice0 == nil {
5966 r.EncodeNil()
5967 } else {
5968 z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
5969 } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice0 slice == nil
5970 z.EncWriteMapElemKey()
5971 if z.IsJSONHandle() {
5972 z.WriteStr("\"AUi64sliceN\"")
5973 } else {
5974 r.EncodeString(`AUi64sliceN`)
5975 }
5976 z.EncWriteMapElemValue()
5977 if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
5978 r.EncodeNil()
5979 } else {
5980 z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
5981 } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN slice == nil
5982 z.EncWriteMapElemKey()
5983 if z.IsJSONHandle() {
5984 z.WriteStr("\"AMSU64N\"")
5985 } else {
5986 r.EncodeString(`AMSU64N`)
5987 }
5988 z.EncWriteMapElemValue()
5989 if x.TestStrucCommon.AnonInTestStruc.AMSU64N == nil {
5990 r.EncodeNil()
5991 } else {
5992 z.F.EncMapStringUint64V(x.TestStrucCommon.AnonInTestStruc.AMSU64N, e)
5993 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU64N map == nil
5994 z.EncWriteMapElemKey()
5995 if z.IsJSONHandle() {
5996 z.WriteStr("\"AMSU64E\"")
5997 } else {
5998 r.EncodeString(`AMSU64E`)
5999 }
6000 z.EncWriteMapElemValue()
6001 if x.TestStrucCommon.AnonInTestStruc.AMSU64E == nil {
6002 r.EncodeNil()
6003 } else {
6004 z.F.EncMapStringUint64V(x.TestStrucCommon.AnonInTestStruc.AMSU64E, e)
6005 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU64E map == nil
6006 z.EncWriteMapElemKey()
6007 if z.IsJSONHandle() {
6008 z.WriteStr("\"NotAnon\"")
6009 } else {
6010 r.EncodeString(`NotAnon`)
6011 }
6012 z.EncWriteMapElemValue()
6013 yy248 := &x.TestStrucCommon.NotAnon
6014 if yyxt249 := z.Extension(yy248); yyxt249 != nil {
6015 z.EncExtension(yy248, yyxt249)
6016 } else {
6017 yy248.CodecEncodeSelf(e)
6018 }
6019 z.EncWriteMapElemKey()
6020 if z.IsJSONHandle() {
6021 z.WriteStr("\"P\"")
6022 } else {
6023 r.EncodeString(`P`)
6024 }
6025 z.EncWriteMapElemValue()
6026 if yyn54 {
6027 r.EncodeNil()
6028 } else {
6029 yy250 := *x.TestStrucCommon.AnonInTestStrucSlim.P
6030 r.EncodeString(string(yy250))
6031 }
6032 z.EncWriteMapElemKey()
6033 if z.IsJSONHandle() {
6034 z.WriteStr("\"NotAnonSlim\"")
6035 } else {
6036 r.EncodeString(`NotAnonSlim`)
6037 }
6038 z.EncWriteMapElemValue()
6039 if yyn55 {
6040 r.EncodeNil()
6041 } else {
6042 if yyxt252 := z.Extension(x.TestStrucCommon.NotAnonSlim); yyxt252 != nil {
6043 z.EncExtension(x.TestStrucCommon.NotAnonSlim, yyxt252)
6044 } else {
6045 x.TestStrucCommon.NotAnonSlim.CodecEncodeSelf(e)
6046 }
6047 }
6048 z.EncWriteMapElemKey()
6049 if z.IsJSONHandle() {
6050 z.WriteStr("\"Nmap\"")
6051 } else {
6052 r.EncodeString(`Nmap`)
6053 }
6054 z.EncWriteMapElemValue()
6055 if x.TestStrucCommon.Nmap == nil {
6056 r.EncodeNil()
6057 } else {
6058 z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
6059 } // end block: if x.TestStrucCommon.Nmap map == nil
6060 z.EncWriteMapElemKey()
6061 if z.IsJSONHandle() {
6062 z.WriteStr("\"Nslice\"")
6063 } else {
6064 r.EncodeString(`Nslice`)
6065 }
6066 z.EncWriteMapElemValue()
6067 if x.TestStrucCommon.Nslice == nil {
6068 r.EncodeNil()
6069 } else {
6070 r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
6071 } // end block: if x.TestStrucCommon.Nslice slice == nil
6072 z.EncWriteMapElemKey()
6073 if z.IsJSONHandle() {
6074 z.WriteStr("\"Nint64\"")
6075 } else {
6076 r.EncodeString(`Nint64`)
6077 }
6078 z.EncWriteMapElemValue()
6079 if yyn58 {
6080 r.EncodeNil()
6081 } else {
6082 yy255 := *x.TestStrucCommon.Nint64
6083 r.EncodeInt(int64(yy255))
6084 }
6085 z.EncWriteMapElemKey()
6086 if z.IsJSONHandle() {
6087 z.WriteStr("\"Mtsptr\"")
6088 } else {
6089 r.EncodeString(`Mtsptr`)
6090 }
6091 z.EncWriteMapElemValue()
6092 if x.Mtsptr == nil {
6093 r.EncodeNil()
6094 } else {
6095 h.encMapstringPtrtoTestStruc((map[string]*TestStruc)(x.Mtsptr), e)
6096 } // end block: if x.Mtsptr map == nil
6097 z.EncWriteMapElemKey()
6098 if z.IsJSONHandle() {
6099 z.WriteStr("\"Mts\"")
6100 } else {
6101 r.EncodeString(`Mts`)
6102 }
6103 z.EncWriteMapElemValue()
6104 if x.Mts == nil {
6105 r.EncodeNil()
6106 } else {
6107 h.encMapstringTestStruc((map[string]TestStruc)(x.Mts), e)
6108 } // end block: if x.Mts map == nil
6109 z.EncWriteMapElemKey()
6110 if z.IsJSONHandle() {
6111 z.WriteStr("\"Its\"")
6112 } else {
6113 r.EncodeString(`Its`)
6114 }
6115 z.EncWriteMapElemValue()
6116 if x.Its == nil {
6117 r.EncodeNil()
6118 } else {
6119 h.encSlicePtrtoTestStruc(([]*TestStruc)(x.Its), e)
6120 } // end block: if x.Its slice == nil
6121 z.EncWriteMapElemKey()
6122 if z.IsJSONHandle() {
6123 z.WriteStr("\"Nteststruc\"")
6124 } else {
6125 r.EncodeString(`Nteststruc`)
6126 }
6127 z.EncWriteMapElemValue()
6128 if yyn62 {
6129 r.EncodeNil()
6130 } else {
6131 if yyxt260 := z.Extension(x.Nteststruc); yyxt260 != nil {
6132 z.EncExtension(x.Nteststruc, yyxt260)
6133 } else {
6134 x.Nteststruc.CodecEncodeSelf(e)
6135 }
6136 }
6137 }
6138 z.EncWriteMapEnd()
6139 }
6140 }
6141 }
6142
6143 func (x *TestStruc) CodecDecodeSelf(d *Decoder) {
6144 var h codecSelfer19780
6145 z, r := GenHelper().Decoder(d)
6146 _, _, _ = h, z, r
6147 yyct2 := r.ContainerType()
6148 if yyct2 == codecSelferValueTypeNil19780 {
6149 *(x) = TestStruc{}
6150 } else if yyct2 == codecSelferValueTypeMap19780 {
6151 yyl2 := z.DecReadMapStart()
6152 if yyl2 == 0 {
6153 } else {
6154 x.codecDecodeSelfFromMap(yyl2, d)
6155 }
6156 z.DecReadMapEnd()
6157 } else if yyct2 == codecSelferValueTypeArray19780 {
6158 yyl2 := z.DecReadArrayStart()
6159 if yyl2 != 0 {
6160 x.codecDecodeSelfFromArray(yyl2, d)
6161 }
6162 z.DecReadArrayEnd()
6163 } else {
6164 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
6165 }
6166 }
6167
6168 func (x *TestStruc) codecDecodeSelfFromMap(l int, d *Decoder) {
6169 var h codecSelfer19780
6170 z, r := GenHelper().Decoder(d)
6171 _, _, _ = h, z, r
6172 var yyhl3 bool = l >= 0
6173 for yyj3 := 0; ; yyj3++ {
6174 if yyhl3 {
6175 if yyj3 >= l {
6176 break
6177 }
6178 } else {
6179 if z.DecCheckBreak() {
6180 break
6181 }
6182 }
6183 z.DecReadMapElemKey()
6184 yys3 := r.DecodeStringAsBytes()
6185 z.DecReadMapElemValue()
6186 switch string(yys3) {
6187 case "S":
6188 x.TestStrucCommon.S = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
6189 case "I64":
6190 x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
6191 case "I32":
6192 x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
6193 case "I16":
6194 x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
6195 case "I8":
6196 x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
6197 case "I64n":
6198 x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
6199 case "I32n":
6200 x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
6201 case "I16n":
6202 x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
6203 case "I8n":
6204 x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
6205 case "Ui64":
6206 x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
6207 case "Ui32":
6208 x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
6209 case "Ui16":
6210 x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
6211 case "Ui8":
6212 x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
6213 case "F64":
6214 x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
6215 case "F32":
6216 x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
6217 case "B":
6218 x.TestStrucCommon.B = (bool)(r.DecodeBool())
6219 case "By":
6220 x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
6221 case "Sslice":
6222 z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
6223 case "I64slice":
6224 z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
6225 case "I32slice":
6226 z.F.DecSliceInt32X(&x.TestStrucCommon.I32slice, d)
6227 case "Ui64slice":
6228 z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
6229 case "Ui8slice":
6230 x.TestStrucCommon.Ui8slice = z.DecodeBytesInto(([]byte)(x.TestStrucCommon.Ui8slice))
6231 case "Bslice":
6232 z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
6233 case "Byslice":
6234 x.TestStrucCommon.Byslice = z.DecodeBytesInto(([]byte)(x.TestStrucCommon.Byslice))
6235 case "BytesSlice":
6236 z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
6237 case "Iptrslice":
6238 h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
6239 case "WrapSliceInt64":
6240 if yyxt40 := z.Extension(x.TestStrucCommon.WrapSliceInt64); yyxt40 != nil {
6241 z.DecExtension(&x.TestStrucCommon.WrapSliceInt64, yyxt40)
6242 } else {
6243 x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
6244 }
6245 case "WrapSliceString":
6246 if yyxt42 := z.Extension(x.TestStrucCommon.WrapSliceString); yyxt42 != nil {
6247 z.DecExtension(&x.TestStrucCommon.WrapSliceString, yyxt42)
6248 } else {
6249 x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
6250 }
6251 case "Msint":
6252 z.F.DecMapStringIntX(&x.TestStrucCommon.Msint, d)
6253 case "Msbytes":
6254 z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
6255 case "Simplef":
6256 if yyxt48 := z.Extension(x.TestStrucCommon.Simplef); yyxt48 != nil {
6257 z.DecExtension(&x.TestStrucCommon.Simplef, yyxt48)
6258 } else {
6259 x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
6260 }
6261 case "SstrUi64T":
6262 h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
6263 case "MstrUi64T":
6264 h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.TestStrucCommon.MstrUi64T), d)
6265 case "AS":
6266 x.TestStrucCommon.AnonInTestStruc.AS = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
6267 case "AI64":
6268 x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
6269 case "AI16":
6270 x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
6271 case "AUi64":
6272 x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
6273 case "ASslice":
6274 z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
6275 case "AI64slice":
6276 z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
6277 case "AUi64slice":
6278 z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
6279 case "AF64slice":
6280 z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
6281 case "AF32slice":
6282 z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
6283 case "AMSS":
6284 z.F.DecMapStringStringX(&x.TestStrucCommon.AnonInTestStruc.AMSS, d)
6285 case "AMSU64":
6286 z.F.DecMapStringUint64X(&x.TestStrucCommon.AnonInTestStruc.AMSU64, d)
6287 case "AI64arr8":
6288 h.decArray8int64((*[8]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr8), d)
6289 case "AI64arr0":
6290 h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
6291 case "AI64slice0":
6292 z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice0, d)
6293 case "AUi64sliceN":
6294 z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
6295 case "AMSU64N":
6296 z.F.DecMapStringUint64X(&x.TestStrucCommon.AnonInTestStruc.AMSU64N, d)
6297 case "AMSU64E":
6298 z.F.DecMapStringUint64X(&x.TestStrucCommon.AnonInTestStruc.AMSU64E, d)
6299 case "NotAnon":
6300 if yyxt84 := z.Extension(x.TestStrucCommon.NotAnon); yyxt84 != nil {
6301 z.DecExtension(&x.TestStrucCommon.NotAnon, yyxt84)
6302 } else {
6303 x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
6304 }
6305 case "P":
6306 if r.TryNil() {
6307 if x.TestStrucCommon.AnonInTestStrucSlim != nil && x.TestStrucCommon.AnonInTestStrucSlim.P != nil { // remove the if-true
6308 x.TestStrucCommon.AnonInTestStrucSlim.P = nil
6309 }
6310 } else {
6311 if x.TestStrucCommon.AnonInTestStrucSlim == nil {
6312 x.TestStrucCommon.AnonInTestStrucSlim = new(AnonInTestStrucSlim)
6313 }
6314 if x.TestStrucCommon.AnonInTestStrucSlim.P == nil {
6315 x.TestStrucCommon.AnonInTestStrucSlim.P = new(string)
6316 }
6317 *x.TestStrucCommon.AnonInTestStrucSlim.P = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
6318 }
6319 case "NotAnonSlim":
6320 if r.TryNil() {
6321 if x.TestStrucCommon.NotAnonSlim != nil { // remove the if-true
6322 x.TestStrucCommon.NotAnonSlim = nil
6323 }
6324 } else {
6325 if x.TestStrucCommon.NotAnonSlim == nil {
6326 x.TestStrucCommon.NotAnonSlim = new(AnonInTestStrucSlim)
6327 }
6328 if yyxt88 := z.Extension(x.TestStrucCommon.NotAnonSlim); yyxt88 != nil {
6329 z.DecExtension(x.TestStrucCommon.NotAnonSlim, yyxt88)
6330 } else {
6331 x.TestStrucCommon.NotAnonSlim.CodecDecodeSelf(d)
6332 }
6333 }
6334 case "Nmap":
6335 z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
6336 case "Nslice":
6337 x.TestStrucCommon.Nslice = z.DecodeBytesInto(([]byte)(x.TestStrucCommon.Nslice))
6338 case "Nint64":
6339 if r.TryNil() {
6340 if x.TestStrucCommon.Nint64 != nil { // remove the if-true
6341 x.TestStrucCommon.Nint64 = nil
6342 }
6343 } else {
6344 if x.TestStrucCommon.Nint64 == nil {
6345 x.TestStrucCommon.Nint64 = new(int64)
6346 }
6347 *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
6348 }
6349 case "Mtsptr":
6350 h.decMapstringPtrtoTestStruc((*map[string]*TestStruc)(&x.Mtsptr), d)
6351 case "Mts":
6352 h.decMapstringTestStruc((*map[string]TestStruc)(&x.Mts), d)
6353 case "Its":
6354 h.decSlicePtrtoTestStruc((*[]*TestStruc)(&x.Its), d)
6355 case "Nteststruc":
6356 if r.TryNil() {
6357 if x.Nteststruc != nil { // remove the if-true
6358 x.Nteststruc = nil
6359 }
6360 } else {
6361 if x.Nteststruc == nil {
6362 x.Nteststruc = new(TestStruc)
6363 }
6364 if yyxt102 := z.Extension(x.Nteststruc); yyxt102 != nil {
6365 z.DecExtension(x.Nteststruc, yyxt102)
6366 } else {
6367 x.Nteststruc.CodecDecodeSelf(d)
6368 }
6369 }
6370 default:
6371 z.DecStructFieldNotFound(-1, string(yys3))
6372 } // end switch yys3
6373 } // end for yyj3
6374 }
6375
6376 func (x *TestStruc) codecDecodeSelfFromArray(l int, d *Decoder) {
6377 var h codecSelfer19780
6378 z, r := GenHelper().Decoder(d)
6379 _, _, _ = h, z, r
6380 var yyj103 int
6381 var yyb103 bool
6382 var yyhl103 bool = l >= 0
6383 yyj103++
6384 if yyhl103 {
6385 yyb103 = yyj103 > l
6386 } else {
6387 yyb103 = z.DecCheckBreak()
6388 }
6389 if yyb103 {
6390 z.DecReadArrayEnd()
6391 return
6392 }
6393 z.DecReadArrayElem()
6394 x.TestStrucCommon.S = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
6395 yyj103++
6396 if yyhl103 {
6397 yyb103 = yyj103 > l
6398 } else {
6399 yyb103 = z.DecCheckBreak()
6400 }
6401 if yyb103 {
6402 z.DecReadArrayEnd()
6403 return
6404 }
6405 z.DecReadArrayElem()
6406 x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
6407 yyj103++
6408 if yyhl103 {
6409 yyb103 = yyj103 > l
6410 } else {
6411 yyb103 = z.DecCheckBreak()
6412 }
6413 if yyb103 {
6414 z.DecReadArrayEnd()
6415 return
6416 }
6417 z.DecReadArrayElem()
6418 x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
6419 yyj103++
6420 if yyhl103 {
6421 yyb103 = yyj103 > l
6422 } else {
6423 yyb103 = z.DecCheckBreak()
6424 }
6425 if yyb103 {
6426 z.DecReadArrayEnd()
6427 return
6428 }
6429 z.DecReadArrayElem()
6430 x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
6431 yyj103++
6432 if yyhl103 {
6433 yyb103 = yyj103 > l
6434 } else {
6435 yyb103 = z.DecCheckBreak()
6436 }
6437 if yyb103 {
6438 z.DecReadArrayEnd()
6439 return
6440 }
6441 z.DecReadArrayElem()
6442 x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
6443 yyj103++
6444 if yyhl103 {
6445 yyb103 = yyj103 > l
6446 } else {
6447 yyb103 = z.DecCheckBreak()
6448 }
6449 if yyb103 {
6450 z.DecReadArrayEnd()
6451 return
6452 }
6453 z.DecReadArrayElem()
6454 x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
6455 yyj103++
6456 if yyhl103 {
6457 yyb103 = yyj103 > l
6458 } else {
6459 yyb103 = z.DecCheckBreak()
6460 }
6461 if yyb103 {
6462 z.DecReadArrayEnd()
6463 return
6464 }
6465 z.DecReadArrayElem()
6466 x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
6467 yyj103++
6468 if yyhl103 {
6469 yyb103 = yyj103 > l
6470 } else {
6471 yyb103 = z.DecCheckBreak()
6472 }
6473 if yyb103 {
6474 z.DecReadArrayEnd()
6475 return
6476 }
6477 z.DecReadArrayElem()
6478 x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
6479 yyj103++
6480 if yyhl103 {
6481 yyb103 = yyj103 > l
6482 } else {
6483 yyb103 = z.DecCheckBreak()
6484 }
6485 if yyb103 {
6486 z.DecReadArrayEnd()
6487 return
6488 }
6489 z.DecReadArrayElem()
6490 x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
6491 yyj103++
6492 if yyhl103 {
6493 yyb103 = yyj103 > l
6494 } else {
6495 yyb103 = z.DecCheckBreak()
6496 }
6497 if yyb103 {
6498 z.DecReadArrayEnd()
6499 return
6500 }
6501 z.DecReadArrayElem()
6502 x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
6503 yyj103++
6504 if yyhl103 {
6505 yyb103 = yyj103 > l
6506 } else {
6507 yyb103 = z.DecCheckBreak()
6508 }
6509 if yyb103 {
6510 z.DecReadArrayEnd()
6511 return
6512 }
6513 z.DecReadArrayElem()
6514 x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
6515 yyj103++
6516 if yyhl103 {
6517 yyb103 = yyj103 > l
6518 } else {
6519 yyb103 = z.DecCheckBreak()
6520 }
6521 if yyb103 {
6522 z.DecReadArrayEnd()
6523 return
6524 }
6525 z.DecReadArrayElem()
6526 x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
6527 yyj103++
6528 if yyhl103 {
6529 yyb103 = yyj103 > l
6530 } else {
6531 yyb103 = z.DecCheckBreak()
6532 }
6533 if yyb103 {
6534 z.DecReadArrayEnd()
6535 return
6536 }
6537 z.DecReadArrayElem()
6538 x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
6539 yyj103++
6540 if yyhl103 {
6541 yyb103 = yyj103 > l
6542 } else {
6543 yyb103 = z.DecCheckBreak()
6544 }
6545 if yyb103 {
6546 z.DecReadArrayEnd()
6547 return
6548 }
6549 z.DecReadArrayElem()
6550 x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
6551 yyj103++
6552 if yyhl103 {
6553 yyb103 = yyj103 > l
6554 } else {
6555 yyb103 = z.DecCheckBreak()
6556 }
6557 if yyb103 {
6558 z.DecReadArrayEnd()
6559 return
6560 }
6561 z.DecReadArrayElem()
6562 x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
6563 yyj103++
6564 if yyhl103 {
6565 yyb103 = yyj103 > l
6566 } else {
6567 yyb103 = z.DecCheckBreak()
6568 }
6569 if yyb103 {
6570 z.DecReadArrayEnd()
6571 return
6572 }
6573 z.DecReadArrayElem()
6574 x.TestStrucCommon.B = (bool)(r.DecodeBool())
6575 yyj103++
6576 if yyhl103 {
6577 yyb103 = yyj103 > l
6578 } else {
6579 yyb103 = z.DecCheckBreak()
6580 }
6581 if yyb103 {
6582 z.DecReadArrayEnd()
6583 return
6584 }
6585 z.DecReadArrayElem()
6586 x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
6587 yyj103++
6588 if yyhl103 {
6589 yyb103 = yyj103 > l
6590 } else {
6591 yyb103 = z.DecCheckBreak()
6592 }
6593 if yyb103 {
6594 z.DecReadArrayEnd()
6595 return
6596 }
6597 z.DecReadArrayElem()
6598 z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
6599 yyj103++
6600 if yyhl103 {
6601 yyb103 = yyj103 > l
6602 } else {
6603 yyb103 = z.DecCheckBreak()
6604 }
6605 if yyb103 {
6606 z.DecReadArrayEnd()
6607 return
6608 }
6609 z.DecReadArrayElem()
6610 z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
6611 yyj103++
6612 if yyhl103 {
6613 yyb103 = yyj103 > l
6614 } else {
6615 yyb103 = z.DecCheckBreak()
6616 }
6617 if yyb103 {
6618 z.DecReadArrayEnd()
6619 return
6620 }
6621 z.DecReadArrayElem()
6622 z.F.DecSliceInt32X(&x.TestStrucCommon.I32slice, d)
6623 yyj103++
6624 if yyhl103 {
6625 yyb103 = yyj103 > l
6626 } else {
6627 yyb103 = z.DecCheckBreak()
6628 }
6629 if yyb103 {
6630 z.DecReadArrayEnd()
6631 return
6632 }
6633 z.DecReadArrayElem()
6634 z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
6635 yyj103++
6636 if yyhl103 {
6637 yyb103 = yyj103 > l
6638 } else {
6639 yyb103 = z.DecCheckBreak()
6640 }
6641 if yyb103 {
6642 z.DecReadArrayEnd()
6643 return
6644 }
6645 z.DecReadArrayElem()
6646 x.TestStrucCommon.Ui8slice = z.DecodeBytesInto(([]byte)(x.TestStrucCommon.Ui8slice))
6647 yyj103++
6648 if yyhl103 {
6649 yyb103 = yyj103 > l
6650 } else {
6651 yyb103 = z.DecCheckBreak()
6652 }
6653 if yyb103 {
6654 z.DecReadArrayEnd()
6655 return
6656 }
6657 z.DecReadArrayElem()
6658 z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
6659 yyj103++
6660 if yyhl103 {
6661 yyb103 = yyj103 > l
6662 } else {
6663 yyb103 = z.DecCheckBreak()
6664 }
6665 if yyb103 {
6666 z.DecReadArrayEnd()
6667 return
6668 }
6669 z.DecReadArrayElem()
6670 x.TestStrucCommon.Byslice = z.DecodeBytesInto(([]byte)(x.TestStrucCommon.Byslice))
6671 yyj103++
6672 if yyhl103 {
6673 yyb103 = yyj103 > l
6674 } else {
6675 yyb103 = z.DecCheckBreak()
6676 }
6677 if yyb103 {
6678 z.DecReadArrayEnd()
6679 return
6680 }
6681 z.DecReadArrayElem()
6682 z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
6683 yyj103++
6684 if yyhl103 {
6685 yyb103 = yyj103 > l
6686 } else {
6687 yyb103 = z.DecCheckBreak()
6688 }
6689 if yyb103 {
6690 z.DecReadArrayEnd()
6691 return
6692 }
6693 z.DecReadArrayElem()
6694 h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
6695 yyj103++
6696 if yyhl103 {
6697 yyb103 = yyj103 > l
6698 } else {
6699 yyb103 = z.DecCheckBreak()
6700 }
6701 if yyb103 {
6702 z.DecReadArrayEnd()
6703 return
6704 }
6705 z.DecReadArrayElem()
6706 if yyxt140 := z.Extension(x.TestStrucCommon.WrapSliceInt64); yyxt140 != nil {
6707 z.DecExtension(&x.TestStrucCommon.WrapSliceInt64, yyxt140)
6708 } else {
6709 x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
6710 }
6711 yyj103++
6712 if yyhl103 {
6713 yyb103 = yyj103 > l
6714 } else {
6715 yyb103 = z.DecCheckBreak()
6716 }
6717 if yyb103 {
6718 z.DecReadArrayEnd()
6719 return
6720 }
6721 z.DecReadArrayElem()
6722 if yyxt142 := z.Extension(x.TestStrucCommon.WrapSliceString); yyxt142 != nil {
6723 z.DecExtension(&x.TestStrucCommon.WrapSliceString, yyxt142)
6724 } else {
6725 x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
6726 }
6727 yyj103++
6728 if yyhl103 {
6729 yyb103 = yyj103 > l
6730 } else {
6731 yyb103 = z.DecCheckBreak()
6732 }
6733 if yyb103 {
6734 z.DecReadArrayEnd()
6735 return
6736 }
6737 z.DecReadArrayElem()
6738 z.F.DecMapStringIntX(&x.TestStrucCommon.Msint, d)
6739 yyj103++
6740 if yyhl103 {
6741 yyb103 = yyj103 > l
6742 } else {
6743 yyb103 = z.DecCheckBreak()
6744 }
6745 if yyb103 {
6746 z.DecReadArrayEnd()
6747 return
6748 }
6749 z.DecReadArrayElem()
6750 z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
6751 yyj103++
6752 if yyhl103 {
6753 yyb103 = yyj103 > l
6754 } else {
6755 yyb103 = z.DecCheckBreak()
6756 }
6757 if yyb103 {
6758 z.DecReadArrayEnd()
6759 return
6760 }
6761 z.DecReadArrayElem()
6762 if yyxt148 := z.Extension(x.TestStrucCommon.Simplef); yyxt148 != nil {
6763 z.DecExtension(&x.TestStrucCommon.Simplef, yyxt148)
6764 } else {
6765 x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
6766 }
6767 yyj103++
6768 if yyhl103 {
6769 yyb103 = yyj103 > l
6770 } else {
6771 yyb103 = z.DecCheckBreak()
6772 }
6773 if yyb103 {
6774 z.DecReadArrayEnd()
6775 return
6776 }
6777 z.DecReadArrayElem()
6778 h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
6779 yyj103++
6780 if yyhl103 {
6781 yyb103 = yyj103 > l
6782 } else {
6783 yyb103 = z.DecCheckBreak()
6784 }
6785 if yyb103 {
6786 z.DecReadArrayEnd()
6787 return
6788 }
6789 z.DecReadArrayElem()
6790 h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.TestStrucCommon.MstrUi64T), d)
6791 yyj103++
6792 if yyhl103 {
6793 yyb103 = yyj103 > l
6794 } else {
6795 yyb103 = z.DecCheckBreak()
6796 }
6797 if yyb103 {
6798 z.DecReadArrayEnd()
6799 return
6800 }
6801 z.DecReadArrayElem()
6802 x.TestStrucCommon.AnonInTestStruc.AS = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
6803 yyj103++
6804 if yyhl103 {
6805 yyb103 = yyj103 > l
6806 } else {
6807 yyb103 = z.DecCheckBreak()
6808 }
6809 if yyb103 {
6810 z.DecReadArrayEnd()
6811 return
6812 }
6813 z.DecReadArrayElem()
6814 x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
6815 yyj103++
6816 if yyhl103 {
6817 yyb103 = yyj103 > l
6818 } else {
6819 yyb103 = z.DecCheckBreak()
6820 }
6821 if yyb103 {
6822 z.DecReadArrayEnd()
6823 return
6824 }
6825 z.DecReadArrayElem()
6826 x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
6827 yyj103++
6828 if yyhl103 {
6829 yyb103 = yyj103 > l
6830 } else {
6831 yyb103 = z.DecCheckBreak()
6832 }
6833 if yyb103 {
6834 z.DecReadArrayEnd()
6835 return
6836 }
6837 z.DecReadArrayElem()
6838 x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
6839 yyj103++
6840 if yyhl103 {
6841 yyb103 = yyj103 > l
6842 } else {
6843 yyb103 = z.DecCheckBreak()
6844 }
6845 if yyb103 {
6846 z.DecReadArrayEnd()
6847 return
6848 }
6849 z.DecReadArrayElem()
6850 z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
6851 yyj103++
6852 if yyhl103 {
6853 yyb103 = yyj103 > l
6854 } else {
6855 yyb103 = z.DecCheckBreak()
6856 }
6857 if yyb103 {
6858 z.DecReadArrayEnd()
6859 return
6860 }
6861 z.DecReadArrayElem()
6862 z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
6863 yyj103++
6864 if yyhl103 {
6865 yyb103 = yyj103 > l
6866 } else {
6867 yyb103 = z.DecCheckBreak()
6868 }
6869 if yyb103 {
6870 z.DecReadArrayEnd()
6871 return
6872 }
6873 z.DecReadArrayElem()
6874 z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
6875 yyj103++
6876 if yyhl103 {
6877 yyb103 = yyj103 > l
6878 } else {
6879 yyb103 = z.DecCheckBreak()
6880 }
6881 if yyb103 {
6882 z.DecReadArrayEnd()
6883 return
6884 }
6885 z.DecReadArrayElem()
6886 z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
6887 yyj103++
6888 if yyhl103 {
6889 yyb103 = yyj103 > l
6890 } else {
6891 yyb103 = z.DecCheckBreak()
6892 }
6893 if yyb103 {
6894 z.DecReadArrayEnd()
6895 return
6896 }
6897 z.DecReadArrayElem()
6898 z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
6899 yyj103++
6900 if yyhl103 {
6901 yyb103 = yyj103 > l
6902 } else {
6903 yyb103 = z.DecCheckBreak()
6904 }
6905 if yyb103 {
6906 z.DecReadArrayEnd()
6907 return
6908 }
6909 z.DecReadArrayElem()
6910 z.F.DecMapStringStringX(&x.TestStrucCommon.AnonInTestStruc.AMSS, d)
6911 yyj103++
6912 if yyhl103 {
6913 yyb103 = yyj103 > l
6914 } else {
6915 yyb103 = z.DecCheckBreak()
6916 }
6917 if yyb103 {
6918 z.DecReadArrayEnd()
6919 return
6920 }
6921 z.DecReadArrayElem()
6922 z.F.DecMapStringUint64X(&x.TestStrucCommon.AnonInTestStruc.AMSU64, d)
6923 yyj103++
6924 if yyhl103 {
6925 yyb103 = yyj103 > l
6926 } else {
6927 yyb103 = z.DecCheckBreak()
6928 }
6929 if yyb103 {
6930 z.DecReadArrayEnd()
6931 return
6932 }
6933 z.DecReadArrayElem()
6934 h.decArray8int64((*[8]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr8), d)
6935 yyj103++
6936 if yyhl103 {
6937 yyb103 = yyj103 > l
6938 } else {
6939 yyb103 = z.DecCheckBreak()
6940 }
6941 if yyb103 {
6942 z.DecReadArrayEnd()
6943 return
6944 }
6945 z.DecReadArrayElem()
6946 h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
6947 yyj103++
6948 if yyhl103 {
6949 yyb103 = yyj103 > l
6950 } else {
6951 yyb103 = z.DecCheckBreak()
6952 }
6953 if yyb103 {
6954 z.DecReadArrayEnd()
6955 return
6956 }
6957 z.DecReadArrayElem()
6958 z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice0, d)
6959 yyj103++
6960 if yyhl103 {
6961 yyb103 = yyj103 > l
6962 } else {
6963 yyb103 = z.DecCheckBreak()
6964 }
6965 if yyb103 {
6966 z.DecReadArrayEnd()
6967 return
6968 }
6969 z.DecReadArrayElem()
6970 z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
6971 yyj103++
6972 if yyhl103 {
6973 yyb103 = yyj103 > l
6974 } else {
6975 yyb103 = z.DecCheckBreak()
6976 }
6977 if yyb103 {
6978 z.DecReadArrayEnd()
6979 return
6980 }
6981 z.DecReadArrayElem()
6982 z.F.DecMapStringUint64X(&x.TestStrucCommon.AnonInTestStruc.AMSU64N, d)
6983 yyj103++
6984 if yyhl103 {
6985 yyb103 = yyj103 > l
6986 } else {
6987 yyb103 = z.DecCheckBreak()
6988 }
6989 if yyb103 {
6990 z.DecReadArrayEnd()
6991 return
6992 }
6993 z.DecReadArrayElem()
6994 z.F.DecMapStringUint64X(&x.TestStrucCommon.AnonInTestStruc.AMSU64E, d)
6995 yyj103++
6996 if yyhl103 {
6997 yyb103 = yyj103 > l
6998 } else {
6999 yyb103 = z.DecCheckBreak()
7000 }
7001 if yyb103 {
7002 z.DecReadArrayEnd()
7003 return
7004 }
7005 z.DecReadArrayElem()
7006 if yyxt184 := z.Extension(x.TestStrucCommon.NotAnon); yyxt184 != nil {
7007 z.DecExtension(&x.TestStrucCommon.NotAnon, yyxt184)
7008 } else {
7009 x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
7010 }
7011 yyj103++
7012 if yyhl103 {
7013 yyb103 = yyj103 > l
7014 } else {
7015 yyb103 = z.DecCheckBreak()
7016 }
7017 if yyb103 {
7018 z.DecReadArrayEnd()
7019 return
7020 }
7021 z.DecReadArrayElem()
7022 if r.TryNil() {
7023 if x.TestStrucCommon.AnonInTestStrucSlim != nil && x.TestStrucCommon.AnonInTestStrucSlim.P != nil { // remove the if-true
7024 x.TestStrucCommon.AnonInTestStrucSlim.P = nil
7025 }
7026 } else {
7027 if x.TestStrucCommon.AnonInTestStrucSlim == nil {
7028 x.TestStrucCommon.AnonInTestStrucSlim = new(AnonInTestStrucSlim)
7029 }
7030 if x.TestStrucCommon.AnonInTestStrucSlim.P == nil {
7031 x.TestStrucCommon.AnonInTestStrucSlim.P = new(string)
7032 }
7033 *x.TestStrucCommon.AnonInTestStrucSlim.P = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
7034 }
7035 yyj103++
7036 if yyhl103 {
7037 yyb103 = yyj103 > l
7038 } else {
7039 yyb103 = z.DecCheckBreak()
7040 }
7041 if yyb103 {
7042 z.DecReadArrayEnd()
7043 return
7044 }
7045 z.DecReadArrayElem()
7046 if r.TryNil() {
7047 if x.TestStrucCommon.NotAnonSlim != nil { // remove the if-true
7048 x.TestStrucCommon.NotAnonSlim = nil
7049 }
7050 } else {
7051 if x.TestStrucCommon.NotAnonSlim == nil {
7052 x.TestStrucCommon.NotAnonSlim = new(AnonInTestStrucSlim)
7053 }
7054 if yyxt188 := z.Extension(x.TestStrucCommon.NotAnonSlim); yyxt188 != nil {
7055 z.DecExtension(x.TestStrucCommon.NotAnonSlim, yyxt188)
7056 } else {
7057 x.TestStrucCommon.NotAnonSlim.CodecDecodeSelf(d)
7058 }
7059 }
7060 yyj103++
7061 if yyhl103 {
7062 yyb103 = yyj103 > l
7063 } else {
7064 yyb103 = z.DecCheckBreak()
7065 }
7066 if yyb103 {
7067 z.DecReadArrayEnd()
7068 return
7069 }
7070 z.DecReadArrayElem()
7071 z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
7072 yyj103++
7073 if yyhl103 {
7074 yyb103 = yyj103 > l
7075 } else {
7076 yyb103 = z.DecCheckBreak()
7077 }
7078 if yyb103 {
7079 z.DecReadArrayEnd()
7080 return
7081 }
7082 z.DecReadArrayElem()
7083 x.TestStrucCommon.Nslice = z.DecodeBytesInto(([]byte)(x.TestStrucCommon.Nslice))
7084 yyj103++
7085 if yyhl103 {
7086 yyb103 = yyj103 > l
7087 } else {
7088 yyb103 = z.DecCheckBreak()
7089 }
7090 if yyb103 {
7091 z.DecReadArrayEnd()
7092 return
7093 }
7094 z.DecReadArrayElem()
7095 if r.TryNil() {
7096 if x.TestStrucCommon.Nint64 != nil { // remove the if-true
7097 x.TestStrucCommon.Nint64 = nil
7098 }
7099 } else {
7100 if x.TestStrucCommon.Nint64 == nil {
7101 x.TestStrucCommon.Nint64 = new(int64)
7102 }
7103 *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
7104 }
7105 yyj103++
7106 if yyhl103 {
7107 yyb103 = yyj103 > l
7108 } else {
7109 yyb103 = z.DecCheckBreak()
7110 }
7111 if yyb103 {
7112 z.DecReadArrayEnd()
7113 return
7114 }
7115 z.DecReadArrayElem()
7116 h.decMapstringPtrtoTestStruc((*map[string]*TestStruc)(&x.Mtsptr), d)
7117 yyj103++
7118 if yyhl103 {
7119 yyb103 = yyj103 > l
7120 } else {
7121 yyb103 = z.DecCheckBreak()
7122 }
7123 if yyb103 {
7124 z.DecReadArrayEnd()
7125 return
7126 }
7127 z.DecReadArrayElem()
7128 h.decMapstringTestStruc((*map[string]TestStruc)(&x.Mts), d)
7129 yyj103++
7130 if yyhl103 {
7131 yyb103 = yyj103 > l
7132 } else {
7133 yyb103 = z.DecCheckBreak()
7134 }
7135 if yyb103 {
7136 z.DecReadArrayEnd()
7137 return
7138 }
7139 z.DecReadArrayElem()
7140 h.decSlicePtrtoTestStruc((*[]*TestStruc)(&x.Its), d)
7141 yyj103++
7142 if yyhl103 {
7143 yyb103 = yyj103 > l
7144 } else {
7145 yyb103 = z.DecCheckBreak()
7146 }
7147 if yyb103 {
7148 z.DecReadArrayEnd()
7149 return
7150 }
7151 z.DecReadArrayElem()
7152 if r.TryNil() {
7153 if x.Nteststruc != nil { // remove the if-true
7154 x.Nteststruc = nil
7155 }
7156 } else {
7157 if x.Nteststruc == nil {
7158 x.Nteststruc = new(TestStruc)
7159 }
7160 if yyxt202 := z.Extension(x.Nteststruc); yyxt202 != nil {
7161 z.DecExtension(x.Nteststruc, yyxt202)
7162 } else {
7163 x.Nteststruc.CodecDecodeSelf(d)
7164 }
7165 }
7166 for {
7167 yyj103++
7168 if yyhl103 {
7169 yyb103 = yyj103 > l
7170 } else {
7171 yyb103 = z.DecCheckBreak()
7172 }
7173 if yyb103 {
7174 break
7175 }
7176 z.DecReadArrayElem()
7177 z.DecStructFieldNotFound(yyj103-1, "")
7178 }
7179 }
7180
7181 func (x *TestStruc) IsCodecEmpty() bool {
7182 return !(!(x.TestStrucCommon.IsCodecEmpty()) || len(x.Mtsptr) != 0 || len(x.Mts) != 0 || len(x.Its) != 0 || false)
7183 }
7184
7185 func (codecgenA) codecSelferViaCodecgen() {}
7186 func (x *codecgenA) CodecEncodeSelf(e *Encoder) {
7187 var h codecSelfer19780
7188 z, r := GenHelper().Encoder(e)
7189 _, _, _ = h, z, r
7190 if z.EncBasicHandle().CheckCircularRef {
7191 z.EncEncode(x)
7192 return
7193 }
7194 if x == nil {
7195 r.EncodeNil()
7196 } else {
7197 yy2arr2 := z.EncBasicHandle().StructToArray
7198 _ = yy2arr2
7199 const yyr2 bool = false // struct tag has 'toArray'
7200 if yyr2 || yy2arr2 {
7201 z.EncWriteArrayStart(1)
7202 z.EncWriteArrayElem()
7203 if x.ZZ == nil {
7204 r.EncodeNil()
7205 } else {
7206 r.EncodeStringBytesRaw([]byte(x.ZZ))
7207 } // end block: if x.ZZ slice == nil
7208 z.EncWriteArrayEnd()
7209 } else {
7210 z.EncWriteMapStart(1)
7211 if z.EncBasicHandle().Canonical {
7212 z.EncWriteMapElemKey()
7213 if z.IsJSONHandle() {
7214 z.WriteStr("\"ZZ\"")
7215 } else {
7216 r.EncodeString(`ZZ`)
7217 }
7218 z.EncWriteMapElemValue()
7219 if x.ZZ == nil {
7220 r.EncodeNil()
7221 } else {
7222 r.EncodeStringBytesRaw([]byte(x.ZZ))
7223 } // end block: if x.ZZ slice == nil
7224 } else {
7225 z.EncWriteMapElemKey()
7226 if z.IsJSONHandle() {
7227 z.WriteStr("\"ZZ\"")
7228 } else {
7229 r.EncodeString(`ZZ`)
7230 }
7231 z.EncWriteMapElemValue()
7232 if x.ZZ == nil {
7233 r.EncodeNil()
7234 } else {
7235 r.EncodeStringBytesRaw([]byte(x.ZZ))
7236 } // end block: if x.ZZ slice == nil
7237 }
7238 z.EncWriteMapEnd()
7239 }
7240 }
7241 }
7242
7243 func (x *codecgenA) CodecDecodeSelf(d *Decoder) {
7244 var h codecSelfer19780
7245 z, r := GenHelper().Decoder(d)
7246 _, _, _ = h, z, r
7247 yyct2 := r.ContainerType()
7248 if yyct2 == codecSelferValueTypeNil19780 {
7249 *(x) = codecgenA{}
7250 } else if yyct2 == codecSelferValueTypeMap19780 {
7251 yyl2 := z.DecReadMapStart()
7252 if yyl2 == 0 {
7253 } else {
7254 x.codecDecodeSelfFromMap(yyl2, d)
7255 }
7256 z.DecReadMapEnd()
7257 } else if yyct2 == codecSelferValueTypeArray19780 {
7258 yyl2 := z.DecReadArrayStart()
7259 if yyl2 != 0 {
7260 x.codecDecodeSelfFromArray(yyl2, d)
7261 }
7262 z.DecReadArrayEnd()
7263 } else {
7264 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
7265 }
7266 }
7267
7268 func (x *codecgenA) codecDecodeSelfFromMap(l int, d *Decoder) {
7269 var h codecSelfer19780
7270 z, r := GenHelper().Decoder(d)
7271 _, _, _ = h, z, r
7272 var yyhl3 bool = l >= 0
7273 for yyj3 := 0; ; yyj3++ {
7274 if yyhl3 {
7275 if yyj3 >= l {
7276 break
7277 }
7278 } else {
7279 if z.DecCheckBreak() {
7280 break
7281 }
7282 }
7283 z.DecReadMapElemKey()
7284 yys3 := r.DecodeStringAsBytes()
7285 z.DecReadMapElemValue()
7286 switch string(yys3) {
7287 case "ZZ":
7288 x.ZZ = z.DecodeBytesInto(([]byte)(x.ZZ))
7289 default:
7290 z.DecStructFieldNotFound(-1, string(yys3))
7291 } // end switch yys3
7292 } // end for yyj3
7293 }
7294
7295 func (x *codecgenA) codecDecodeSelfFromArray(l int, d *Decoder) {
7296 var h codecSelfer19780
7297 z, r := GenHelper().Decoder(d)
7298 _, _, _ = h, z, r
7299 var yyj6 int
7300 var yyb6 bool
7301 var yyhl6 bool = l >= 0
7302 yyj6++
7303 if yyhl6 {
7304 yyb6 = yyj6 > l
7305 } else {
7306 yyb6 = z.DecCheckBreak()
7307 }
7308 if yyb6 {
7309 z.DecReadArrayEnd()
7310 return
7311 }
7312 z.DecReadArrayElem()
7313 x.ZZ = z.DecodeBytesInto(([]byte)(x.ZZ))
7314 for {
7315 yyj6++
7316 if yyhl6 {
7317 yyb6 = yyj6 > l
7318 } else {
7319 yyb6 = z.DecCheckBreak()
7320 }
7321 if yyb6 {
7322 break
7323 }
7324 z.DecReadArrayElem()
7325 z.DecStructFieldNotFound(yyj6-1, "")
7326 }
7327 }
7328
7329 func (x *codecgenA) IsCodecEmpty() bool {
7330 return !(len(x.ZZ) != 0 || false)
7331 }
7332
7333 func (codecgenB) codecSelferViaCodecgen() {}
7334 func (x *codecgenB) CodecEncodeSelf(e *Encoder) {
7335 var h codecSelfer19780
7336 z, r := GenHelper().Encoder(e)
7337 _, _, _ = h, z, r
7338 if z.EncBasicHandle().CheckCircularRef {
7339 z.EncEncode(x)
7340 return
7341 }
7342 if x == nil {
7343 r.EncodeNil()
7344 } else {
7345 yy2arr2 := z.EncBasicHandle().StructToArray
7346 _ = yy2arr2
7347 const yyr2 bool = false // struct tag has 'toArray'
7348 if yyr2 || yy2arr2 {
7349 z.EncWriteArrayStart(1)
7350 z.EncWriteArrayElem()
7351 yy4 := &x.AA
7352 if yyxt5 := z.Extension(yy4); yyxt5 != nil {
7353 z.EncExtension(yy4, yyxt5)
7354 } else {
7355 yy4.CodecEncodeSelf(e)
7356 }
7357 z.EncWriteArrayEnd()
7358 } else {
7359 z.EncWriteMapStart(1)
7360 if z.EncBasicHandle().Canonical {
7361 z.EncWriteMapElemKey()
7362 if z.IsJSONHandle() {
7363 z.WriteStr("\"AA\"")
7364 } else {
7365 r.EncodeString(`AA`)
7366 }
7367 z.EncWriteMapElemValue()
7368 yy6 := &x.AA
7369 if yyxt7 := z.Extension(yy6); yyxt7 != nil {
7370 z.EncExtension(yy6, yyxt7)
7371 } else {
7372 yy6.CodecEncodeSelf(e)
7373 }
7374 } else {
7375 z.EncWriteMapElemKey()
7376 if z.IsJSONHandle() {
7377 z.WriteStr("\"AA\"")
7378 } else {
7379 r.EncodeString(`AA`)
7380 }
7381 z.EncWriteMapElemValue()
7382 yy8 := &x.AA
7383 if yyxt9 := z.Extension(yy8); yyxt9 != nil {
7384 z.EncExtension(yy8, yyxt9)
7385 } else {
7386 yy8.CodecEncodeSelf(e)
7387 }
7388 }
7389 z.EncWriteMapEnd()
7390 }
7391 }
7392 }
7393
7394 func (x *codecgenB) CodecDecodeSelf(d *Decoder) {
7395 var h codecSelfer19780
7396 z, r := GenHelper().Decoder(d)
7397 _, _, _ = h, z, r
7398 yyct2 := r.ContainerType()
7399 if yyct2 == codecSelferValueTypeNil19780 {
7400 *(x) = codecgenB{}
7401 } else if yyct2 == codecSelferValueTypeMap19780 {
7402 yyl2 := z.DecReadMapStart()
7403 if yyl2 == 0 {
7404 } else {
7405 x.codecDecodeSelfFromMap(yyl2, d)
7406 }
7407 z.DecReadMapEnd()
7408 } else if yyct2 == codecSelferValueTypeArray19780 {
7409 yyl2 := z.DecReadArrayStart()
7410 if yyl2 != 0 {
7411 x.codecDecodeSelfFromArray(yyl2, d)
7412 }
7413 z.DecReadArrayEnd()
7414 } else {
7415 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
7416 }
7417 }
7418
7419 func (x *codecgenB) codecDecodeSelfFromMap(l int, d *Decoder) {
7420 var h codecSelfer19780
7421 z, r := GenHelper().Decoder(d)
7422 _, _, _ = h, z, r
7423 var yyhl3 bool = l >= 0
7424 for yyj3 := 0; ; yyj3++ {
7425 if yyhl3 {
7426 if yyj3 >= l {
7427 break
7428 }
7429 } else {
7430 if z.DecCheckBreak() {
7431 break
7432 }
7433 }
7434 z.DecReadMapElemKey()
7435 yys3 := r.DecodeStringAsBytes()
7436 z.DecReadMapElemValue()
7437 switch string(yys3) {
7438 case "AA":
7439 if yyxt5 := z.Extension(x.AA); yyxt5 != nil {
7440 z.DecExtension(&x.AA, yyxt5)
7441 } else {
7442 x.AA.CodecDecodeSelf(d)
7443 }
7444 default:
7445 z.DecStructFieldNotFound(-1, string(yys3))
7446 } // end switch yys3
7447 } // end for yyj3
7448 }
7449
7450 func (x *codecgenB) codecDecodeSelfFromArray(l int, d *Decoder) {
7451 var h codecSelfer19780
7452 z, r := GenHelper().Decoder(d)
7453 _, _, _ = h, z, r
7454 var yyj6 int
7455 var yyb6 bool
7456 var yyhl6 bool = l >= 0
7457 yyj6++
7458 if yyhl6 {
7459 yyb6 = yyj6 > l
7460 } else {
7461 yyb6 = z.DecCheckBreak()
7462 }
7463 if yyb6 {
7464 z.DecReadArrayEnd()
7465 return
7466 }
7467 z.DecReadArrayElem()
7468 if yyxt8 := z.Extension(x.AA); yyxt8 != nil {
7469 z.DecExtension(&x.AA, yyxt8)
7470 } else {
7471 x.AA.CodecDecodeSelf(d)
7472 }
7473 for {
7474 yyj6++
7475 if yyhl6 {
7476 yyb6 = yyj6 > l
7477 } else {
7478 yyb6 = z.DecCheckBreak()
7479 }
7480 if yyb6 {
7481 break
7482 }
7483 z.DecReadArrayElem()
7484 z.DecStructFieldNotFound(yyj6-1, "")
7485 }
7486 }
7487
7488 func (x *codecgenB) IsCodecEmpty() bool {
7489 return !(!(x.AA.IsCodecEmpty()) || false)
7490 }
7491
7492 func (codecgenC) codecSelferViaCodecgen() {}
7493 func (x *codecgenC) CodecEncodeSelf(e *Encoder) {
7494 var h codecSelfer19780
7495 z, r := GenHelper().Encoder(e)
7496 _, _, _ = h, z, r
7497 if z.EncBasicHandle().CheckCircularRef {
7498 z.EncEncode(x)
7499 return
7500 }
7501 if x == nil {
7502 r.EncodeNil()
7503 } else {
7504 yy2arr2 := z.EncBasicHandle().StructToArray
7505 _ = yy2arr2
7506 const yyr2 bool = false // struct tag has 'toArray'
7507 var yyq2 = [1]bool{ // should field at this index be written?
7508 !(x.BB.IsCodecEmpty()), // BB
7509 }
7510 _ = yyq2
7511 if yyr2 || yy2arr2 {
7512 z.EncWriteArrayStart(1)
7513 z.EncWriteArrayElem()
7514 if yyq2[0] {
7515 yy4 := &x.BB
7516 if yyxt5 := z.Extension(yy4); yyxt5 != nil {
7517 z.EncExtension(yy4, yyxt5)
7518 } else {
7519 yy4.CodecEncodeSelf(e)
7520 }
7521 } else {
7522 r.EncodeNil()
7523 }
7524 z.EncWriteArrayEnd()
7525 } else {
7526 var yynn2 int
7527 for _, b := range yyq2 {
7528 if b {
7529 yynn2++
7530 }
7531 }
7532 z.EncWriteMapStart(yynn2)
7533 yynn2 = 0
7534 if z.EncBasicHandle().Canonical {
7535 if yyq2[0] {
7536 z.EncWriteMapElemKey()
7537 if z.IsJSONHandle() {
7538 z.WriteStr("\"BB\"")
7539 } else {
7540 r.EncodeString(`BB`)
7541 }
7542 z.EncWriteMapElemValue()
7543 yy6 := &x.BB
7544 if yyxt7 := z.Extension(yy6); yyxt7 != nil {
7545 z.EncExtension(yy6, yyxt7)
7546 } else {
7547 yy6.CodecEncodeSelf(e)
7548 }
7549 }
7550 } else {
7551 if yyq2[0] {
7552 z.EncWriteMapElemKey()
7553 if z.IsJSONHandle() {
7554 z.WriteStr("\"BB\"")
7555 } else {
7556 r.EncodeString(`BB`)
7557 }
7558 z.EncWriteMapElemValue()
7559 yy8 := &x.BB
7560 if yyxt9 := z.Extension(yy8); yyxt9 != nil {
7561 z.EncExtension(yy8, yyxt9)
7562 } else {
7563 yy8.CodecEncodeSelf(e)
7564 }
7565 }
7566 }
7567 z.EncWriteMapEnd()
7568 }
7569 }
7570 }
7571
7572 func (x *codecgenC) CodecDecodeSelf(d *Decoder) {
7573 var h codecSelfer19780
7574 z, r := GenHelper().Decoder(d)
7575 _, _, _ = h, z, r
7576 yyct2 := r.ContainerType()
7577 if yyct2 == codecSelferValueTypeNil19780 {
7578 *(x) = codecgenC{}
7579 } else if yyct2 == codecSelferValueTypeMap19780 {
7580 yyl2 := z.DecReadMapStart()
7581 if yyl2 == 0 {
7582 } else {
7583 x.codecDecodeSelfFromMap(yyl2, d)
7584 }
7585 z.DecReadMapEnd()
7586 } else if yyct2 == codecSelferValueTypeArray19780 {
7587 yyl2 := z.DecReadArrayStart()
7588 if yyl2 != 0 {
7589 x.codecDecodeSelfFromArray(yyl2, d)
7590 }
7591 z.DecReadArrayEnd()
7592 } else {
7593 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
7594 }
7595 }
7596
7597 func (x *codecgenC) codecDecodeSelfFromMap(l int, d *Decoder) {
7598 var h codecSelfer19780
7599 z, r := GenHelper().Decoder(d)
7600 _, _, _ = h, z, r
7601 var yyhl3 bool = l >= 0
7602 for yyj3 := 0; ; yyj3++ {
7603 if yyhl3 {
7604 if yyj3 >= l {
7605 break
7606 }
7607 } else {
7608 if z.DecCheckBreak() {
7609 break
7610 }
7611 }
7612 z.DecReadMapElemKey()
7613 yys3 := r.DecodeStringAsBytes()
7614 z.DecReadMapElemValue()
7615 switch string(yys3) {
7616 case "BB":
7617 if yyxt5 := z.Extension(x.BB); yyxt5 != nil {
7618 z.DecExtension(&x.BB, yyxt5)
7619 } else {
7620 x.BB.CodecDecodeSelf(d)
7621 }
7622 default:
7623 z.DecStructFieldNotFound(-1, string(yys3))
7624 } // end switch yys3
7625 } // end for yyj3
7626 }
7627
7628 func (x *codecgenC) codecDecodeSelfFromArray(l int, d *Decoder) {
7629 var h codecSelfer19780
7630 z, r := GenHelper().Decoder(d)
7631 _, _, _ = h, z, r
7632 var yyj6 int
7633 var yyb6 bool
7634 var yyhl6 bool = l >= 0
7635 yyj6++
7636 if yyhl6 {
7637 yyb6 = yyj6 > l
7638 } else {
7639 yyb6 = z.DecCheckBreak()
7640 }
7641 if yyb6 {
7642 z.DecReadArrayEnd()
7643 return
7644 }
7645 z.DecReadArrayElem()
7646 if yyxt8 := z.Extension(x.BB); yyxt8 != nil {
7647 z.DecExtension(&x.BB, yyxt8)
7648 } else {
7649 x.BB.CodecDecodeSelf(d)
7650 }
7651 for {
7652 yyj6++
7653 if yyhl6 {
7654 yyb6 = yyj6 > l
7655 } else {
7656 yyb6 = z.DecCheckBreak()
7657 }
7658 if yyb6 {
7659 break
7660 }
7661 z.DecReadArrayElem()
7662 z.DecStructFieldNotFound(yyj6-1, "")
7663 }
7664 }
7665
7666 func (x *codecgenC) IsCodecEmpty() bool {
7667 return !(!(x.BB.IsCodecEmpty()) || false)
7668 }
7669
7670 func (TestCodecgenG) codecSelferViaCodecgen() {}
7671 func (x *TestCodecgenG) CodecEncodeSelf(e *Encoder) {
7672 var h codecSelfer19780
7673 z, r := GenHelper().Encoder(e)
7674 _, _, _ = h, z, r
7675 if z.EncBasicHandle().CheckCircularRef {
7676 z.EncEncode(x)
7677 return
7678 }
7679 if x == nil {
7680 r.EncodeNil()
7681 } else {
7682 yy2arr2 := z.EncBasicHandle().StructToArray
7683 _ = yy2arr2
7684 const yyr2 bool = false // struct tag has 'toArray'
7685 if yyr2 || yy2arr2 {
7686 z.EncWriteArrayStart(1)
7687 z.EncWriteArrayElem()
7688 r.EncodeInt(int64(x.TestCodecgenG))
7689 z.EncWriteArrayEnd()
7690 } else {
7691 z.EncWriteMapStart(1)
7692 if z.EncBasicHandle().Canonical {
7693 z.EncWriteMapElemKey()
7694 if z.IsJSONHandle() {
7695 z.WriteStr("\"TestCodecgenG\"")
7696 } else {
7697 r.EncodeString(`TestCodecgenG`)
7698 }
7699 z.EncWriteMapElemValue()
7700 r.EncodeInt(int64(x.TestCodecgenG))
7701 } else {
7702 z.EncWriteMapElemKey()
7703 if z.IsJSONHandle() {
7704 z.WriteStr("\"TestCodecgenG\"")
7705 } else {
7706 r.EncodeString(`TestCodecgenG`)
7707 }
7708 z.EncWriteMapElemValue()
7709 r.EncodeInt(int64(x.TestCodecgenG))
7710 }
7711 z.EncWriteMapEnd()
7712 }
7713 }
7714 }
7715
7716 func (x *TestCodecgenG) CodecDecodeSelf(d *Decoder) {
7717 var h codecSelfer19780
7718 z, r := GenHelper().Decoder(d)
7719 _, _, _ = h, z, r
7720 yyct2 := r.ContainerType()
7721 if yyct2 == codecSelferValueTypeNil19780 {
7722 *(x) = TestCodecgenG{}
7723 } else if yyct2 == codecSelferValueTypeMap19780 {
7724 yyl2 := z.DecReadMapStart()
7725 if yyl2 == 0 {
7726 } else {
7727 x.codecDecodeSelfFromMap(yyl2, d)
7728 }
7729 z.DecReadMapEnd()
7730 } else if yyct2 == codecSelferValueTypeArray19780 {
7731 yyl2 := z.DecReadArrayStart()
7732 if yyl2 != 0 {
7733 x.codecDecodeSelfFromArray(yyl2, d)
7734 }
7735 z.DecReadArrayEnd()
7736 } else {
7737 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
7738 }
7739 }
7740
7741 func (x *TestCodecgenG) codecDecodeSelfFromMap(l int, d *Decoder) {
7742 var h codecSelfer19780
7743 z, r := GenHelper().Decoder(d)
7744 _, _, _ = h, z, r
7745 var yyhl3 bool = l >= 0
7746 for yyj3 := 0; ; yyj3++ {
7747 if yyhl3 {
7748 if yyj3 >= l {
7749 break
7750 }
7751 } else {
7752 if z.DecCheckBreak() {
7753 break
7754 }
7755 }
7756 z.DecReadMapElemKey()
7757 yys3 := r.DecodeStringAsBytes()
7758 z.DecReadMapElemValue()
7759 switch string(yys3) {
7760 case "TestCodecgenG":
7761 x.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
7762 default:
7763 z.DecStructFieldNotFound(-1, string(yys3))
7764 } // end switch yys3
7765 } // end for yyj3
7766 }
7767
7768 func (x *TestCodecgenG) codecDecodeSelfFromArray(l int, d *Decoder) {
7769 var h codecSelfer19780
7770 z, r := GenHelper().Decoder(d)
7771 _, _, _ = h, z, r
7772 var yyj5 int
7773 var yyb5 bool
7774 var yyhl5 bool = l >= 0
7775 yyj5++
7776 if yyhl5 {
7777 yyb5 = yyj5 > l
7778 } else {
7779 yyb5 = z.DecCheckBreak()
7780 }
7781 if yyb5 {
7782 z.DecReadArrayEnd()
7783 return
7784 }
7785 z.DecReadArrayElem()
7786 x.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
7787 for {
7788 yyj5++
7789 if yyhl5 {
7790 yyb5 = yyj5 > l
7791 } else {
7792 yyb5 = z.DecCheckBreak()
7793 }
7794 if yyb5 {
7795 break
7796 }
7797 z.DecReadArrayElem()
7798 z.DecStructFieldNotFound(yyj5-1, "")
7799 }
7800 }
7801
7802 func (x *TestCodecgenG) IsCodecEmpty() bool {
7803 return !(x.TestCodecgenG != 0 || false)
7804 }
7805
7806 func (codecgenH) codecSelferViaCodecgen() {}
7807 func (x *codecgenH) CodecEncodeSelf(e *Encoder) {
7808 var h codecSelfer19780
7809 z, r := GenHelper().Encoder(e)
7810 _, _, _ = h, z, r
7811 if z.EncBasicHandle().CheckCircularRef {
7812 z.EncEncode(x)
7813 return
7814 }
7815 if x == nil {
7816 r.EncodeNil()
7817 } else {
7818 yy2arr2 := z.EncBasicHandle().StructToArray
7819 _ = yy2arr2
7820 const yyr2 bool = false // struct tag has 'toArray'
7821 if yyr2 || yy2arr2 {
7822 z.EncWriteArrayStart(1)
7823 z.EncWriteArrayElem()
7824 r.EncodeInt(int64(x.TestCodecgenG.TestCodecgenG))
7825 z.EncWriteArrayEnd()
7826 } else {
7827 z.EncWriteMapStart(1)
7828 if z.EncBasicHandle().Canonical {
7829 z.EncWriteMapElemKey()
7830 if z.IsJSONHandle() {
7831 z.WriteStr("\"TestCodecgenG\"")
7832 } else {
7833 r.EncodeString(`TestCodecgenG`)
7834 }
7835 z.EncWriteMapElemValue()
7836 r.EncodeInt(int64(x.TestCodecgenG.TestCodecgenG))
7837 } else {
7838 z.EncWriteMapElemKey()
7839 if z.IsJSONHandle() {
7840 z.WriteStr("\"TestCodecgenG\"")
7841 } else {
7842 r.EncodeString(`TestCodecgenG`)
7843 }
7844 z.EncWriteMapElemValue()
7845 r.EncodeInt(int64(x.TestCodecgenG.TestCodecgenG))
7846 }
7847 z.EncWriteMapEnd()
7848 }
7849 }
7850 }
7851
7852 func (x *codecgenH) CodecDecodeSelf(d *Decoder) {
7853 var h codecSelfer19780
7854 z, r := GenHelper().Decoder(d)
7855 _, _, _ = h, z, r
7856 yyct2 := r.ContainerType()
7857 if yyct2 == codecSelferValueTypeNil19780 {
7858 *(x) = codecgenH{}
7859 } else if yyct2 == codecSelferValueTypeMap19780 {
7860 yyl2 := z.DecReadMapStart()
7861 if yyl2 == 0 {
7862 } else {
7863 x.codecDecodeSelfFromMap(yyl2, d)
7864 }
7865 z.DecReadMapEnd()
7866 } else if yyct2 == codecSelferValueTypeArray19780 {
7867 yyl2 := z.DecReadArrayStart()
7868 if yyl2 != 0 {
7869 x.codecDecodeSelfFromArray(yyl2, d)
7870 }
7871 z.DecReadArrayEnd()
7872 } else {
7873 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
7874 }
7875 }
7876
7877 func (x *codecgenH) codecDecodeSelfFromMap(l int, d *Decoder) {
7878 var h codecSelfer19780
7879 z, r := GenHelper().Decoder(d)
7880 _, _, _ = h, z, r
7881 var yyhl3 bool = l >= 0
7882 for yyj3 := 0; ; yyj3++ {
7883 if yyhl3 {
7884 if yyj3 >= l {
7885 break
7886 }
7887 } else {
7888 if z.DecCheckBreak() {
7889 break
7890 }
7891 }
7892 z.DecReadMapElemKey()
7893 yys3 := r.DecodeStringAsBytes()
7894 z.DecReadMapElemValue()
7895 switch string(yys3) {
7896 case "TestCodecgenG":
7897 x.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
7898 default:
7899 z.DecStructFieldNotFound(-1, string(yys3))
7900 } // end switch yys3
7901 } // end for yyj3
7902 }
7903
7904 func (x *codecgenH) codecDecodeSelfFromArray(l int, d *Decoder) {
7905 var h codecSelfer19780
7906 z, r := GenHelper().Decoder(d)
7907 _, _, _ = h, z, r
7908 var yyj5 int
7909 var yyb5 bool
7910 var yyhl5 bool = l >= 0
7911 yyj5++
7912 if yyhl5 {
7913 yyb5 = yyj5 > l
7914 } else {
7915 yyb5 = z.DecCheckBreak()
7916 }
7917 if yyb5 {
7918 z.DecReadArrayEnd()
7919 return
7920 }
7921 z.DecReadArrayElem()
7922 x.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
7923 for {
7924 yyj5++
7925 if yyhl5 {
7926 yyb5 = yyj5 > l
7927 } else {
7928 yyb5 = z.DecCheckBreak()
7929 }
7930 if yyb5 {
7931 break
7932 }
7933 z.DecReadArrayElem()
7934 z.DecStructFieldNotFound(yyj5-1, "")
7935 }
7936 }
7937
7938 func (x *codecgenH) IsCodecEmpty() bool {
7939 return !(!(x.TestCodecgenG.IsCodecEmpty()) || false)
7940 }
7941
7942 func (codecgenI) codecSelferViaCodecgen() {}
7943 func (x *codecgenI) CodecEncodeSelf(e *Encoder) {
7944 var h codecSelfer19780
7945 z, r := GenHelper().Encoder(e)
7946 _, _, _ = h, z, r
7947 if z.EncBasicHandle().CheckCircularRef {
7948 z.EncEncode(x)
7949 return
7950 }
7951 if x == nil {
7952 r.EncodeNil()
7953 } else {
7954 yy2arr2 := z.EncBasicHandle().StructToArray
7955 _ = yy2arr2
7956 const yyr2 bool = false // struct tag has 'toArray'
7957 if yyr2 || yy2arr2 {
7958 z.EncWriteArrayStart(1)
7959 z.EncWriteArrayElem()
7960 r.EncodeInt(int64(x.codecgenH.TestCodecgenG.TestCodecgenG))
7961 z.EncWriteArrayEnd()
7962 } else {
7963 z.EncWriteMapStart(1)
7964 if z.EncBasicHandle().Canonical {
7965 z.EncWriteMapElemKey()
7966 if z.IsJSONHandle() {
7967 z.WriteStr("\"TestCodecgenG\"")
7968 } else {
7969 r.EncodeString(`TestCodecgenG`)
7970 }
7971 z.EncWriteMapElemValue()
7972 r.EncodeInt(int64(x.codecgenH.TestCodecgenG.TestCodecgenG))
7973 } else {
7974 z.EncWriteMapElemKey()
7975 if z.IsJSONHandle() {
7976 z.WriteStr("\"TestCodecgenG\"")
7977 } else {
7978 r.EncodeString(`TestCodecgenG`)
7979 }
7980 z.EncWriteMapElemValue()
7981 r.EncodeInt(int64(x.codecgenH.TestCodecgenG.TestCodecgenG))
7982 }
7983 z.EncWriteMapEnd()
7984 }
7985 }
7986 }
7987
7988 func (x *codecgenI) CodecDecodeSelf(d *Decoder) {
7989 var h codecSelfer19780
7990 z, r := GenHelper().Decoder(d)
7991 _, _, _ = h, z, r
7992 yyct2 := r.ContainerType()
7993 if yyct2 == codecSelferValueTypeNil19780 {
7994 *(x) = codecgenI{}
7995 } else if yyct2 == codecSelferValueTypeMap19780 {
7996 yyl2 := z.DecReadMapStart()
7997 if yyl2 == 0 {
7998 } else {
7999 x.codecDecodeSelfFromMap(yyl2, d)
8000 }
8001 z.DecReadMapEnd()
8002 } else if yyct2 == codecSelferValueTypeArray19780 {
8003 yyl2 := z.DecReadArrayStart()
8004 if yyl2 != 0 {
8005 x.codecDecodeSelfFromArray(yyl2, d)
8006 }
8007 z.DecReadArrayEnd()
8008 } else {
8009 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
8010 }
8011 }
8012
8013 func (x *codecgenI) codecDecodeSelfFromMap(l int, d *Decoder) {
8014 var h codecSelfer19780
8015 z, r := GenHelper().Decoder(d)
8016 _, _, _ = h, z, r
8017 var yyhl3 bool = l >= 0
8018 for yyj3 := 0; ; yyj3++ {
8019 if yyhl3 {
8020 if yyj3 >= l {
8021 break
8022 }
8023 } else {
8024 if z.DecCheckBreak() {
8025 break
8026 }
8027 }
8028 z.DecReadMapElemKey()
8029 yys3 := r.DecodeStringAsBytes()
8030 z.DecReadMapElemValue()
8031 switch string(yys3) {
8032 case "TestCodecgenG":
8033 x.codecgenH.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
8034 default:
8035 z.DecStructFieldNotFound(-1, string(yys3))
8036 } // end switch yys3
8037 } // end for yyj3
8038 }
8039
8040 func (x *codecgenI) codecDecodeSelfFromArray(l int, d *Decoder) {
8041 var h codecSelfer19780
8042 z, r := GenHelper().Decoder(d)
8043 _, _, _ = h, z, r
8044 var yyj5 int
8045 var yyb5 bool
8046 var yyhl5 bool = l >= 0
8047 yyj5++
8048 if yyhl5 {
8049 yyb5 = yyj5 > l
8050 } else {
8051 yyb5 = z.DecCheckBreak()
8052 }
8053 if yyb5 {
8054 z.DecReadArrayEnd()
8055 return
8056 }
8057 z.DecReadArrayElem()
8058 x.codecgenH.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
8059 for {
8060 yyj5++
8061 if yyhl5 {
8062 yyb5 = yyj5 > l
8063 } else {
8064 yyb5 = z.DecCheckBreak()
8065 }
8066 if yyb5 {
8067 break
8068 }
8069 z.DecReadArrayElem()
8070 z.DecStructFieldNotFound(yyj5-1, "")
8071 }
8072 }
8073
8074 func (x *codecgenI) IsCodecEmpty() bool {
8075 return !(!(x.codecgenH.IsCodecEmpty()) || false)
8076 }
8077
8078 func (codecgenK) codecSelferViaCodecgen() {}
8079 func (x *codecgenK) CodecEncodeSelf(e *Encoder) {
8080 var h codecSelfer19780
8081 z, r := GenHelper().Encoder(e)
8082 _, _, _ = h, z, r
8083 if z.EncBasicHandle().CheckCircularRef {
8084 z.EncEncode(x)
8085 return
8086 }
8087 if x == nil {
8088 r.EncodeNil()
8089 } else {
8090 yy2arr2 := z.EncBasicHandle().StructToArray
8091 _ = yy2arr2
8092 const yyr2 bool = false // struct tag has 'toArray'
8093 if yyr2 || yy2arr2 {
8094 z.EncWriteArrayStart(2)
8095 z.EncWriteArrayElem()
8096 r.EncodeInt(int64(x.X))
8097 z.EncWriteArrayElem()
8098 r.EncodeString(string(x.Y))
8099 z.EncWriteArrayEnd()
8100 } else {
8101 z.EncWriteMapStart(2)
8102 if z.EncBasicHandle().Canonical {
8103 z.EncWriteMapElemKey()
8104 if z.IsJSONHandle() {
8105 z.WriteStr("\"X\"")
8106 } else {
8107 r.EncodeString(`X`)
8108 }
8109 z.EncWriteMapElemValue()
8110 r.EncodeInt(int64(x.X))
8111 z.EncWriteMapElemKey()
8112 if z.IsJSONHandle() {
8113 z.WriteStr("\"Y\"")
8114 } else {
8115 r.EncodeString(`Y`)
8116 }
8117 z.EncWriteMapElemValue()
8118 r.EncodeString(string(x.Y))
8119 } else {
8120 z.EncWriteMapElemKey()
8121 if z.IsJSONHandle() {
8122 z.WriteStr("\"X\"")
8123 } else {
8124 r.EncodeString(`X`)
8125 }
8126 z.EncWriteMapElemValue()
8127 r.EncodeInt(int64(x.X))
8128 z.EncWriteMapElemKey()
8129 if z.IsJSONHandle() {
8130 z.WriteStr("\"Y\"")
8131 } else {
8132 r.EncodeString(`Y`)
8133 }
8134 z.EncWriteMapElemValue()
8135 r.EncodeString(string(x.Y))
8136 }
8137 z.EncWriteMapEnd()
8138 }
8139 }
8140 }
8141
8142 func (x *codecgenK) CodecDecodeSelf(d *Decoder) {
8143 var h codecSelfer19780
8144 z, r := GenHelper().Decoder(d)
8145 _, _, _ = h, z, r
8146 yyct2 := r.ContainerType()
8147 if yyct2 == codecSelferValueTypeNil19780 {
8148 *(x) = codecgenK{}
8149 } else if yyct2 == codecSelferValueTypeMap19780 {
8150 yyl2 := z.DecReadMapStart()
8151 if yyl2 == 0 {
8152 } else {
8153 x.codecDecodeSelfFromMap(yyl2, d)
8154 }
8155 z.DecReadMapEnd()
8156 } else if yyct2 == codecSelferValueTypeArray19780 {
8157 yyl2 := z.DecReadArrayStart()
8158 if yyl2 != 0 {
8159 x.codecDecodeSelfFromArray(yyl2, d)
8160 }
8161 z.DecReadArrayEnd()
8162 } else {
8163 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
8164 }
8165 }
8166
8167 func (x *codecgenK) codecDecodeSelfFromMap(l int, d *Decoder) {
8168 var h codecSelfer19780
8169 z, r := GenHelper().Decoder(d)
8170 _, _, _ = h, z, r
8171 var yyhl3 bool = l >= 0
8172 for yyj3 := 0; ; yyj3++ {
8173 if yyhl3 {
8174 if yyj3 >= l {
8175 break
8176 }
8177 } else {
8178 if z.DecCheckBreak() {
8179 break
8180 }
8181 }
8182 z.DecReadMapElemKey()
8183 yys3 := r.DecodeStringAsBytes()
8184 z.DecReadMapElemValue()
8185 switch string(yys3) {
8186 case "X":
8187 x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
8188 case "Y":
8189 x.Y = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
8190 default:
8191 z.DecStructFieldNotFound(-1, string(yys3))
8192 } // end switch yys3
8193 } // end for yyj3
8194 }
8195
8196 func (x *codecgenK) codecDecodeSelfFromArray(l int, d *Decoder) {
8197 var h codecSelfer19780
8198 z, r := GenHelper().Decoder(d)
8199 _, _, _ = h, z, r
8200 var yyj6 int
8201 var yyb6 bool
8202 var yyhl6 bool = l >= 0
8203 yyj6++
8204 if yyhl6 {
8205 yyb6 = yyj6 > l
8206 } else {
8207 yyb6 = z.DecCheckBreak()
8208 }
8209 if yyb6 {
8210 z.DecReadArrayEnd()
8211 return
8212 }
8213 z.DecReadArrayElem()
8214 x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
8215 yyj6++
8216 if yyhl6 {
8217 yyb6 = yyj6 > l
8218 } else {
8219 yyb6 = z.DecCheckBreak()
8220 }
8221 if yyb6 {
8222 z.DecReadArrayEnd()
8223 return
8224 }
8225 z.DecReadArrayElem()
8226 x.Y = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
8227 for {
8228 yyj6++
8229 if yyhl6 {
8230 yyb6 = yyj6 > l
8231 } else {
8232 yyb6 = z.DecCheckBreak()
8233 }
8234 if yyb6 {
8235 break
8236 }
8237 z.DecReadArrayElem()
8238 z.DecStructFieldNotFound(yyj6-1, "")
8239 }
8240 }
8241
8242 func (x *codecgenK) IsCodecEmpty() bool {
8243 return !(x.X != 0 || x.Y != "" || false)
8244 }
8245
8246 func (codecgenL) codecSelferViaCodecgen() {}
8247 func (x *codecgenL) CodecEncodeSelf(e *Encoder) {
8248 var h codecSelfer19780
8249 z, r := GenHelper().Encoder(e)
8250 _, _, _ = h, z, r
8251 if z.EncBasicHandle().CheckCircularRef {
8252 z.EncEncode(x)
8253 return
8254 }
8255 if x == nil {
8256 r.EncodeNil()
8257 } else {
8258 yy2arr2 := z.EncBasicHandle().StructToArray
8259 _ = yy2arr2
8260 const yyr2 bool = false // struct tag has 'toArray'
8261 if yyr2 || yy2arr2 {
8262 z.EncWriteArrayStart(2)
8263 z.EncWriteArrayElem()
8264 r.EncodeInt(int64(x.X))
8265 z.EncWriteArrayElem()
8266 r.EncodeUint(uint64(x.Y))
8267 z.EncWriteArrayEnd()
8268 } else {
8269 z.EncWriteMapStart(2)
8270 if z.EncBasicHandle().Canonical {
8271 z.EncWriteMapElemKey()
8272 if z.IsJSONHandle() {
8273 z.WriteStr("\"X\"")
8274 } else {
8275 r.EncodeString(`X`)
8276 }
8277 z.EncWriteMapElemValue()
8278 r.EncodeInt(int64(x.X))
8279 z.EncWriteMapElemKey()
8280 if z.IsJSONHandle() {
8281 z.WriteStr("\"Y\"")
8282 } else {
8283 r.EncodeString(`Y`)
8284 }
8285 z.EncWriteMapElemValue()
8286 r.EncodeUint(uint64(x.Y))
8287 } else {
8288 z.EncWriteMapElemKey()
8289 if z.IsJSONHandle() {
8290 z.WriteStr("\"X\"")
8291 } else {
8292 r.EncodeString(`X`)
8293 }
8294 z.EncWriteMapElemValue()
8295 r.EncodeInt(int64(x.X))
8296 z.EncWriteMapElemKey()
8297 if z.IsJSONHandle() {
8298 z.WriteStr("\"Y\"")
8299 } else {
8300 r.EncodeString(`Y`)
8301 }
8302 z.EncWriteMapElemValue()
8303 r.EncodeUint(uint64(x.Y))
8304 }
8305 z.EncWriteMapEnd()
8306 }
8307 }
8308 }
8309
8310 func (x *codecgenL) CodecDecodeSelf(d *Decoder) {
8311 var h codecSelfer19780
8312 z, r := GenHelper().Decoder(d)
8313 _, _, _ = h, z, r
8314 yyct2 := r.ContainerType()
8315 if yyct2 == codecSelferValueTypeNil19780 {
8316 *(x) = codecgenL{}
8317 } else if yyct2 == codecSelferValueTypeMap19780 {
8318 yyl2 := z.DecReadMapStart()
8319 if yyl2 == 0 {
8320 } else {
8321 x.codecDecodeSelfFromMap(yyl2, d)
8322 }
8323 z.DecReadMapEnd()
8324 } else if yyct2 == codecSelferValueTypeArray19780 {
8325 yyl2 := z.DecReadArrayStart()
8326 if yyl2 != 0 {
8327 x.codecDecodeSelfFromArray(yyl2, d)
8328 }
8329 z.DecReadArrayEnd()
8330 } else {
8331 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
8332 }
8333 }
8334
8335 func (x *codecgenL) codecDecodeSelfFromMap(l int, d *Decoder) {
8336 var h codecSelfer19780
8337 z, r := GenHelper().Decoder(d)
8338 _, _, _ = h, z, r
8339 var yyhl3 bool = l >= 0
8340 for yyj3 := 0; ; yyj3++ {
8341 if yyhl3 {
8342 if yyj3 >= l {
8343 break
8344 }
8345 } else {
8346 if z.DecCheckBreak() {
8347 break
8348 }
8349 }
8350 z.DecReadMapElemKey()
8351 yys3 := r.DecodeStringAsBytes()
8352 z.DecReadMapElemValue()
8353 switch string(yys3) {
8354 case "X":
8355 x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
8356 case "Y":
8357 x.Y = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
8358 default:
8359 z.DecStructFieldNotFound(-1, string(yys3))
8360 } // end switch yys3
8361 } // end for yyj3
8362 }
8363
8364 func (x *codecgenL) codecDecodeSelfFromArray(l int, d *Decoder) {
8365 var h codecSelfer19780
8366 z, r := GenHelper().Decoder(d)
8367 _, _, _ = h, z, r
8368 var yyj6 int
8369 var yyb6 bool
8370 var yyhl6 bool = l >= 0
8371 yyj6++
8372 if yyhl6 {
8373 yyb6 = yyj6 > l
8374 } else {
8375 yyb6 = z.DecCheckBreak()
8376 }
8377 if yyb6 {
8378 z.DecReadArrayEnd()
8379 return
8380 }
8381 z.DecReadArrayElem()
8382 x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
8383 yyj6++
8384 if yyhl6 {
8385 yyb6 = yyj6 > l
8386 } else {
8387 yyb6 = z.DecCheckBreak()
8388 }
8389 if yyb6 {
8390 z.DecReadArrayEnd()
8391 return
8392 }
8393 z.DecReadArrayElem()
8394 x.Y = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
8395 for {
8396 yyj6++
8397 if yyhl6 {
8398 yyb6 = yyj6 > l
8399 } else {
8400 yyb6 = z.DecCheckBreak()
8401 }
8402 if yyb6 {
8403 break
8404 }
8405 z.DecReadArrayElem()
8406 z.DecStructFieldNotFound(yyj6-1, "")
8407 }
8408 }
8409
8410 func (x *codecgenL) IsCodecEmpty() bool {
8411 return !(x.X != 0 || x.Y != 0 || false)
8412 }
8413
8414 func (codecgenM) codecSelferViaCodecgen() {}
8415 func (x *codecgenM) CodecEncodeSelf(e *Encoder) {
8416 var h codecSelfer19780
8417 z, r := GenHelper().Encoder(e)
8418 _, _, _ = h, z, r
8419 if z.EncBasicHandle().CheckCircularRef {
8420 z.EncEncode(x)
8421 return
8422 }
8423 if x == nil {
8424 r.EncodeNil()
8425 } else {
8426 yy2arr2 := z.EncBasicHandle().StructToArray
8427 _ = yy2arr2
8428 const yyr2 bool = false // struct tag has 'toArray'
8429 if yyr2 || yy2arr2 {
8430 z.EncWriteArrayStart(2)
8431 z.EncWriteArrayElem()
8432 r.EncodeInt(int64(x.codecgenK.X))
8433 z.EncWriteArrayElem()
8434 r.EncodeString(string(x.codecgenK.Y))
8435 z.EncWriteArrayEnd()
8436 } else {
8437 z.EncWriteMapStart(2)
8438 if z.EncBasicHandle().Canonical {
8439 z.EncWriteMapElemKey()
8440 if z.IsJSONHandle() {
8441 z.WriteStr("\"X\"")
8442 } else {
8443 r.EncodeString(`X`)
8444 }
8445 z.EncWriteMapElemValue()
8446 r.EncodeInt(int64(x.codecgenK.X))
8447 z.EncWriteMapElemKey()
8448 if z.IsJSONHandle() {
8449 z.WriteStr("\"Y\"")
8450 } else {
8451 r.EncodeString(`Y`)
8452 }
8453 z.EncWriteMapElemValue()
8454 r.EncodeString(string(x.codecgenK.Y))
8455 } else {
8456 z.EncWriteMapElemKey()
8457 if z.IsJSONHandle() {
8458 z.WriteStr("\"X\"")
8459 } else {
8460 r.EncodeString(`X`)
8461 }
8462 z.EncWriteMapElemValue()
8463 r.EncodeInt(int64(x.codecgenK.X))
8464 z.EncWriteMapElemKey()
8465 if z.IsJSONHandle() {
8466 z.WriteStr("\"Y\"")
8467 } else {
8468 r.EncodeString(`Y`)
8469 }
8470 z.EncWriteMapElemValue()
8471 r.EncodeString(string(x.codecgenK.Y))
8472 }
8473 z.EncWriteMapEnd()
8474 }
8475 }
8476 }
8477
8478 func (x *codecgenM) CodecDecodeSelf(d *Decoder) {
8479 var h codecSelfer19780
8480 z, r := GenHelper().Decoder(d)
8481 _, _, _ = h, z, r
8482 yyct2 := r.ContainerType()
8483 if yyct2 == codecSelferValueTypeNil19780 {
8484 *(x) = codecgenM{}
8485 } else if yyct2 == codecSelferValueTypeMap19780 {
8486 yyl2 := z.DecReadMapStart()
8487 if yyl2 == 0 {
8488 } else {
8489 x.codecDecodeSelfFromMap(yyl2, d)
8490 }
8491 z.DecReadMapEnd()
8492 } else if yyct2 == codecSelferValueTypeArray19780 {
8493 yyl2 := z.DecReadArrayStart()
8494 if yyl2 != 0 {
8495 x.codecDecodeSelfFromArray(yyl2, d)
8496 }
8497 z.DecReadArrayEnd()
8498 } else {
8499 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
8500 }
8501 }
8502
8503 func (x *codecgenM) codecDecodeSelfFromMap(l int, d *Decoder) {
8504 var h codecSelfer19780
8505 z, r := GenHelper().Decoder(d)
8506 _, _, _ = h, z, r
8507 var yyhl3 bool = l >= 0
8508 for yyj3 := 0; ; yyj3++ {
8509 if yyhl3 {
8510 if yyj3 >= l {
8511 break
8512 }
8513 } else {
8514 if z.DecCheckBreak() {
8515 break
8516 }
8517 }
8518 z.DecReadMapElemKey()
8519 yys3 := r.DecodeStringAsBytes()
8520 z.DecReadMapElemValue()
8521 switch string(yys3) {
8522 case "X":
8523 x.codecgenK.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
8524 case "Y":
8525 x.codecgenK.Y = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
8526 default:
8527 z.DecStructFieldNotFound(-1, string(yys3))
8528 } // end switch yys3
8529 } // end for yyj3
8530 }
8531
8532 func (x *codecgenM) codecDecodeSelfFromArray(l int, d *Decoder) {
8533 var h codecSelfer19780
8534 z, r := GenHelper().Decoder(d)
8535 _, _, _ = h, z, r
8536 var yyj6 int
8537 var yyb6 bool
8538 var yyhl6 bool = l >= 0
8539 yyj6++
8540 if yyhl6 {
8541 yyb6 = yyj6 > l
8542 } else {
8543 yyb6 = z.DecCheckBreak()
8544 }
8545 if yyb6 {
8546 z.DecReadArrayEnd()
8547 return
8548 }
8549 z.DecReadArrayElem()
8550 x.codecgenK.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
8551 yyj6++
8552 if yyhl6 {
8553 yyb6 = yyj6 > l
8554 } else {
8555 yyb6 = z.DecCheckBreak()
8556 }
8557 if yyb6 {
8558 z.DecReadArrayEnd()
8559 return
8560 }
8561 z.DecReadArrayElem()
8562 x.codecgenK.Y = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
8563 for {
8564 yyj6++
8565 if yyhl6 {
8566 yyb6 = yyj6 > l
8567 } else {
8568 yyb6 = z.DecCheckBreak()
8569 }
8570 if yyb6 {
8571 break
8572 }
8573 z.DecReadArrayElem()
8574 z.DecStructFieldNotFound(yyj6-1, "")
8575 }
8576 }
8577
8578 func (x *codecgenM) IsCodecEmpty() bool {
8579 return !(!(x.codecgenK.IsCodecEmpty()) || false)
8580 }
8581
8582 func (testStrucKeyTypeT0) codecSelferViaCodecgen() {}
8583 func (x *testStrucKeyTypeT0) CodecEncodeSelf(e *Encoder) {
8584 var h codecSelfer19780
8585 z, r := GenHelper().Encoder(e)
8586 _, _, _ = h, z, r
8587 if z.EncBasicHandle().CheckCircularRef {
8588 z.EncEncode(x)
8589 return
8590 }
8591 if x == nil {
8592 r.EncodeNil()
8593 } else {
8594 yy2arr2 := z.EncBasicHandle().StructToArray
8595 _ = yy2arr2
8596 const yyr2 bool = false // struct tag has 'toArray'
8597 if yyr2 || yy2arr2 {
8598 z.EncWriteArrayStart(1)
8599 z.EncWriteArrayElem()
8600 r.EncodeInt(int64(x.F))
8601 z.EncWriteArrayEnd()
8602 } else {
8603 z.EncWriteMapStart(1)
8604 if z.EncBasicHandle().Canonical {
8605 z.EncWriteMapElemKey()
8606 if z.IsJSONHandle() {
8607 z.WriteStr("\"F\"")
8608 } else {
8609 r.EncodeString(`F`)
8610 }
8611 z.EncWriteMapElemValue()
8612 r.EncodeInt(int64(x.F))
8613 } else {
8614 z.EncWriteMapElemKey()
8615 if z.IsJSONHandle() {
8616 z.WriteStr("\"F\"")
8617 } else {
8618 r.EncodeString(`F`)
8619 }
8620 z.EncWriteMapElemValue()
8621 r.EncodeInt(int64(x.F))
8622 }
8623 z.EncWriteMapEnd()
8624 }
8625 }
8626 }
8627
8628 func (x *testStrucKeyTypeT0) CodecDecodeSelf(d *Decoder) {
8629 var h codecSelfer19780
8630 z, r := GenHelper().Decoder(d)
8631 _, _, _ = h, z, r
8632 yyct2 := r.ContainerType()
8633 if yyct2 == codecSelferValueTypeNil19780 {
8634 *(x) = testStrucKeyTypeT0{}
8635 } else if yyct2 == codecSelferValueTypeMap19780 {
8636 yyl2 := z.DecReadMapStart()
8637 if yyl2 == 0 {
8638 } else {
8639 x.codecDecodeSelfFromMap(yyl2, d)
8640 }
8641 z.DecReadMapEnd()
8642 } else if yyct2 == codecSelferValueTypeArray19780 {
8643 yyl2 := z.DecReadArrayStart()
8644 if yyl2 != 0 {
8645 x.codecDecodeSelfFromArray(yyl2, d)
8646 }
8647 z.DecReadArrayEnd()
8648 } else {
8649 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
8650 }
8651 }
8652
8653 func (x *testStrucKeyTypeT0) codecDecodeSelfFromMap(l int, d *Decoder) {
8654 var h codecSelfer19780
8655 z, r := GenHelper().Decoder(d)
8656 _, _, _ = h, z, r
8657 var yyhl3 bool = l >= 0
8658 for yyj3 := 0; ; yyj3++ {
8659 if yyhl3 {
8660 if yyj3 >= l {
8661 break
8662 }
8663 } else {
8664 if z.DecCheckBreak() {
8665 break
8666 }
8667 }
8668 z.DecReadMapElemKey()
8669 yys3 := r.DecodeStringAsBytes()
8670 z.DecReadMapElemValue()
8671 switch string(yys3) {
8672 case "F":
8673 x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
8674 default:
8675 z.DecStructFieldNotFound(-1, string(yys3))
8676 } // end switch yys3
8677 } // end for yyj3
8678 }
8679
8680 func (x *testStrucKeyTypeT0) codecDecodeSelfFromArray(l int, d *Decoder) {
8681 var h codecSelfer19780
8682 z, r := GenHelper().Decoder(d)
8683 _, _, _ = h, z, r
8684 var yyj5 int
8685 var yyb5 bool
8686 var yyhl5 bool = l >= 0
8687 yyj5++
8688 if yyhl5 {
8689 yyb5 = yyj5 > l
8690 } else {
8691 yyb5 = z.DecCheckBreak()
8692 }
8693 if yyb5 {
8694 z.DecReadArrayEnd()
8695 return
8696 }
8697 z.DecReadArrayElem()
8698 x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
8699 for {
8700 yyj5++
8701 if yyhl5 {
8702 yyb5 = yyj5 > l
8703 } else {
8704 yyb5 = z.DecCheckBreak()
8705 }
8706 if yyb5 {
8707 break
8708 }
8709 z.DecReadArrayElem()
8710 z.DecStructFieldNotFound(yyj5-1, "")
8711 }
8712 }
8713
8714 func (x *testStrucKeyTypeT0) IsCodecEmpty() bool {
8715 return !(x.F != 0 || false)
8716 }
8717
8718 func (testStrucKeyTypeT1) codecSelferViaCodecgen() {}
8719 func (x *testStrucKeyTypeT1) CodecEncodeSelf(e *Encoder) {
8720 var h codecSelfer19780
8721 z, r := GenHelper().Encoder(e)
8722 _, _, _ = h, z, r
8723 if z.EncBasicHandle().CheckCircularRef {
8724 z.EncEncode(x)
8725 return
8726 }
8727 if x == nil {
8728 r.EncodeNil()
8729 } else {
8730 yy2arr2 := z.EncBasicHandle().StructToArray
8731 _ = yy2arr2
8732 const yyr2 bool = false // struct tag has 'toArray'
8733 if yyr2 || yy2arr2 {
8734 z.EncWriteArrayStart(1)
8735 z.EncWriteArrayElem()
8736 r.EncodeInt(int64(x.F))
8737 z.EncWriteArrayEnd()
8738 } else {
8739 z.EncWriteMapStart(1)
8740 if z.EncBasicHandle().Canonical {
8741 z.EncWriteMapElemKey()
8742 if z.IsJSONHandle() {
8743 z.WriteStr("\"FFFF\"")
8744 } else {
8745 r.EncodeString(`FFFF`)
8746 }
8747 z.EncWriteMapElemValue()
8748 r.EncodeInt(int64(x.F))
8749 } else {
8750 z.EncWriteMapElemKey()
8751 if z.IsJSONHandle() {
8752 z.WriteStr("\"FFFF\"")
8753 } else {
8754 r.EncodeString(`FFFF`)
8755 }
8756 z.EncWriteMapElemValue()
8757 r.EncodeInt(int64(x.F))
8758 }
8759 z.EncWriteMapEnd()
8760 }
8761 }
8762 }
8763
8764 func (x *testStrucKeyTypeT1) CodecDecodeSelf(d *Decoder) {
8765 var h codecSelfer19780
8766 z, r := GenHelper().Decoder(d)
8767 _, _, _ = h, z, r
8768 yyct2 := r.ContainerType()
8769 if yyct2 == codecSelferValueTypeNil19780 {
8770 *(x) = testStrucKeyTypeT1{}
8771 } else if yyct2 == codecSelferValueTypeMap19780 {
8772 yyl2 := z.DecReadMapStart()
8773 if yyl2 == 0 {
8774 } else {
8775 x.codecDecodeSelfFromMap(yyl2, d)
8776 }
8777 z.DecReadMapEnd()
8778 } else if yyct2 == codecSelferValueTypeArray19780 {
8779 yyl2 := z.DecReadArrayStart()
8780 if yyl2 != 0 {
8781 x.codecDecodeSelfFromArray(yyl2, d)
8782 }
8783 z.DecReadArrayEnd()
8784 } else {
8785 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
8786 }
8787 }
8788
8789 func (x *testStrucKeyTypeT1) codecDecodeSelfFromMap(l int, d *Decoder) {
8790 var h codecSelfer19780
8791 z, r := GenHelper().Decoder(d)
8792 _, _, _ = h, z, r
8793 var yyhl3 bool = l >= 0
8794 for yyj3 := 0; ; yyj3++ {
8795 if yyhl3 {
8796 if yyj3 >= l {
8797 break
8798 }
8799 } else {
8800 if z.DecCheckBreak() {
8801 break
8802 }
8803 }
8804 z.DecReadMapElemKey()
8805 yys3 := r.DecodeStringAsBytes()
8806 z.DecReadMapElemValue()
8807 switch string(yys3) {
8808 case "FFFF":
8809 x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
8810 default:
8811 z.DecStructFieldNotFound(-1, string(yys3))
8812 } // end switch yys3
8813 } // end for yyj3
8814 }
8815
8816 func (x *testStrucKeyTypeT1) codecDecodeSelfFromArray(l int, d *Decoder) {
8817 var h codecSelfer19780
8818 z, r := GenHelper().Decoder(d)
8819 _, _, _ = h, z, r
8820 var yyj5 int
8821 var yyb5 bool
8822 var yyhl5 bool = l >= 0
8823 yyj5++
8824 if yyhl5 {
8825 yyb5 = yyj5 > l
8826 } else {
8827 yyb5 = z.DecCheckBreak()
8828 }
8829 if yyb5 {
8830 z.DecReadArrayEnd()
8831 return
8832 }
8833 z.DecReadArrayElem()
8834 x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
8835 for {
8836 yyj5++
8837 if yyhl5 {
8838 yyb5 = yyj5 > l
8839 } else {
8840 yyb5 = z.DecCheckBreak()
8841 }
8842 if yyb5 {
8843 break
8844 }
8845 z.DecReadArrayElem()
8846 z.DecStructFieldNotFound(yyj5-1, "")
8847 }
8848 }
8849
8850 func (x *testStrucKeyTypeT1) IsCodecEmpty() bool {
8851 return !(x.F != 0 || false)
8852 }
8853
8854 func (testStrucKeyTypeT2) codecSelferViaCodecgen() {}
8855 func (x *testStrucKeyTypeT2) CodecEncodeSelf(e *Encoder) {
8856 var h codecSelfer19780
8857 z, r := GenHelper().Encoder(e)
8858 _, _, _ = h, z, r
8859 if z.EncBasicHandle().CheckCircularRef {
8860 z.EncEncode(x)
8861 return
8862 }
8863 if x == nil {
8864 r.EncodeNil()
8865 } else {
8866 yy2arr2 := z.EncBasicHandle().StructToArray
8867 _ = yy2arr2
8868 const yyr2 bool = false // struct tag has 'toArray'
8869 if yyr2 || yy2arr2 {
8870 z.EncWriteArrayStart(1)
8871 z.EncWriteArrayElem()
8872 r.EncodeInt(int64(x.F))
8873 z.EncWriteArrayEnd()
8874 } else {
8875 z.EncWriteMapStart(1)
8876 if z.EncBasicHandle().Canonical {
8877 z.EncWriteMapElemKey()
8878 r.EncodeInt(z.M.Int(strconv.ParseInt(`-1`, 10, 64)))
8879 z.EncWriteMapElemValue()
8880 r.EncodeInt(int64(x.F))
8881 } else {
8882 z.EncWriteMapElemKey()
8883 r.EncodeInt(z.M.Int(strconv.ParseInt(`-1`, 10, 64)))
8884 z.EncWriteMapElemValue()
8885 r.EncodeInt(int64(x.F))
8886 }
8887 z.EncWriteMapEnd()
8888 }
8889 }
8890 }
8891
8892 func (x *testStrucKeyTypeT2) CodecDecodeSelf(d *Decoder) {
8893 var h codecSelfer19780
8894 z, r := GenHelper().Decoder(d)
8895 _, _, _ = h, z, r
8896 yyct2 := r.ContainerType()
8897 if yyct2 == codecSelferValueTypeNil19780 {
8898 *(x) = testStrucKeyTypeT2{}
8899 } else if yyct2 == codecSelferValueTypeMap19780 {
8900 yyl2 := z.DecReadMapStart()
8901 if yyl2 == 0 {
8902 } else {
8903 x.codecDecodeSelfFromMap(yyl2, d)
8904 }
8905 z.DecReadMapEnd()
8906 } else if yyct2 == codecSelferValueTypeArray19780 {
8907 yyl2 := z.DecReadArrayStart()
8908 if yyl2 != 0 {
8909 x.codecDecodeSelfFromArray(yyl2, d)
8910 }
8911 z.DecReadArrayEnd()
8912 } else {
8913 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
8914 }
8915 }
8916
8917 func (x *testStrucKeyTypeT2) codecDecodeSelfFromMap(l int, d *Decoder) {
8918 var h codecSelfer19780
8919 z, r := GenHelper().Decoder(d)
8920 _, _, _ = h, z, r
8921 var yyhl3 bool = l >= 0
8922 for yyj3 := 0; ; yyj3++ {
8923 if yyhl3 {
8924 if yyj3 >= l {
8925 break
8926 }
8927 } else {
8928 if z.DecCheckBreak() {
8929 break
8930 }
8931 }
8932 z.DecReadMapElemKey()
8933 yys3 := strconv.AppendInt(z.DecScratchArrayBuffer()[:0], r.DecodeInt64(), 10)
8934 z.DecReadMapElemValue()
8935 switch string(yys3) {
8936 case "-1":
8937 x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
8938 default:
8939 z.DecStructFieldNotFound(-1, string(yys3))
8940 } // end switch yys3
8941 } // end for yyj3
8942 }
8943
8944 func (x *testStrucKeyTypeT2) codecDecodeSelfFromArray(l int, d *Decoder) {
8945 var h codecSelfer19780
8946 z, r := GenHelper().Decoder(d)
8947 _, _, _ = h, z, r
8948 var yyj5 int
8949 var yyb5 bool
8950 var yyhl5 bool = l >= 0
8951 yyj5++
8952 if yyhl5 {
8953 yyb5 = yyj5 > l
8954 } else {
8955 yyb5 = z.DecCheckBreak()
8956 }
8957 if yyb5 {
8958 z.DecReadArrayEnd()
8959 return
8960 }
8961 z.DecReadArrayElem()
8962 x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
8963 for {
8964 yyj5++
8965 if yyhl5 {
8966 yyb5 = yyj5 > l
8967 } else {
8968 yyb5 = z.DecCheckBreak()
8969 }
8970 if yyb5 {
8971 break
8972 }
8973 z.DecReadArrayElem()
8974 z.DecStructFieldNotFound(yyj5-1, "")
8975 }
8976 }
8977
8978 func (x *testStrucKeyTypeT2) IsCodecEmpty() bool {
8979 return !(x.F != 0 || false)
8980 }
8981
8982 func (testStrucKeyTypeT3) codecSelferViaCodecgen() {}
8983 func (x *testStrucKeyTypeT3) CodecEncodeSelf(e *Encoder) {
8984 var h codecSelfer19780
8985 z, r := GenHelper().Encoder(e)
8986 _, _, _ = h, z, r
8987 if z.EncBasicHandle().CheckCircularRef {
8988 z.EncEncode(x)
8989 return
8990 }
8991 if x == nil {
8992 r.EncodeNil()
8993 } else {
8994 yy2arr2 := z.EncBasicHandle().StructToArray
8995 _ = yy2arr2
8996 const yyr2 bool = false // struct tag has 'toArray'
8997 if yyr2 || yy2arr2 {
8998 z.EncWriteArrayStart(1)
8999 z.EncWriteArrayElem()
9000 r.EncodeInt(int64(x.F))
9001 z.EncWriteArrayEnd()
9002 } else {
9003 z.EncWriteMapStart(1)
9004 if z.EncBasicHandle().Canonical {
9005 z.EncWriteMapElemKey()
9006 r.EncodeUint(z.M.Uint(strconv.ParseUint(`1`, 10, 64)))
9007 z.EncWriteMapElemValue()
9008 r.EncodeInt(int64(x.F))
9009 } else {
9010 z.EncWriteMapElemKey()
9011 r.EncodeUint(z.M.Uint(strconv.ParseUint(`1`, 10, 64)))
9012 z.EncWriteMapElemValue()
9013 r.EncodeInt(int64(x.F))
9014 }
9015 z.EncWriteMapEnd()
9016 }
9017 }
9018 }
9019
9020 func (x *testStrucKeyTypeT3) CodecDecodeSelf(d *Decoder) {
9021 var h codecSelfer19780
9022 z, r := GenHelper().Decoder(d)
9023 _, _, _ = h, z, r
9024 yyct2 := r.ContainerType()
9025 if yyct2 == codecSelferValueTypeNil19780 {
9026 *(x) = testStrucKeyTypeT3{}
9027 } else if yyct2 == codecSelferValueTypeMap19780 {
9028 yyl2 := z.DecReadMapStart()
9029 if yyl2 == 0 {
9030 } else {
9031 x.codecDecodeSelfFromMap(yyl2, d)
9032 }
9033 z.DecReadMapEnd()
9034 } else if yyct2 == codecSelferValueTypeArray19780 {
9035 yyl2 := z.DecReadArrayStart()
9036 if yyl2 != 0 {
9037 x.codecDecodeSelfFromArray(yyl2, d)
9038 }
9039 z.DecReadArrayEnd()
9040 } else {
9041 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
9042 }
9043 }
9044
9045 func (x *testStrucKeyTypeT3) codecDecodeSelfFromMap(l int, d *Decoder) {
9046 var h codecSelfer19780
9047 z, r := GenHelper().Decoder(d)
9048 _, _, _ = h, z, r
9049 var yyhl3 bool = l >= 0
9050 for yyj3 := 0; ; yyj3++ {
9051 if yyhl3 {
9052 if yyj3 >= l {
9053 break
9054 }
9055 } else {
9056 if z.DecCheckBreak() {
9057 break
9058 }
9059 }
9060 z.DecReadMapElemKey()
9061 yys3 := strconv.AppendUint(z.DecScratchArrayBuffer()[:0], r.DecodeUint64(), 10)
9062 z.DecReadMapElemValue()
9063 switch string(yys3) {
9064 case "1":
9065 x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
9066 default:
9067 z.DecStructFieldNotFound(-1, string(yys3))
9068 } // end switch yys3
9069 } // end for yyj3
9070 }
9071
9072 func (x *testStrucKeyTypeT3) codecDecodeSelfFromArray(l int, d *Decoder) {
9073 var h codecSelfer19780
9074 z, r := GenHelper().Decoder(d)
9075 _, _, _ = h, z, r
9076 var yyj5 int
9077 var yyb5 bool
9078 var yyhl5 bool = l >= 0
9079 yyj5++
9080 if yyhl5 {
9081 yyb5 = yyj5 > l
9082 } else {
9083 yyb5 = z.DecCheckBreak()
9084 }
9085 if yyb5 {
9086 z.DecReadArrayEnd()
9087 return
9088 }
9089 z.DecReadArrayElem()
9090 x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
9091 for {
9092 yyj5++
9093 if yyhl5 {
9094 yyb5 = yyj5 > l
9095 } else {
9096 yyb5 = z.DecCheckBreak()
9097 }
9098 if yyb5 {
9099 break
9100 }
9101 z.DecReadArrayElem()
9102 z.DecStructFieldNotFound(yyj5-1, "")
9103 }
9104 }
9105
9106 func (x *testStrucKeyTypeT3) IsCodecEmpty() bool {
9107 return !(x.F != 0 || false)
9108 }
9109
9110 func (testStrucKeyTypeT4) codecSelferViaCodecgen() {}
9111 func (x *testStrucKeyTypeT4) CodecEncodeSelf(e *Encoder) {
9112 var h codecSelfer19780
9113 z, r := GenHelper().Encoder(e)
9114 _, _, _ = h, z, r
9115 if z.EncBasicHandle().CheckCircularRef {
9116 z.EncEncode(x)
9117 return
9118 }
9119 if x == nil {
9120 r.EncodeNil()
9121 } else {
9122 yy2arr2 := z.EncBasicHandle().StructToArray
9123 _ = yy2arr2
9124 const yyr2 bool = false // struct tag has 'toArray'
9125 if yyr2 || yy2arr2 {
9126 z.EncWriteArrayStart(1)
9127 z.EncWriteArrayElem()
9128 r.EncodeInt(int64(x.F))
9129 z.EncWriteArrayEnd()
9130 } else {
9131 z.EncWriteMapStart(1)
9132 if z.EncBasicHandle().Canonical {
9133 z.EncWriteMapElemKey()
9134 r.EncodeFloat64(z.M.Float(strconv.ParseFloat(`2.5`, 64)))
9135 z.EncWriteMapElemValue()
9136 r.EncodeInt(int64(x.F))
9137 } else {
9138 z.EncWriteMapElemKey()
9139 r.EncodeFloat64(z.M.Float(strconv.ParseFloat(`2.5`, 64)))
9140 z.EncWriteMapElemValue()
9141 r.EncodeInt(int64(x.F))
9142 }
9143 z.EncWriteMapEnd()
9144 }
9145 }
9146 }
9147
9148 func (x *testStrucKeyTypeT4) CodecDecodeSelf(d *Decoder) {
9149 var h codecSelfer19780
9150 z, r := GenHelper().Decoder(d)
9151 _, _, _ = h, z, r
9152 yyct2 := r.ContainerType()
9153 if yyct2 == codecSelferValueTypeNil19780 {
9154 *(x) = testStrucKeyTypeT4{}
9155 } else if yyct2 == codecSelferValueTypeMap19780 {
9156 yyl2 := z.DecReadMapStart()
9157 if yyl2 == 0 {
9158 } else {
9159 x.codecDecodeSelfFromMap(yyl2, d)
9160 }
9161 z.DecReadMapEnd()
9162 } else if yyct2 == codecSelferValueTypeArray19780 {
9163 yyl2 := z.DecReadArrayStart()
9164 if yyl2 != 0 {
9165 x.codecDecodeSelfFromArray(yyl2, d)
9166 }
9167 z.DecReadArrayEnd()
9168 } else {
9169 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
9170 }
9171 }
9172
9173 func (x *testStrucKeyTypeT4) codecDecodeSelfFromMap(l int, d *Decoder) {
9174 var h codecSelfer19780
9175 z, r := GenHelper().Decoder(d)
9176 _, _, _ = h, z, r
9177 var yyhl3 bool = l >= 0
9178 for yyj3 := 0; ; yyj3++ {
9179 if yyhl3 {
9180 if yyj3 >= l {
9181 break
9182 }
9183 } else {
9184 if z.DecCheckBreak() {
9185 break
9186 }
9187 }
9188 z.DecReadMapElemKey()
9189 yys3 := strconv.AppendFloat(z.DecScratchArrayBuffer()[:0], r.DecodeFloat64(), 'f', -1, 64)
9190 z.DecReadMapElemValue()
9191 switch string(yys3) {
9192 case "2.5":
9193 x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
9194 default:
9195 z.DecStructFieldNotFound(-1, string(yys3))
9196 } // end switch yys3
9197 } // end for yyj3
9198 }
9199
9200 func (x *testStrucKeyTypeT4) codecDecodeSelfFromArray(l int, d *Decoder) {
9201 var h codecSelfer19780
9202 z, r := GenHelper().Decoder(d)
9203 _, _, _ = h, z, r
9204 var yyj5 int
9205 var yyb5 bool
9206 var yyhl5 bool = l >= 0
9207 yyj5++
9208 if yyhl5 {
9209 yyb5 = yyj5 > l
9210 } else {
9211 yyb5 = z.DecCheckBreak()
9212 }
9213 if yyb5 {
9214 z.DecReadArrayEnd()
9215 return
9216 }
9217 z.DecReadArrayElem()
9218 x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
9219 for {
9220 yyj5++
9221 if yyhl5 {
9222 yyb5 = yyj5 > l
9223 } else {
9224 yyb5 = z.DecCheckBreak()
9225 }
9226 if yyb5 {
9227 break
9228 }
9229 z.DecReadArrayElem()
9230 z.DecStructFieldNotFound(yyj5-1, "")
9231 }
9232 }
9233
9234 func (x *testStrucKeyTypeT4) IsCodecEmpty() bool {
9235 return !(x.F != 0 || false)
9236 }
9237
9238 func (Bbool) codecSelferViaCodecgen() {}
9239 func (x Bbool) CodecEncodeSelf(e *Encoder) {
9240 var h codecSelfer19780
9241 z, r := GenHelper().Encoder(e)
9242 _, _, _ = h, z, r
9243 r.EncodeBool(bool(x))
9244 }
9245
9246 func (x *Bbool) CodecDecodeSelf(d *Decoder) {
9247 var h codecSelfer19780
9248 z, r := GenHelper().Decoder(d)
9249 _, _, _ = h, z, r
9250 *x = (Bbool)(r.DecodeBool())
9251 }
9252
9253 func (Aarray) codecSelferViaCodecgen() {}
9254 func (x *Aarray) CodecEncodeSelf(e *Encoder) {
9255 var h codecSelfer19780
9256 z, r := GenHelper().Encoder(e)
9257 _, _, _ = h, z, r
9258 if x == nil {
9259 r.EncodeNil()
9260 } else {
9261 z.F.EncSliceStringV(([]string)(x[:]), e)
9262 }
9263 }
9264
9265 func (x *Aarray) CodecDecodeSelf(d *Decoder) {
9266 var h codecSelfer19780
9267 z, r := GenHelper().Decoder(d)
9268 _, _, _ = h, z, r
9269 z.F.DecSliceStringN(([]string)(x[:]), d)
9270 }
9271
9272 func (Sstring) codecSelferViaCodecgen() {}
9273 func (x Sstring) CodecEncodeSelf(e *Encoder) {
9274 var h codecSelfer19780
9275 z, r := GenHelper().Encoder(e)
9276 _, _, _ = h, z, r
9277 r.EncodeString(string(x))
9278 }
9279
9280 func (x *Sstring) CodecDecodeSelf(d *Decoder) {
9281 var h codecSelfer19780
9282 z, r := GenHelper().Decoder(d)
9283 _, _, _ = h, z, r
9284 *x = (Sstring)(z.DecStringZC(r.DecodeStringAsBytes()))
9285 }
9286
9287 func (Sstructsmall) codecSelferViaCodecgen() {}
9288 func (x *Sstructsmall) CodecEncodeSelf(e *Encoder) {
9289 var h codecSelfer19780
9290 z, r := GenHelper().Encoder(e)
9291 _, _, _ = h, z, r
9292 if z.EncBasicHandle().CheckCircularRef {
9293 z.EncEncode(x)
9294 return
9295 }
9296 if x == nil {
9297 r.EncodeNil()
9298 } else {
9299 yy2arr2 := z.EncBasicHandle().StructToArray
9300 _ = yy2arr2
9301 const yyr2 bool = false // struct tag has 'toArray'
9302 if yyr2 || yy2arr2 {
9303 z.EncWriteArrayStart(1)
9304 z.EncWriteArrayElem()
9305 r.EncodeInt(int64(x.A))
9306 z.EncWriteArrayEnd()
9307 } else {
9308 z.EncWriteMapStart(1)
9309 if z.EncBasicHandle().Canonical {
9310 z.EncWriteMapElemKey()
9311 if z.IsJSONHandle() {
9312 z.WriteStr("\"A\"")
9313 } else {
9314 r.EncodeString(`A`)
9315 }
9316 z.EncWriteMapElemValue()
9317 r.EncodeInt(int64(x.A))
9318 } else {
9319 z.EncWriteMapElemKey()
9320 if z.IsJSONHandle() {
9321 z.WriteStr("\"A\"")
9322 } else {
9323 r.EncodeString(`A`)
9324 }
9325 z.EncWriteMapElemValue()
9326 r.EncodeInt(int64(x.A))
9327 }
9328 z.EncWriteMapEnd()
9329 }
9330 }
9331 }
9332
9333 func (x *Sstructsmall) CodecDecodeSelf(d *Decoder) {
9334 var h codecSelfer19780
9335 z, r := GenHelper().Decoder(d)
9336 _, _, _ = h, z, r
9337 yyct2 := r.ContainerType()
9338 if yyct2 == codecSelferValueTypeNil19780 {
9339 *(x) = Sstructsmall{}
9340 } else if yyct2 == codecSelferValueTypeMap19780 {
9341 yyl2 := z.DecReadMapStart()
9342 if yyl2 == 0 {
9343 } else {
9344 x.codecDecodeSelfFromMap(yyl2, d)
9345 }
9346 z.DecReadMapEnd()
9347 } else if yyct2 == codecSelferValueTypeArray19780 {
9348 yyl2 := z.DecReadArrayStart()
9349 if yyl2 != 0 {
9350 x.codecDecodeSelfFromArray(yyl2, d)
9351 }
9352 z.DecReadArrayEnd()
9353 } else {
9354 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
9355 }
9356 }
9357
9358 func (x *Sstructsmall) codecDecodeSelfFromMap(l int, d *Decoder) {
9359 var h codecSelfer19780
9360 z, r := GenHelper().Decoder(d)
9361 _, _, _ = h, z, r
9362 var yyhl3 bool = l >= 0
9363 for yyj3 := 0; ; yyj3++ {
9364 if yyhl3 {
9365 if yyj3 >= l {
9366 break
9367 }
9368 } else {
9369 if z.DecCheckBreak() {
9370 break
9371 }
9372 }
9373 z.DecReadMapElemKey()
9374 yys3 := r.DecodeStringAsBytes()
9375 z.DecReadMapElemValue()
9376 switch string(yys3) {
9377 case "A":
9378 x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
9379 default:
9380 z.DecStructFieldNotFound(-1, string(yys3))
9381 } // end switch yys3
9382 } // end for yyj3
9383 }
9384
9385 func (x *Sstructsmall) codecDecodeSelfFromArray(l int, d *Decoder) {
9386 var h codecSelfer19780
9387 z, r := GenHelper().Decoder(d)
9388 _, _, _ = h, z, r
9389 var yyj5 int
9390 var yyb5 bool
9391 var yyhl5 bool = l >= 0
9392 yyj5++
9393 if yyhl5 {
9394 yyb5 = yyj5 > l
9395 } else {
9396 yyb5 = z.DecCheckBreak()
9397 }
9398 if yyb5 {
9399 z.DecReadArrayEnd()
9400 return
9401 }
9402 z.DecReadArrayElem()
9403 x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
9404 for {
9405 yyj5++
9406 if yyhl5 {
9407 yyb5 = yyj5 > l
9408 } else {
9409 yyb5 = z.DecCheckBreak()
9410 }
9411 if yyb5 {
9412 break
9413 }
9414 z.DecReadArrayElem()
9415 z.DecStructFieldNotFound(yyj5-1, "")
9416 }
9417 }
9418
9419 func (x *Sstructsmall) IsCodecEmpty() bool {
9420 return !(x.A != 0 || false)
9421 }
9422
9423 func (Sstructbig) codecSelferViaCodecgen() {}
9424 func (x *Sstructbig) CodecEncodeSelf(e *Encoder) {
9425 var h codecSelfer19780
9426 z, r := GenHelper().Encoder(e)
9427 _, _, _ = h, z, r
9428 if z.EncBasicHandle().CheckCircularRef {
9429 z.EncEncode(x)
9430 return
9431 }
9432 if x == nil {
9433 r.EncodeNil()
9434 } else {
9435 yy2arr2 := z.EncBasicHandle().StructToArray
9436 _ = yy2arr2
9437 const yyr2 bool = false // struct tag has 'toArray'
9438 var yyn5 bool = x.Ssmallptr == nil
9439 var yyn7 bool = x.Sptr == nil
9440 if yyr2 || yy2arr2 {
9441 z.EncWriteArrayStart(5)
9442 z.EncWriteArrayElem()
9443 r.EncodeInt(int64(x.A))
9444 z.EncWriteArrayElem()
9445 r.EncodeBool(bool(x.B))
9446 if yyn5 {
9447 z.EncWriteArrayElem()
9448 r.EncodeNil()
9449 } else {
9450 z.EncWriteArrayElem()
9451 if yyxt10 := z.Extension(x.Ssmallptr); yyxt10 != nil {
9452 z.EncExtension(x.Ssmallptr, yyxt10)
9453 } else {
9454 x.Ssmallptr.CodecEncodeSelf(e)
9455 }
9456 }
9457 z.EncWriteArrayElem()
9458 yy11 := &x.Ssmall
9459 if yyxt12 := z.Extension(yy11); yyxt12 != nil {
9460 z.EncExtension(yy11, yyxt12)
9461 } else {
9462 yy11.CodecEncodeSelf(e)
9463 }
9464 if yyn7 {
9465 z.EncWriteArrayElem()
9466 r.EncodeNil()
9467 } else {
9468 z.EncWriteArrayElem()
9469 if yyxt13 := z.Extension(x.Sptr); yyxt13 != nil {
9470 z.EncExtension(x.Sptr, yyxt13)
9471 } else {
9472 x.Sptr.CodecEncodeSelf(e)
9473 }
9474 }
9475 z.EncWriteArrayEnd()
9476 } else {
9477 z.EncWriteMapStart(5)
9478 if z.EncBasicHandle().Canonical {
9479 z.EncWriteMapElemKey()
9480 if z.IsJSONHandle() {
9481 z.WriteStr("\"A\"")
9482 } else {
9483 r.EncodeString(`A`)
9484 }
9485 z.EncWriteMapElemValue()
9486 r.EncodeInt(int64(x.A))
9487 z.EncWriteMapElemKey()
9488 if z.IsJSONHandle() {
9489 z.WriteStr("\"B\"")
9490 } else {
9491 r.EncodeString(`B`)
9492 }
9493 z.EncWriteMapElemValue()
9494 r.EncodeBool(bool(x.B))
9495 z.EncWriteMapElemKey()
9496 if z.IsJSONHandle() {
9497 z.WriteStr("\"Sptr\"")
9498 } else {
9499 r.EncodeString(`Sptr`)
9500 }
9501 z.EncWriteMapElemValue()
9502 if yyn7 {
9503 r.EncodeNil()
9504 } else {
9505 if yyxt16 := z.Extension(x.Sptr); yyxt16 != nil {
9506 z.EncExtension(x.Sptr, yyxt16)
9507 } else {
9508 x.Sptr.CodecEncodeSelf(e)
9509 }
9510 }
9511 z.EncWriteMapElemKey()
9512 if z.IsJSONHandle() {
9513 z.WriteStr("\"Ssmall\"")
9514 } else {
9515 r.EncodeString(`Ssmall`)
9516 }
9517 z.EncWriteMapElemValue()
9518 yy17 := &x.Ssmall
9519 if yyxt18 := z.Extension(yy17); yyxt18 != nil {
9520 z.EncExtension(yy17, yyxt18)
9521 } else {
9522 yy17.CodecEncodeSelf(e)
9523 }
9524 z.EncWriteMapElemKey()
9525 if z.IsJSONHandle() {
9526 z.WriteStr("\"Ssmallptr\"")
9527 } else {
9528 r.EncodeString(`Ssmallptr`)
9529 }
9530 z.EncWriteMapElemValue()
9531 if yyn5 {
9532 r.EncodeNil()
9533 } else {
9534 if yyxt19 := z.Extension(x.Ssmallptr); yyxt19 != nil {
9535 z.EncExtension(x.Ssmallptr, yyxt19)
9536 } else {
9537 x.Ssmallptr.CodecEncodeSelf(e)
9538 }
9539 }
9540 } else {
9541 z.EncWriteMapElemKey()
9542 if z.IsJSONHandle() {
9543 z.WriteStr("\"A\"")
9544 } else {
9545 r.EncodeString(`A`)
9546 }
9547 z.EncWriteMapElemValue()
9548 r.EncodeInt(int64(x.A))
9549 z.EncWriteMapElemKey()
9550 if z.IsJSONHandle() {
9551 z.WriteStr("\"B\"")
9552 } else {
9553 r.EncodeString(`B`)
9554 }
9555 z.EncWriteMapElemValue()
9556 r.EncodeBool(bool(x.B))
9557 z.EncWriteMapElemKey()
9558 if z.IsJSONHandle() {
9559 z.WriteStr("\"Ssmallptr\"")
9560 } else {
9561 r.EncodeString(`Ssmallptr`)
9562 }
9563 z.EncWriteMapElemValue()
9564 if yyn5 {
9565 r.EncodeNil()
9566 } else {
9567 if yyxt22 := z.Extension(x.Ssmallptr); yyxt22 != nil {
9568 z.EncExtension(x.Ssmallptr, yyxt22)
9569 } else {
9570 x.Ssmallptr.CodecEncodeSelf(e)
9571 }
9572 }
9573 z.EncWriteMapElemKey()
9574 if z.IsJSONHandle() {
9575 z.WriteStr("\"Ssmall\"")
9576 } else {
9577 r.EncodeString(`Ssmall`)
9578 }
9579 z.EncWriteMapElemValue()
9580 yy23 := &x.Ssmall
9581 if yyxt24 := z.Extension(yy23); yyxt24 != nil {
9582 z.EncExtension(yy23, yyxt24)
9583 } else {
9584 yy23.CodecEncodeSelf(e)
9585 }
9586 z.EncWriteMapElemKey()
9587 if z.IsJSONHandle() {
9588 z.WriteStr("\"Sptr\"")
9589 } else {
9590 r.EncodeString(`Sptr`)
9591 }
9592 z.EncWriteMapElemValue()
9593 if yyn7 {
9594 r.EncodeNil()
9595 } else {
9596 if yyxt25 := z.Extension(x.Sptr); yyxt25 != nil {
9597 z.EncExtension(x.Sptr, yyxt25)
9598 } else {
9599 x.Sptr.CodecEncodeSelf(e)
9600 }
9601 }
9602 }
9603 z.EncWriteMapEnd()
9604 }
9605 }
9606 }
9607
9608 func (x *Sstructbig) CodecDecodeSelf(d *Decoder) {
9609 var h codecSelfer19780
9610 z, r := GenHelper().Decoder(d)
9611 _, _, _ = h, z, r
9612 yyct2 := r.ContainerType()
9613 if yyct2 == codecSelferValueTypeNil19780 {
9614 *(x) = Sstructbig{}
9615 } else if yyct2 == codecSelferValueTypeMap19780 {
9616 yyl2 := z.DecReadMapStart()
9617 if yyl2 == 0 {
9618 } else {
9619 x.codecDecodeSelfFromMap(yyl2, d)
9620 }
9621 z.DecReadMapEnd()
9622 } else if yyct2 == codecSelferValueTypeArray19780 {
9623 yyl2 := z.DecReadArrayStart()
9624 if yyl2 != 0 {
9625 x.codecDecodeSelfFromArray(yyl2, d)
9626 }
9627 z.DecReadArrayEnd()
9628 } else {
9629 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
9630 }
9631 }
9632
9633 func (x *Sstructbig) codecDecodeSelfFromMap(l int, d *Decoder) {
9634 var h codecSelfer19780
9635 z, r := GenHelper().Decoder(d)
9636 _, _, _ = h, z, r
9637 var yyhl3 bool = l >= 0
9638 for yyj3 := 0; ; yyj3++ {
9639 if yyhl3 {
9640 if yyj3 >= l {
9641 break
9642 }
9643 } else {
9644 if z.DecCheckBreak() {
9645 break
9646 }
9647 }
9648 z.DecReadMapElemKey()
9649 yys3 := r.DecodeStringAsBytes()
9650 z.DecReadMapElemValue()
9651 switch string(yys3) {
9652 case "A":
9653 x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
9654 case "B":
9655 x.B = (bool)(r.DecodeBool())
9656 case "Ssmallptr":
9657 if r.TryNil() {
9658 if x.Ssmallptr != nil { // remove the if-true
9659 x.Ssmallptr = nil
9660 }
9661 } else {
9662 if x.Ssmallptr == nil {
9663 x.Ssmallptr = new(Sstructsmall)
9664 }
9665 if yyxt7 := z.Extension(x.Ssmallptr); yyxt7 != nil {
9666 z.DecExtension(x.Ssmallptr, yyxt7)
9667 } else {
9668 x.Ssmallptr.CodecDecodeSelf(d)
9669 }
9670 }
9671 case "Ssmall":
9672 if yyxt9 := z.Extension(x.Ssmall); yyxt9 != nil {
9673 z.DecExtension(&x.Ssmall, yyxt9)
9674 } else {
9675 x.Ssmall.CodecDecodeSelf(d)
9676 }
9677 case "Sptr":
9678 if r.TryNil() {
9679 if x.Sptr != nil { // remove the if-true
9680 x.Sptr = nil
9681 }
9682 } else {
9683 if x.Sptr == nil {
9684 x.Sptr = new(Sstructbig)
9685 }
9686 if yyxt11 := z.Extension(x.Sptr); yyxt11 != nil {
9687 z.DecExtension(x.Sptr, yyxt11)
9688 } else {
9689 x.Sptr.CodecDecodeSelf(d)
9690 }
9691 }
9692 default:
9693 z.DecStructFieldNotFound(-1, string(yys3))
9694 } // end switch yys3
9695 } // end for yyj3
9696 }
9697
9698 func (x *Sstructbig) codecDecodeSelfFromArray(l int, d *Decoder) {
9699 var h codecSelfer19780
9700 z, r := GenHelper().Decoder(d)
9701 _, _, _ = h, z, r
9702 var yyj12 int
9703 var yyb12 bool
9704 var yyhl12 bool = l >= 0
9705 yyj12++
9706 if yyhl12 {
9707 yyb12 = yyj12 > l
9708 } else {
9709 yyb12 = z.DecCheckBreak()
9710 }
9711 if yyb12 {
9712 z.DecReadArrayEnd()
9713 return
9714 }
9715 z.DecReadArrayElem()
9716 x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
9717 yyj12++
9718 if yyhl12 {
9719 yyb12 = yyj12 > l
9720 } else {
9721 yyb12 = z.DecCheckBreak()
9722 }
9723 if yyb12 {
9724 z.DecReadArrayEnd()
9725 return
9726 }
9727 z.DecReadArrayElem()
9728 x.B = (bool)(r.DecodeBool())
9729 yyj12++
9730 if yyhl12 {
9731 yyb12 = yyj12 > l
9732 } else {
9733 yyb12 = z.DecCheckBreak()
9734 }
9735 if yyb12 {
9736 z.DecReadArrayEnd()
9737 return
9738 }
9739 z.DecReadArrayElem()
9740 if r.TryNil() {
9741 if x.Ssmallptr != nil { // remove the if-true
9742 x.Ssmallptr = nil
9743 }
9744 } else {
9745 if x.Ssmallptr == nil {
9746 x.Ssmallptr = new(Sstructsmall)
9747 }
9748 if yyxt16 := z.Extension(x.Ssmallptr); yyxt16 != nil {
9749 z.DecExtension(x.Ssmallptr, yyxt16)
9750 } else {
9751 x.Ssmallptr.CodecDecodeSelf(d)
9752 }
9753 }
9754 yyj12++
9755 if yyhl12 {
9756 yyb12 = yyj12 > l
9757 } else {
9758 yyb12 = z.DecCheckBreak()
9759 }
9760 if yyb12 {
9761 z.DecReadArrayEnd()
9762 return
9763 }
9764 z.DecReadArrayElem()
9765 if yyxt18 := z.Extension(x.Ssmall); yyxt18 != nil {
9766 z.DecExtension(&x.Ssmall, yyxt18)
9767 } else {
9768 x.Ssmall.CodecDecodeSelf(d)
9769 }
9770 yyj12++
9771 if yyhl12 {
9772 yyb12 = yyj12 > l
9773 } else {
9774 yyb12 = z.DecCheckBreak()
9775 }
9776 if yyb12 {
9777 z.DecReadArrayEnd()
9778 return
9779 }
9780 z.DecReadArrayElem()
9781 if r.TryNil() {
9782 if x.Sptr != nil { // remove the if-true
9783 x.Sptr = nil
9784 }
9785 } else {
9786 if x.Sptr == nil {
9787 x.Sptr = new(Sstructbig)
9788 }
9789 if yyxt20 := z.Extension(x.Sptr); yyxt20 != nil {
9790 z.DecExtension(x.Sptr, yyxt20)
9791 } else {
9792 x.Sptr.CodecDecodeSelf(d)
9793 }
9794 }
9795 for {
9796 yyj12++
9797 if yyhl12 {
9798 yyb12 = yyj12 > l
9799 } else {
9800 yyb12 = z.DecCheckBreak()
9801 }
9802 if yyb12 {
9803 break
9804 }
9805 z.DecReadArrayElem()
9806 z.DecStructFieldNotFound(yyj12-1, "")
9807 }
9808 }
9809
9810 func (x *Sstructbig) IsCodecEmpty() bool {
9811 return !(x.A != 0 || bool(x.B) || !(x.Ssmall.IsCodecEmpty()) || false)
9812 }
9813
9814 func (SstructbigToArray) codecSelferViaCodecgen() {}
9815 func (x *SstructbigToArray) CodecEncodeSelf(e *Encoder) {
9816 var h codecSelfer19780
9817 z, r := GenHelper().Encoder(e)
9818 _, _, _ = h, z, r
9819 if z.EncBasicHandle().CheckCircularRef {
9820 z.EncEncode(x)
9821 return
9822 }
9823 if x == nil {
9824 r.EncodeNil()
9825 } else {
9826 yy2arr2 := z.EncBasicHandle().StructToArray
9827 _ = yy2arr2
9828 const yyr2 bool = true // struct tag has 'toArray'
9829 var yyn5 bool = x.Ssmallptr == nil
9830 var yyn7 bool = x.Sptr == nil
9831 if yyr2 || yy2arr2 {
9832 z.EncWriteArrayStart(5)
9833 z.EncWriteArrayElem()
9834 r.EncodeInt(int64(x.A))
9835 z.EncWriteArrayElem()
9836 r.EncodeBool(bool(x.B))
9837 if yyn5 {
9838 z.EncWriteArrayElem()
9839 r.EncodeNil()
9840 } else {
9841 z.EncWriteArrayElem()
9842 if yyxt10 := z.Extension(x.Ssmallptr); yyxt10 != nil {
9843 z.EncExtension(x.Ssmallptr, yyxt10)
9844 } else {
9845 x.Ssmallptr.CodecEncodeSelf(e)
9846 }
9847 }
9848 z.EncWriteArrayElem()
9849 yy11 := &x.Ssmall
9850 if yyxt12 := z.Extension(yy11); yyxt12 != nil {
9851 z.EncExtension(yy11, yyxt12)
9852 } else {
9853 yy11.CodecEncodeSelf(e)
9854 }
9855 if yyn7 {
9856 z.EncWriteArrayElem()
9857 r.EncodeNil()
9858 } else {
9859 z.EncWriteArrayElem()
9860 if yyxt13 := z.Extension(x.Sptr); yyxt13 != nil {
9861 z.EncExtension(x.Sptr, yyxt13)
9862 } else {
9863 x.Sptr.CodecEncodeSelf(e)
9864 }
9865 }
9866 z.EncWriteArrayEnd()
9867 } else {
9868 z.EncWriteMapStart(5)
9869 if z.EncBasicHandle().Canonical {
9870 z.EncWriteMapElemKey()
9871 if z.IsJSONHandle() {
9872 z.WriteStr("\"A\"")
9873 } else {
9874 r.EncodeString(`A`)
9875 }
9876 z.EncWriteMapElemValue()
9877 r.EncodeInt(int64(x.A))
9878 z.EncWriteMapElemKey()
9879 if z.IsJSONHandle() {
9880 z.WriteStr("\"B\"")
9881 } else {
9882 r.EncodeString(`B`)
9883 }
9884 z.EncWriteMapElemValue()
9885 r.EncodeBool(bool(x.B))
9886 z.EncWriteMapElemKey()
9887 if z.IsJSONHandle() {
9888 z.WriteStr("\"Sptr\"")
9889 } else {
9890 r.EncodeString(`Sptr`)
9891 }
9892 z.EncWriteMapElemValue()
9893 if yyn7 {
9894 r.EncodeNil()
9895 } else {
9896 if yyxt16 := z.Extension(x.Sptr); yyxt16 != nil {
9897 z.EncExtension(x.Sptr, yyxt16)
9898 } else {
9899 x.Sptr.CodecEncodeSelf(e)
9900 }
9901 }
9902 z.EncWriteMapElemKey()
9903 if z.IsJSONHandle() {
9904 z.WriteStr("\"Ssmall\"")
9905 } else {
9906 r.EncodeString(`Ssmall`)
9907 }
9908 z.EncWriteMapElemValue()
9909 yy17 := &x.Ssmall
9910 if yyxt18 := z.Extension(yy17); yyxt18 != nil {
9911 z.EncExtension(yy17, yyxt18)
9912 } else {
9913 yy17.CodecEncodeSelf(e)
9914 }
9915 z.EncWriteMapElemKey()
9916 if z.IsJSONHandle() {
9917 z.WriteStr("\"Ssmallptr\"")
9918 } else {
9919 r.EncodeString(`Ssmallptr`)
9920 }
9921 z.EncWriteMapElemValue()
9922 if yyn5 {
9923 r.EncodeNil()
9924 } else {
9925 if yyxt19 := z.Extension(x.Ssmallptr); yyxt19 != nil {
9926 z.EncExtension(x.Ssmallptr, yyxt19)
9927 } else {
9928 x.Ssmallptr.CodecEncodeSelf(e)
9929 }
9930 }
9931 } else {
9932 z.EncWriteMapElemKey()
9933 if z.IsJSONHandle() {
9934 z.WriteStr("\"A\"")
9935 } else {
9936 r.EncodeString(`A`)
9937 }
9938 z.EncWriteMapElemValue()
9939 r.EncodeInt(int64(x.A))
9940 z.EncWriteMapElemKey()
9941 if z.IsJSONHandle() {
9942 z.WriteStr("\"B\"")
9943 } else {
9944 r.EncodeString(`B`)
9945 }
9946 z.EncWriteMapElemValue()
9947 r.EncodeBool(bool(x.B))
9948 z.EncWriteMapElemKey()
9949 if z.IsJSONHandle() {
9950 z.WriteStr("\"Ssmallptr\"")
9951 } else {
9952 r.EncodeString(`Ssmallptr`)
9953 }
9954 z.EncWriteMapElemValue()
9955 if yyn5 {
9956 r.EncodeNil()
9957 } else {
9958 if yyxt22 := z.Extension(x.Ssmallptr); yyxt22 != nil {
9959 z.EncExtension(x.Ssmallptr, yyxt22)
9960 } else {
9961 x.Ssmallptr.CodecEncodeSelf(e)
9962 }
9963 }
9964 z.EncWriteMapElemKey()
9965 if z.IsJSONHandle() {
9966 z.WriteStr("\"Ssmall\"")
9967 } else {
9968 r.EncodeString(`Ssmall`)
9969 }
9970 z.EncWriteMapElemValue()
9971 yy23 := &x.Ssmall
9972 if yyxt24 := z.Extension(yy23); yyxt24 != nil {
9973 z.EncExtension(yy23, yyxt24)
9974 } else {
9975 yy23.CodecEncodeSelf(e)
9976 }
9977 z.EncWriteMapElemKey()
9978 if z.IsJSONHandle() {
9979 z.WriteStr("\"Sptr\"")
9980 } else {
9981 r.EncodeString(`Sptr`)
9982 }
9983 z.EncWriteMapElemValue()
9984 if yyn7 {
9985 r.EncodeNil()
9986 } else {
9987 if yyxt25 := z.Extension(x.Sptr); yyxt25 != nil {
9988 z.EncExtension(x.Sptr, yyxt25)
9989 } else {
9990 x.Sptr.CodecEncodeSelf(e)
9991 }
9992 }
9993 }
9994 z.EncWriteMapEnd()
9995 }
9996 }
9997 }
9998
9999 func (x *SstructbigToArray) CodecDecodeSelf(d *Decoder) {
10000 var h codecSelfer19780
10001 z, r := GenHelper().Decoder(d)
10002 _, _, _ = h, z, r
10003 yyct2 := r.ContainerType()
10004 if yyct2 == codecSelferValueTypeNil19780 {
10005 *(x) = SstructbigToArray{}
10006 } else if yyct2 == codecSelferValueTypeMap19780 {
10007 yyl2 := z.DecReadMapStart()
10008 if yyl2 == 0 {
10009 } else {
10010 x.codecDecodeSelfFromMap(yyl2, d)
10011 }
10012 z.DecReadMapEnd()
10013 } else if yyct2 == codecSelferValueTypeArray19780 {
10014 yyl2 := z.DecReadArrayStart()
10015 if yyl2 != 0 {
10016 x.codecDecodeSelfFromArray(yyl2, d)
10017 }
10018 z.DecReadArrayEnd()
10019 } else {
10020 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
10021 }
10022 }
10023
10024 func (x *SstructbigToArray) codecDecodeSelfFromMap(l int, d *Decoder) {
10025 var h codecSelfer19780
10026 z, r := GenHelper().Decoder(d)
10027 _, _, _ = h, z, r
10028 var yyhl3 bool = l >= 0
10029 for yyj3 := 0; ; yyj3++ {
10030 if yyhl3 {
10031 if yyj3 >= l {
10032 break
10033 }
10034 } else {
10035 if z.DecCheckBreak() {
10036 break
10037 }
10038 }
10039 z.DecReadMapElemKey()
10040 yys3 := r.DecodeStringAsBytes()
10041 z.DecReadMapElemValue()
10042 switch string(yys3) {
10043 case "A":
10044 x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
10045 case "B":
10046 x.B = (bool)(r.DecodeBool())
10047 case "Ssmallptr":
10048 if r.TryNil() {
10049 if x.Ssmallptr != nil { // remove the if-true
10050 x.Ssmallptr = nil
10051 }
10052 } else {
10053 if x.Ssmallptr == nil {
10054 x.Ssmallptr = new(Sstructsmall)
10055 }
10056 if yyxt7 := z.Extension(x.Ssmallptr); yyxt7 != nil {
10057 z.DecExtension(x.Ssmallptr, yyxt7)
10058 } else {
10059 x.Ssmallptr.CodecDecodeSelf(d)
10060 }
10061 }
10062 case "Ssmall":
10063 if yyxt9 := z.Extension(x.Ssmall); yyxt9 != nil {
10064 z.DecExtension(&x.Ssmall, yyxt9)
10065 } else {
10066 x.Ssmall.CodecDecodeSelf(d)
10067 }
10068 case "Sptr":
10069 if r.TryNil() {
10070 if x.Sptr != nil { // remove the if-true
10071 x.Sptr = nil
10072 }
10073 } else {
10074 if x.Sptr == nil {
10075 x.Sptr = new(Sstructbig)
10076 }
10077 if yyxt11 := z.Extension(x.Sptr); yyxt11 != nil {
10078 z.DecExtension(x.Sptr, yyxt11)
10079 } else {
10080 x.Sptr.CodecDecodeSelf(d)
10081 }
10082 }
10083 default:
10084 z.DecStructFieldNotFound(-1, string(yys3))
10085 } // end switch yys3
10086 } // end for yyj3
10087 }
10088
10089 func (x *SstructbigToArray) codecDecodeSelfFromArray(l int, d *Decoder) {
10090 var h codecSelfer19780
10091 z, r := GenHelper().Decoder(d)
10092 _, _, _ = h, z, r
10093 var yyj12 int
10094 var yyb12 bool
10095 var yyhl12 bool = l >= 0
10096 yyj12++
10097 if yyhl12 {
10098 yyb12 = yyj12 > l
10099 } else {
10100 yyb12 = z.DecCheckBreak()
10101 }
10102 if yyb12 {
10103 z.DecReadArrayEnd()
10104 return
10105 }
10106 z.DecReadArrayElem()
10107 x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
10108 yyj12++
10109 if yyhl12 {
10110 yyb12 = yyj12 > l
10111 } else {
10112 yyb12 = z.DecCheckBreak()
10113 }
10114 if yyb12 {
10115 z.DecReadArrayEnd()
10116 return
10117 }
10118 z.DecReadArrayElem()
10119 x.B = (bool)(r.DecodeBool())
10120 yyj12++
10121 if yyhl12 {
10122 yyb12 = yyj12 > l
10123 } else {
10124 yyb12 = z.DecCheckBreak()
10125 }
10126 if yyb12 {
10127 z.DecReadArrayEnd()
10128 return
10129 }
10130 z.DecReadArrayElem()
10131 if r.TryNil() {
10132 if x.Ssmallptr != nil { // remove the if-true
10133 x.Ssmallptr = nil
10134 }
10135 } else {
10136 if x.Ssmallptr == nil {
10137 x.Ssmallptr = new(Sstructsmall)
10138 }
10139 if yyxt16 := z.Extension(x.Ssmallptr); yyxt16 != nil {
10140 z.DecExtension(x.Ssmallptr, yyxt16)
10141 } else {
10142 x.Ssmallptr.CodecDecodeSelf(d)
10143 }
10144 }
10145 yyj12++
10146 if yyhl12 {
10147 yyb12 = yyj12 > l
10148 } else {
10149 yyb12 = z.DecCheckBreak()
10150 }
10151 if yyb12 {
10152 z.DecReadArrayEnd()
10153 return
10154 }
10155 z.DecReadArrayElem()
10156 if yyxt18 := z.Extension(x.Ssmall); yyxt18 != nil {
10157 z.DecExtension(&x.Ssmall, yyxt18)
10158 } else {
10159 x.Ssmall.CodecDecodeSelf(d)
10160 }
10161 yyj12++
10162 if yyhl12 {
10163 yyb12 = yyj12 > l
10164 } else {
10165 yyb12 = z.DecCheckBreak()
10166 }
10167 if yyb12 {
10168 z.DecReadArrayEnd()
10169 return
10170 }
10171 z.DecReadArrayElem()
10172 if r.TryNil() {
10173 if x.Sptr != nil { // remove the if-true
10174 x.Sptr = nil
10175 }
10176 } else {
10177 if x.Sptr == nil {
10178 x.Sptr = new(Sstructbig)
10179 }
10180 if yyxt20 := z.Extension(x.Sptr); yyxt20 != nil {
10181 z.DecExtension(x.Sptr, yyxt20)
10182 } else {
10183 x.Sptr.CodecDecodeSelf(d)
10184 }
10185 }
10186 for {
10187 yyj12++
10188 if yyhl12 {
10189 yyb12 = yyj12 > l
10190 } else {
10191 yyb12 = z.DecCheckBreak()
10192 }
10193 if yyb12 {
10194 break
10195 }
10196 z.DecReadArrayElem()
10197 z.DecStructFieldNotFound(yyj12-1, "")
10198 }
10199 }
10200
10201 func (x *SstructbigToArray) IsCodecEmpty() bool {
10202 return !(x.A != 0 || bool(x.B) || !(x.Ssmall.IsCodecEmpty()) || false)
10203 }
10204
10205 func (tLowerFirstLetter) codecSelferViaCodecgen() {}
10206 func (x *tLowerFirstLetter) CodecEncodeSelf(e *Encoder) {
10207 var h codecSelfer19780
10208 z, r := GenHelper().Encoder(e)
10209 _, _, _ = h, z, r
10210 if z.EncBasicHandle().CheckCircularRef {
10211 z.EncEncode(x)
10212 return
10213 }
10214 if x == nil {
10215 r.EncodeNil()
10216 } else {
10217 yy2arr2 := z.EncBasicHandle().StructToArray
10218 _ = yy2arr2
10219 const yyr2 bool = false // struct tag has 'toArray'
10220 if yyr2 || yy2arr2 {
10221 z.EncWriteArrayStart(2)
10222 z.EncWriteArrayElem()
10223 r.EncodeInt(int64(x.I))
10224 z.EncWriteArrayElem()
10225 r.EncodeString(string(x.S))
10226 z.EncWriteArrayEnd()
10227 } else {
10228 z.EncWriteMapStart(2)
10229 if z.EncBasicHandle().Canonical {
10230 z.EncWriteMapElemKey()
10231 if z.IsJSONHandle() {
10232 z.WriteStr("\"I\"")
10233 } else {
10234 r.EncodeString(`I`)
10235 }
10236 z.EncWriteMapElemValue()
10237 r.EncodeInt(int64(x.I))
10238 z.EncWriteMapElemKey()
10239 if z.IsJSONHandle() {
10240 z.WriteStr("\"S\"")
10241 } else {
10242 r.EncodeString(`S`)
10243 }
10244 z.EncWriteMapElemValue()
10245 r.EncodeString(string(x.S))
10246 } else {
10247 z.EncWriteMapElemKey()
10248 if z.IsJSONHandle() {
10249 z.WriteStr("\"I\"")
10250 } else {
10251 r.EncodeString(`I`)
10252 }
10253 z.EncWriteMapElemValue()
10254 r.EncodeInt(int64(x.I))
10255 z.EncWriteMapElemKey()
10256 if z.IsJSONHandle() {
10257 z.WriteStr("\"S\"")
10258 } else {
10259 r.EncodeString(`S`)
10260 }
10261 z.EncWriteMapElemValue()
10262 r.EncodeString(string(x.S))
10263 }
10264 z.EncWriteMapEnd()
10265 }
10266 }
10267 }
10268
10269 func (x *tLowerFirstLetter) CodecDecodeSelf(d *Decoder) {
10270 var h codecSelfer19780
10271 z, r := GenHelper().Decoder(d)
10272 _, _, _ = h, z, r
10273 yyct2 := r.ContainerType()
10274 if yyct2 == codecSelferValueTypeNil19780 {
10275 *(x) = tLowerFirstLetter{}
10276 } else if yyct2 == codecSelferValueTypeMap19780 {
10277 yyl2 := z.DecReadMapStart()
10278 if yyl2 == 0 {
10279 } else {
10280 x.codecDecodeSelfFromMap(yyl2, d)
10281 }
10282 z.DecReadMapEnd()
10283 } else if yyct2 == codecSelferValueTypeArray19780 {
10284 yyl2 := z.DecReadArrayStart()
10285 if yyl2 != 0 {
10286 x.codecDecodeSelfFromArray(yyl2, d)
10287 }
10288 z.DecReadArrayEnd()
10289 } else {
10290 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
10291 }
10292 }
10293
10294 func (x *tLowerFirstLetter) codecDecodeSelfFromMap(l int, d *Decoder) {
10295 var h codecSelfer19780
10296 z, r := GenHelper().Decoder(d)
10297 _, _, _ = h, z, r
10298 var yyhl3 bool = l >= 0
10299 for yyj3 := 0; ; yyj3++ {
10300 if yyhl3 {
10301 if yyj3 >= l {
10302 break
10303 }
10304 } else {
10305 if z.DecCheckBreak() {
10306 break
10307 }
10308 }
10309 z.DecReadMapElemKey()
10310 yys3 := r.DecodeStringAsBytes()
10311 z.DecReadMapElemValue()
10312 switch string(yys3) {
10313 case "I":
10314 x.I = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
10315 case "S":
10316 x.S = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
10317 default:
10318 z.DecStructFieldNotFound(-1, string(yys3))
10319 } // end switch yys3
10320 } // end for yyj3
10321 }
10322
10323 func (x *tLowerFirstLetter) codecDecodeSelfFromArray(l int, d *Decoder) {
10324 var h codecSelfer19780
10325 z, r := GenHelper().Decoder(d)
10326 _, _, _ = h, z, r
10327 var yyj6 int
10328 var yyb6 bool
10329 var yyhl6 bool = l >= 0
10330 yyj6++
10331 if yyhl6 {
10332 yyb6 = yyj6 > l
10333 } else {
10334 yyb6 = z.DecCheckBreak()
10335 }
10336 if yyb6 {
10337 z.DecReadArrayEnd()
10338 return
10339 }
10340 z.DecReadArrayElem()
10341 x.I = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
10342 yyj6++
10343 if yyhl6 {
10344 yyb6 = yyj6 > l
10345 } else {
10346 yyb6 = z.DecCheckBreak()
10347 }
10348 if yyb6 {
10349 z.DecReadArrayEnd()
10350 return
10351 }
10352 z.DecReadArrayElem()
10353 x.S = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
10354 for {
10355 yyj6++
10356 if yyhl6 {
10357 yyb6 = yyj6 > l
10358 } else {
10359 yyb6 = z.DecCheckBreak()
10360 }
10361 if yyb6 {
10362 break
10363 }
10364 z.DecReadArrayElem()
10365 z.DecStructFieldNotFound(yyj6-1, "")
10366 }
10367 }
10368
10369 func (x *tLowerFirstLetter) IsCodecEmpty() bool {
10370 return !(x.I != 0 || x.S != "" || false)
10371 }
10372
10373 func (wrapInt64) codecSelferViaCodecgen() {}
10374 func (x wrapInt64) CodecEncodeSelf(e *Encoder) {
10375 var h codecSelfer19780
10376 z, r := GenHelper().Encoder(e)
10377 _, _, _ = h, z, r
10378 r.EncodeInt(int64(x))
10379 }
10380
10381 func (x *wrapInt64) CodecDecodeSelf(d *Decoder) {
10382 var h codecSelfer19780
10383 z, r := GenHelper().Decoder(d)
10384 _, _, _ = h, z, r
10385 *x = (wrapInt64)(r.DecodeInt64())
10386 }
10387
10388 func (wrapUint8) codecSelferViaCodecgen() {}
10389 func (x wrapUint8) CodecEncodeSelf(e *Encoder) {
10390 var h codecSelfer19780
10391 z, r := GenHelper().Encoder(e)
10392 _, _, _ = h, z, r
10393 r.EncodeUint(uint64(x))
10394 }
10395
10396 func (x *wrapUint8) CodecDecodeSelf(d *Decoder) {
10397 var h codecSelfer19780
10398 z, r := GenHelper().Decoder(d)
10399 _, _, _ = h, z, r
10400 *x = (wrapUint8)(z.C.UintV(r.DecodeUint64(), 8))
10401 }
10402
10403 func (wrapBytes) codecSelferViaCodecgen() {}
10404 func (x wrapBytes) CodecEncodeSelf(e *Encoder) {
10405 var h codecSelfer19780
10406 z, r := GenHelper().Encoder(e)
10407 _, _, _ = h, z, r
10408 if x == nil {
10409 r.EncodeNil()
10410 } else {
10411 z.F.EncSliceUint8V(([]uint8)(x), e)
10412 } // end block: if x slice == nil
10413 }
10414
10415 func (x *wrapBytes) CodecDecodeSelf(d *Decoder) {
10416 var h codecSelfer19780
10417 z, r := GenHelper().Decoder(d)
10418 _, _, _ = h, z, r
10419 z.F.DecSliceUint8X((*[]uint8)(x), d)
10420 }
10421
10422 func (testMarshalAsJSON) codecSelferViaCodecgen() {}
10423 func (x testMarshalAsJSON) CodecEncodeSelf(e *Encoder) {
10424 var h codecSelfer19780
10425 z, r := GenHelper().Encoder(e)
10426 _, _, _ = h, z, r
10427 if !z.EncBinary() && z.IsJSONHandle() {
10428 z.EncJSONMarshal(x)
10429 } else {
10430 r.EncodeBool(bool(x))
10431 }
10432 }
10433
10434 func (x *testMarshalAsJSON) CodecDecodeSelf(d *Decoder) {
10435 var h codecSelfer19780
10436 z, r := GenHelper().Decoder(d)
10437 _, _, _ = h, z, r
10438 if !z.DecBinary() && z.IsJSONHandle() {
10439 z.DecJSONUnmarshal(x)
10440 } else {
10441 *x = (testMarshalAsJSON)(r.DecodeBool())
10442 }
10443 }
10444
10445 func (testMarshalAsBinary) codecSelferViaCodecgen() {}
10446 func (x testMarshalAsBinary) CodecEncodeSelf(e *Encoder) {
10447 var h codecSelfer19780
10448 z, r := GenHelper().Encoder(e)
10449 _, _, _ = h, z, r
10450 if z.EncBinary() {
10451 z.EncBinaryMarshal(x)
10452 } else {
10453 if x == nil {
10454 r.EncodeNil()
10455 } else {
10456 z.F.EncSliceUint8V(([]uint8)(x), e)
10457 } // end block: if x slice == nil
10458 }
10459 }
10460
10461 func (x *testMarshalAsBinary) CodecDecodeSelf(d *Decoder) {
10462 var h codecSelfer19780
10463 z, r := GenHelper().Decoder(d)
10464 _, _, _ = h, z, r
10465 if z.DecBinary() {
10466 z.DecBinaryUnmarshal(x)
10467 } else {
10468 z.F.DecSliceUint8X((*[]uint8)(x), d)
10469 }
10470 }
10471
10472 func (testMarshalAsText) codecSelferViaCodecgen() {}
10473 func (x testMarshalAsText) CodecEncodeSelf(e *Encoder) {
10474 var h codecSelfer19780
10475 z, r := GenHelper().Encoder(e)
10476 _, _, _ = h, z, r
10477 if !z.EncBinary() {
10478 z.EncTextMarshal(x)
10479 } else {
10480 r.EncodeString(string(x))
10481 }
10482 }
10483
10484 func (x *testMarshalAsText) CodecDecodeSelf(d *Decoder) {
10485 var h codecSelfer19780
10486 z, r := GenHelper().Decoder(d)
10487 _, _, _ = h, z, r
10488 if !z.DecBinary() {
10489 z.DecTextUnmarshal(x)
10490 } else {
10491 *x = (testMarshalAsText)(z.DecStringZC(r.DecodeStringAsBytes()))
10492 }
10493 }
10494
10495 func (testUintToBytes) codecSelferViaCodecgen() {}
10496 func (x testUintToBytes) CodecEncodeSelf(e *Encoder) {
10497 var h codecSelfer19780
10498 z, r := GenHelper().Encoder(e)
10499 _, _, _ = h, z, r
10500 r.EncodeUint(uint64(x))
10501 }
10502
10503 func (x *testUintToBytes) CodecDecodeSelf(d *Decoder) {
10504 var h codecSelfer19780
10505 z, r := GenHelper().Decoder(d)
10506 _, _, _ = h, z, r
10507 *x = (testUintToBytes)(z.C.UintV(r.DecodeUint64(), 32))
10508 }
10509
10510 func (AnonInTestStrucIntf) codecSelferViaCodecgen() {}
10511 func (x *AnonInTestStrucIntf) CodecEncodeSelf(e *Encoder) {
10512 var h codecSelfer19780
10513 z, r := GenHelper().Encoder(e)
10514 _, _, _ = h, z, r
10515 if z.EncBasicHandle().CheckCircularRef {
10516 z.EncEncode(x)
10517 return
10518 }
10519 if x == nil {
10520 r.EncodeNil()
10521 } else {
10522 yy2arr2 := z.EncBasicHandle().StructToArray
10523 _ = yy2arr2
10524 const yyr2 bool = false // struct tag has 'toArray'
10525 var yyn7 bool = x.Tptr == nil
10526 if yyr2 || yy2arr2 {
10527 z.EncWriteArrayStart(5)
10528 z.EncWriteArrayElem()
10529 if x.Islice == nil {
10530 r.EncodeNil()
10531 } else {
10532 z.F.EncSliceIntfV(x.Islice, e)
10533 } // end block: if x.Islice slice == nil
10534 z.EncWriteArrayElem()
10535 if x.Ms == nil {
10536 r.EncodeNil()
10537 } else {
10538 z.F.EncMapStringIntfV(x.Ms, e)
10539 } // end block: if x.Ms map == nil
10540 z.EncWriteArrayElem()
10541 z.EncFallback(x.Nintf)
10542 z.EncWriteArrayElem()
10543 if z.EncBasicHandle().TimeBuiltin() {
10544 r.EncodeTime(x.T)
10545 } else if yyxt11 := z.Extension(x.T); yyxt11 != nil {
10546 z.EncExtension(x.T, yyxt11)
10547 } else if z.EncBinary() {
10548 z.EncBinaryMarshal(x.T)
10549 } else if !z.EncBinary() && z.IsJSONHandle() {
10550 z.EncJSONMarshal(x.T)
10551 } else {
10552 z.EncFallback(x.T)
10553 }
10554 if yyn7 {
10555 z.EncWriteArrayElem()
10556 r.EncodeNil()
10557 } else {
10558 z.EncWriteArrayElem()
10559 yy12 := *x.Tptr
10560 if z.EncBasicHandle().TimeBuiltin() {
10561 r.EncodeTime(yy12)
10562 } else if yyxt13 := z.Extension(yy12); yyxt13 != nil {
10563 z.EncExtension(yy12, yyxt13)
10564 } else if z.EncBinary() {
10565 z.EncBinaryMarshal(yy12)
10566 } else if !z.EncBinary() && z.IsJSONHandle() {
10567 z.EncJSONMarshal(yy12)
10568 } else {
10569 z.EncFallback(yy12)
10570 }
10571 }
10572 z.EncWriteArrayEnd()
10573 } else {
10574 z.EncWriteMapStart(5)
10575 if z.EncBasicHandle().Canonical {
10576 z.EncWriteMapElemKey()
10577 if z.IsJSONHandle() {
10578 z.WriteStr("\"Islice\"")
10579 } else {
10580 r.EncodeString(`Islice`)
10581 }
10582 z.EncWriteMapElemValue()
10583 if x.Islice == nil {
10584 r.EncodeNil()
10585 } else {
10586 z.F.EncSliceIntfV(x.Islice, e)
10587 } // end block: if x.Islice slice == nil
10588 z.EncWriteMapElemKey()
10589 if z.IsJSONHandle() {
10590 z.WriteStr("\"Ms\"")
10591 } else {
10592 r.EncodeString(`Ms`)
10593 }
10594 z.EncWriteMapElemValue()
10595 if x.Ms == nil {
10596 r.EncodeNil()
10597 } else {
10598 z.F.EncMapStringIntfV(x.Ms, e)
10599 } // end block: if x.Ms map == nil
10600 z.EncWriteMapElemKey()
10601 if z.IsJSONHandle() {
10602 z.WriteStr("\"Nintf\"")
10603 } else {
10604 r.EncodeString(`Nintf`)
10605 }
10606 z.EncWriteMapElemValue()
10607 z.EncFallback(x.Nintf)
10608 z.EncWriteMapElemKey()
10609 if z.IsJSONHandle() {
10610 z.WriteStr("\"T\"")
10611 } else {
10612 r.EncodeString(`T`)
10613 }
10614 z.EncWriteMapElemValue()
10615 if z.EncBasicHandle().TimeBuiltin() {
10616 r.EncodeTime(x.T)
10617 } else if yyxt17 := z.Extension(x.T); yyxt17 != nil {
10618 z.EncExtension(x.T, yyxt17)
10619 } else if z.EncBinary() {
10620 z.EncBinaryMarshal(x.T)
10621 } else if !z.EncBinary() && z.IsJSONHandle() {
10622 z.EncJSONMarshal(x.T)
10623 } else {
10624 z.EncFallback(x.T)
10625 }
10626 z.EncWriteMapElemKey()
10627 if z.IsJSONHandle() {
10628 z.WriteStr("\"Tptr\"")
10629 } else {
10630 r.EncodeString(`Tptr`)
10631 }
10632 z.EncWriteMapElemValue()
10633 if yyn7 {
10634 r.EncodeNil()
10635 } else {
10636 yy18 := *x.Tptr
10637 if z.EncBasicHandle().TimeBuiltin() {
10638 r.EncodeTime(yy18)
10639 } else if yyxt19 := z.Extension(yy18); yyxt19 != nil {
10640 z.EncExtension(yy18, yyxt19)
10641 } else if z.EncBinary() {
10642 z.EncBinaryMarshal(yy18)
10643 } else if !z.EncBinary() && z.IsJSONHandle() {
10644 z.EncJSONMarshal(yy18)
10645 } else {
10646 z.EncFallback(yy18)
10647 }
10648 }
10649 } else {
10650 z.EncWriteMapElemKey()
10651 if z.IsJSONHandle() {
10652 z.WriteStr("\"Islice\"")
10653 } else {
10654 r.EncodeString(`Islice`)
10655 }
10656 z.EncWriteMapElemValue()
10657 if x.Islice == nil {
10658 r.EncodeNil()
10659 } else {
10660 z.F.EncSliceIntfV(x.Islice, e)
10661 } // end block: if x.Islice slice == nil
10662 z.EncWriteMapElemKey()
10663 if z.IsJSONHandle() {
10664 z.WriteStr("\"Ms\"")
10665 } else {
10666 r.EncodeString(`Ms`)
10667 }
10668 z.EncWriteMapElemValue()
10669 if x.Ms == nil {
10670 r.EncodeNil()
10671 } else {
10672 z.F.EncMapStringIntfV(x.Ms, e)
10673 } // end block: if x.Ms map == nil
10674 z.EncWriteMapElemKey()
10675 if z.IsJSONHandle() {
10676 z.WriteStr("\"Nintf\"")
10677 } else {
10678 r.EncodeString(`Nintf`)
10679 }
10680 z.EncWriteMapElemValue()
10681 z.EncFallback(x.Nintf)
10682 z.EncWriteMapElemKey()
10683 if z.IsJSONHandle() {
10684 z.WriteStr("\"T\"")
10685 } else {
10686 r.EncodeString(`T`)
10687 }
10688 z.EncWriteMapElemValue()
10689 if z.EncBasicHandle().TimeBuiltin() {
10690 r.EncodeTime(x.T)
10691 } else if yyxt23 := z.Extension(x.T); yyxt23 != nil {
10692 z.EncExtension(x.T, yyxt23)
10693 } else if z.EncBinary() {
10694 z.EncBinaryMarshal(x.T)
10695 } else if !z.EncBinary() && z.IsJSONHandle() {
10696 z.EncJSONMarshal(x.T)
10697 } else {
10698 z.EncFallback(x.T)
10699 }
10700 z.EncWriteMapElemKey()
10701 if z.IsJSONHandle() {
10702 z.WriteStr("\"Tptr\"")
10703 } else {
10704 r.EncodeString(`Tptr`)
10705 }
10706 z.EncWriteMapElemValue()
10707 if yyn7 {
10708 r.EncodeNil()
10709 } else {
10710 yy24 := *x.Tptr
10711 if z.EncBasicHandle().TimeBuiltin() {
10712 r.EncodeTime(yy24)
10713 } else if yyxt25 := z.Extension(yy24); yyxt25 != nil {
10714 z.EncExtension(yy24, yyxt25)
10715 } else if z.EncBinary() {
10716 z.EncBinaryMarshal(yy24)
10717 } else if !z.EncBinary() && z.IsJSONHandle() {
10718 z.EncJSONMarshal(yy24)
10719 } else {
10720 z.EncFallback(yy24)
10721 }
10722 }
10723 }
10724 z.EncWriteMapEnd()
10725 }
10726 }
10727 }
10728
10729 func (x *AnonInTestStrucIntf) CodecDecodeSelf(d *Decoder) {
10730 var h codecSelfer19780
10731 z, r := GenHelper().Decoder(d)
10732 _, _, _ = h, z, r
10733 yyct2 := r.ContainerType()
10734 if yyct2 == codecSelferValueTypeNil19780 {
10735 *(x) = AnonInTestStrucIntf{}
10736 } else if yyct2 == codecSelferValueTypeMap19780 {
10737 yyl2 := z.DecReadMapStart()
10738 if yyl2 == 0 {
10739 } else {
10740 x.codecDecodeSelfFromMap(yyl2, d)
10741 }
10742 z.DecReadMapEnd()
10743 } else if yyct2 == codecSelferValueTypeArray19780 {
10744 yyl2 := z.DecReadArrayStart()
10745 if yyl2 != 0 {
10746 x.codecDecodeSelfFromArray(yyl2, d)
10747 }
10748 z.DecReadArrayEnd()
10749 } else {
10750 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
10751 }
10752 }
10753
10754 func (x *AnonInTestStrucIntf) codecDecodeSelfFromMap(l int, d *Decoder) {
10755 var h codecSelfer19780
10756 z, r := GenHelper().Decoder(d)
10757 _, _, _ = h, z, r
10758 var yyhl3 bool = l >= 0
10759 for yyj3 := 0; ; yyj3++ {
10760 if yyhl3 {
10761 if yyj3 >= l {
10762 break
10763 }
10764 } else {
10765 if z.DecCheckBreak() {
10766 break
10767 }
10768 }
10769 z.DecReadMapElemKey()
10770 yys3 := r.DecodeStringAsBytes()
10771 z.DecReadMapElemValue()
10772 switch string(yys3) {
10773 case "Islice":
10774 z.F.DecSliceIntfX(&x.Islice, d)
10775 case "Ms":
10776 z.F.DecMapStringIntfX(&x.Ms, d)
10777 case "Nintf":
10778 z.DecFallback(&x.Nintf, true)
10779 case "T":
10780 if z.DecBasicHandle().TimeBuiltin() {
10781 x.T = r.DecodeTime()
10782 } else if yyxt11 := z.Extension(x.T); yyxt11 != nil {
10783 z.DecExtension(&x.T, yyxt11)
10784 } else if z.DecBinary() {
10785 z.DecBinaryUnmarshal(&x.T)
10786 } else if !z.DecBinary() && z.IsJSONHandle() {
10787 z.DecJSONUnmarshal(&x.T)
10788 } else {
10789 z.DecFallback(&x.T, false)
10790 }
10791 case "Tptr":
10792 if r.TryNil() {
10793 if x.Tptr != nil { // remove the if-true
10794 x.Tptr = nil
10795 }
10796 } else {
10797 if x.Tptr == nil {
10798 x.Tptr = new(time.Time)
10799 }
10800 if z.DecBasicHandle().TimeBuiltin() {
10801 *x.Tptr = r.DecodeTime()
10802 } else if yyxt13 := z.Extension(x.Tptr); yyxt13 != nil {
10803 z.DecExtension(x.Tptr, yyxt13)
10804 } else if z.DecBinary() {
10805 z.DecBinaryUnmarshal(x.Tptr)
10806 } else if !z.DecBinary() && z.IsJSONHandle() {
10807 z.DecJSONUnmarshal(x.Tptr)
10808 } else {
10809 z.DecFallback(x.Tptr, false)
10810 }
10811 }
10812 default:
10813 z.DecStructFieldNotFound(-1, string(yys3))
10814 } // end switch yys3
10815 } // end for yyj3
10816 }
10817
10818 func (x *AnonInTestStrucIntf) codecDecodeSelfFromArray(l int, d *Decoder) {
10819 var h codecSelfer19780
10820 z, r := GenHelper().Decoder(d)
10821 _, _, _ = h, z, r
10822 var yyj14 int
10823 var yyb14 bool
10824 var yyhl14 bool = l >= 0
10825 yyj14++
10826 if yyhl14 {
10827 yyb14 = yyj14 > l
10828 } else {
10829 yyb14 = z.DecCheckBreak()
10830 }
10831 if yyb14 {
10832 z.DecReadArrayEnd()
10833 return
10834 }
10835 z.DecReadArrayElem()
10836 z.F.DecSliceIntfX(&x.Islice, d)
10837 yyj14++
10838 if yyhl14 {
10839 yyb14 = yyj14 > l
10840 } else {
10841 yyb14 = z.DecCheckBreak()
10842 }
10843 if yyb14 {
10844 z.DecReadArrayEnd()
10845 return
10846 }
10847 z.DecReadArrayElem()
10848 z.F.DecMapStringIntfX(&x.Ms, d)
10849 yyj14++
10850 if yyhl14 {
10851 yyb14 = yyj14 > l
10852 } else {
10853 yyb14 = z.DecCheckBreak()
10854 }
10855 if yyb14 {
10856 z.DecReadArrayEnd()
10857 return
10858 }
10859 z.DecReadArrayElem()
10860 z.DecFallback(&x.Nintf, true)
10861 yyj14++
10862 if yyhl14 {
10863 yyb14 = yyj14 > l
10864 } else {
10865 yyb14 = z.DecCheckBreak()
10866 }
10867 if yyb14 {
10868 z.DecReadArrayEnd()
10869 return
10870 }
10871 z.DecReadArrayElem()
10872 if z.DecBasicHandle().TimeBuiltin() {
10873 x.T = r.DecodeTime()
10874 } else if yyxt22 := z.Extension(x.T); yyxt22 != nil {
10875 z.DecExtension(&x.T, yyxt22)
10876 } else if z.DecBinary() {
10877 z.DecBinaryUnmarshal(&x.T)
10878 } else if !z.DecBinary() && z.IsJSONHandle() {
10879 z.DecJSONUnmarshal(&x.T)
10880 } else {
10881 z.DecFallback(&x.T, false)
10882 }
10883 yyj14++
10884 if yyhl14 {
10885 yyb14 = yyj14 > l
10886 } else {
10887 yyb14 = z.DecCheckBreak()
10888 }
10889 if yyb14 {
10890 z.DecReadArrayEnd()
10891 return
10892 }
10893 z.DecReadArrayElem()
10894 if r.TryNil() {
10895 if x.Tptr != nil { // remove the if-true
10896 x.Tptr = nil
10897 }
10898 } else {
10899 if x.Tptr == nil {
10900 x.Tptr = new(time.Time)
10901 }
10902 if z.DecBasicHandle().TimeBuiltin() {
10903 *x.Tptr = r.DecodeTime()
10904 } else if yyxt24 := z.Extension(x.Tptr); yyxt24 != nil {
10905 z.DecExtension(x.Tptr, yyxt24)
10906 } else if z.DecBinary() {
10907 z.DecBinaryUnmarshal(x.Tptr)
10908 } else if !z.DecBinary() && z.IsJSONHandle() {
10909 z.DecJSONUnmarshal(x.Tptr)
10910 } else {
10911 z.DecFallback(x.Tptr, false)
10912 }
10913 }
10914 for {
10915 yyj14++
10916 if yyhl14 {
10917 yyb14 = yyj14 > l
10918 } else {
10919 yyb14 = z.DecCheckBreak()
10920 }
10921 if yyb14 {
10922 break
10923 }
10924 z.DecReadArrayElem()
10925 z.DecStructFieldNotFound(yyj14-1, "")
10926 }
10927 }
10928
10929 func (x *AnonInTestStrucIntf) IsCodecEmpty() bool {
10930 return !(len(x.Islice) != 0 || len(x.Ms) != 0 || x.Nintf != nil || !(x.T.IsZero()) || false)
10931 }
10932
10933 func (missingFielderT2) codecSelferViaCodecgen() {}
10934 func (x *missingFielderT2) CodecEncodeSelf(e *Encoder) {
10935 var h codecSelfer19780
10936 z, r := GenHelper().Encoder(e)
10937 _, _, _ = h, z, r
10938 if z.EncBasicHandle().CheckCircularRef {
10939 z.EncEncode(x)
10940 return
10941 }
10942 if x == nil {
10943 r.EncodeNil()
10944 } else {
10945 yy2arr2 := z.EncBasicHandle().StructToArray
10946 _ = yy2arr2
10947 const yyr2 bool = false // struct tag has 'toArray'
10948 if yyr2 || yy2arr2 {
10949 z.EncWriteArrayStart(4)
10950 z.EncWriteArrayElem()
10951 r.EncodeString(string(x.S))
10952 z.EncWriteArrayElem()
10953 r.EncodeBool(bool(x.B))
10954 z.EncWriteArrayElem()
10955 r.EncodeFloat64(float64(x.F))
10956 z.EncWriteArrayElem()
10957 r.EncodeInt(int64(x.I))
10958 z.EncWriteArrayEnd()
10959 } else {
10960 z.EncWriteMapStart(4)
10961 if z.EncBasicHandle().Canonical {
10962 z.EncWriteMapElemKey()
10963 if z.IsJSONHandle() {
10964 z.WriteStr("\"B\"")
10965 } else {
10966 r.EncodeString(`B`)
10967 }
10968 z.EncWriteMapElemValue()
10969 r.EncodeBool(bool(x.B))
10970 z.EncWriteMapElemKey()
10971 if z.IsJSONHandle() {
10972 z.WriteStr("\"F\"")
10973 } else {
10974 r.EncodeString(`F`)
10975 }
10976 z.EncWriteMapElemValue()
10977 r.EncodeFloat64(float64(x.F))
10978 z.EncWriteMapElemKey()
10979 if z.IsJSONHandle() {
10980 z.WriteStr("\"I\"")
10981 } else {
10982 r.EncodeString(`I`)
10983 }
10984 z.EncWriteMapElemValue()
10985 r.EncodeInt(int64(x.I))
10986 z.EncWriteMapElemKey()
10987 if z.IsJSONHandle() {
10988 z.WriteStr("\"S\"")
10989 } else {
10990 r.EncodeString(`S`)
10991 }
10992 z.EncWriteMapElemValue()
10993 r.EncodeString(string(x.S))
10994 } else {
10995 z.EncWriteMapElemKey()
10996 if z.IsJSONHandle() {
10997 z.WriteStr("\"S\"")
10998 } else {
10999 r.EncodeString(`S`)
11000 }
11001 z.EncWriteMapElemValue()
11002 r.EncodeString(string(x.S))
11003 z.EncWriteMapElemKey()
11004 if z.IsJSONHandle() {
11005 z.WriteStr("\"B\"")
11006 } else {
11007 r.EncodeString(`B`)
11008 }
11009 z.EncWriteMapElemValue()
11010 r.EncodeBool(bool(x.B))
11011 z.EncWriteMapElemKey()
11012 if z.IsJSONHandle() {
11013 z.WriteStr("\"F\"")
11014 } else {
11015 r.EncodeString(`F`)
11016 }
11017 z.EncWriteMapElemValue()
11018 r.EncodeFloat64(float64(x.F))
11019 z.EncWriteMapElemKey()
11020 if z.IsJSONHandle() {
11021 z.WriteStr("\"I\"")
11022 } else {
11023 r.EncodeString(`I`)
11024 }
11025 z.EncWriteMapElemValue()
11026 r.EncodeInt(int64(x.I))
11027 }
11028 z.EncWriteMapEnd()
11029 }
11030 }
11031 }
11032
11033 func (x *missingFielderT2) CodecDecodeSelf(d *Decoder) {
11034 var h codecSelfer19780
11035 z, r := GenHelper().Decoder(d)
11036 _, _, _ = h, z, r
11037 yyct2 := r.ContainerType()
11038 if yyct2 == codecSelferValueTypeNil19780 {
11039 *(x) = missingFielderT2{}
11040 } else if yyct2 == codecSelferValueTypeMap19780 {
11041 yyl2 := z.DecReadMapStart()
11042 if yyl2 == 0 {
11043 } else {
11044 x.codecDecodeSelfFromMap(yyl2, d)
11045 }
11046 z.DecReadMapEnd()
11047 } else if yyct2 == codecSelferValueTypeArray19780 {
11048 yyl2 := z.DecReadArrayStart()
11049 if yyl2 != 0 {
11050 x.codecDecodeSelfFromArray(yyl2, d)
11051 }
11052 z.DecReadArrayEnd()
11053 } else {
11054 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
11055 }
11056 }
11057
11058 func (x *missingFielderT2) codecDecodeSelfFromMap(l int, d *Decoder) {
11059 var h codecSelfer19780
11060 z, r := GenHelper().Decoder(d)
11061 _, _, _ = h, z, r
11062 var yyhl3 bool = l >= 0
11063 for yyj3 := 0; ; yyj3++ {
11064 if yyhl3 {
11065 if yyj3 >= l {
11066 break
11067 }
11068 } else {
11069 if z.DecCheckBreak() {
11070 break
11071 }
11072 }
11073 z.DecReadMapElemKey()
11074 yys3 := r.DecodeStringAsBytes()
11075 z.DecReadMapElemValue()
11076 switch string(yys3) {
11077 case "S":
11078 x.S = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
11079 case "B":
11080 x.B = (bool)(r.DecodeBool())
11081 case "F":
11082 x.F = (float64)(r.DecodeFloat64())
11083 case "I":
11084 x.I = (int64)(r.DecodeInt64())
11085 default:
11086 z.DecStructFieldNotFound(-1, string(yys3))
11087 } // end switch yys3
11088 } // end for yyj3
11089 }
11090
11091 func (x *missingFielderT2) codecDecodeSelfFromArray(l int, d *Decoder) {
11092 var h codecSelfer19780
11093 z, r := GenHelper().Decoder(d)
11094 _, _, _ = h, z, r
11095 var yyj8 int
11096 var yyb8 bool
11097 var yyhl8 bool = l >= 0
11098 yyj8++
11099 if yyhl8 {
11100 yyb8 = yyj8 > l
11101 } else {
11102 yyb8 = z.DecCheckBreak()
11103 }
11104 if yyb8 {
11105 z.DecReadArrayEnd()
11106 return
11107 }
11108 z.DecReadArrayElem()
11109 x.S = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
11110 yyj8++
11111 if yyhl8 {
11112 yyb8 = yyj8 > l
11113 } else {
11114 yyb8 = z.DecCheckBreak()
11115 }
11116 if yyb8 {
11117 z.DecReadArrayEnd()
11118 return
11119 }
11120 z.DecReadArrayElem()
11121 x.B = (bool)(r.DecodeBool())
11122 yyj8++
11123 if yyhl8 {
11124 yyb8 = yyj8 > l
11125 } else {
11126 yyb8 = z.DecCheckBreak()
11127 }
11128 if yyb8 {
11129 z.DecReadArrayEnd()
11130 return
11131 }
11132 z.DecReadArrayElem()
11133 x.F = (float64)(r.DecodeFloat64())
11134 yyj8++
11135 if yyhl8 {
11136 yyb8 = yyj8 > l
11137 } else {
11138 yyb8 = z.DecCheckBreak()
11139 }
11140 if yyb8 {
11141 z.DecReadArrayEnd()
11142 return
11143 }
11144 z.DecReadArrayElem()
11145 x.I = (int64)(r.DecodeInt64())
11146 for {
11147 yyj8++
11148 if yyhl8 {
11149 yyb8 = yyj8 > l
11150 } else {
11151 yyb8 = z.DecCheckBreak()
11152 }
11153 if yyb8 {
11154 break
11155 }
11156 z.DecReadArrayElem()
11157 z.DecStructFieldNotFound(yyj8-1, "")
11158 }
11159 }
11160
11161 func (x *missingFielderT2) IsCodecEmpty() bool {
11162 return !(x.S != "" || bool(x.B) || x.F != 0 || x.I != 0 || false)
11163 }
11164
11165 func (testSelfExtHelper) codecSelferViaCodecgen() {}
11166 func (x *testSelfExtHelper) CodecEncodeSelf(e *Encoder) {
11167 var h codecSelfer19780
11168 z, r := GenHelper().Encoder(e)
11169 _, _, _ = h, z, r
11170 if z.EncBasicHandle().CheckCircularRef {
11171 z.EncEncode(x)
11172 return
11173 }
11174 if x == nil {
11175 r.EncodeNil()
11176 } else {
11177 yy2arr2 := z.EncBasicHandle().StructToArray
11178 _ = yy2arr2
11179 const yyr2 bool = false // struct tag has 'toArray'
11180 if yyr2 || yy2arr2 {
11181 z.EncWriteArrayStart(3)
11182 z.EncWriteArrayElem()
11183 r.EncodeString(string(x.S))
11184 z.EncWriteArrayElem()
11185 r.EncodeInt(int64(x.I))
11186 z.EncWriteArrayElem()
11187 r.EncodeBool(bool(x.B))
11188 z.EncWriteArrayEnd()
11189 } else {
11190 z.EncWriteMapStart(3)
11191 if z.EncBasicHandle().Canonical {
11192 z.EncWriteMapElemKey()
11193 if z.IsJSONHandle() {
11194 z.WriteStr("\"B\"")
11195 } else {
11196 r.EncodeString(`B`)
11197 }
11198 z.EncWriteMapElemValue()
11199 r.EncodeBool(bool(x.B))
11200 z.EncWriteMapElemKey()
11201 if z.IsJSONHandle() {
11202 z.WriteStr("\"I\"")
11203 } else {
11204 r.EncodeString(`I`)
11205 }
11206 z.EncWriteMapElemValue()
11207 r.EncodeInt(int64(x.I))
11208 z.EncWriteMapElemKey()
11209 if z.IsJSONHandle() {
11210 z.WriteStr("\"S\"")
11211 } else {
11212 r.EncodeString(`S`)
11213 }
11214 z.EncWriteMapElemValue()
11215 r.EncodeString(string(x.S))
11216 } else {
11217 z.EncWriteMapElemKey()
11218 if z.IsJSONHandle() {
11219 z.WriteStr("\"S\"")
11220 } else {
11221 r.EncodeString(`S`)
11222 }
11223 z.EncWriteMapElemValue()
11224 r.EncodeString(string(x.S))
11225 z.EncWriteMapElemKey()
11226 if z.IsJSONHandle() {
11227 z.WriteStr("\"I\"")
11228 } else {
11229 r.EncodeString(`I`)
11230 }
11231 z.EncWriteMapElemValue()
11232 r.EncodeInt(int64(x.I))
11233 z.EncWriteMapElemKey()
11234 if z.IsJSONHandle() {
11235 z.WriteStr("\"B\"")
11236 } else {
11237 r.EncodeString(`B`)
11238 }
11239 z.EncWriteMapElemValue()
11240 r.EncodeBool(bool(x.B))
11241 }
11242 z.EncWriteMapEnd()
11243 }
11244 }
11245 }
11246
11247 func (x *testSelfExtHelper) CodecDecodeSelf(d *Decoder) {
11248 var h codecSelfer19780
11249 z, r := GenHelper().Decoder(d)
11250 _, _, _ = h, z, r
11251 yyct2 := r.ContainerType()
11252 if yyct2 == codecSelferValueTypeNil19780 {
11253 *(x) = testSelfExtHelper{}
11254 } else if yyct2 == codecSelferValueTypeMap19780 {
11255 yyl2 := z.DecReadMapStart()
11256 if yyl2 == 0 {
11257 } else {
11258 x.codecDecodeSelfFromMap(yyl2, d)
11259 }
11260 z.DecReadMapEnd()
11261 } else if yyct2 == codecSelferValueTypeArray19780 {
11262 yyl2 := z.DecReadArrayStart()
11263 if yyl2 != 0 {
11264 x.codecDecodeSelfFromArray(yyl2, d)
11265 }
11266 z.DecReadArrayEnd()
11267 } else {
11268 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
11269 }
11270 }
11271
11272 func (x *testSelfExtHelper) codecDecodeSelfFromMap(l int, d *Decoder) {
11273 var h codecSelfer19780
11274 z, r := GenHelper().Decoder(d)
11275 _, _, _ = h, z, r
11276 var yyhl3 bool = l >= 0
11277 for yyj3 := 0; ; yyj3++ {
11278 if yyhl3 {
11279 if yyj3 >= l {
11280 break
11281 }
11282 } else {
11283 if z.DecCheckBreak() {
11284 break
11285 }
11286 }
11287 z.DecReadMapElemKey()
11288 yys3 := r.DecodeStringAsBytes()
11289 z.DecReadMapElemValue()
11290 switch string(yys3) {
11291 case "S":
11292 x.S = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
11293 case "I":
11294 x.I = (int64)(r.DecodeInt64())
11295 case "B":
11296 x.B = (bool)(r.DecodeBool())
11297 default:
11298 z.DecStructFieldNotFound(-1, string(yys3))
11299 } // end switch yys3
11300 } // end for yyj3
11301 }
11302
11303 func (x *testSelfExtHelper) codecDecodeSelfFromArray(l int, d *Decoder) {
11304 var h codecSelfer19780
11305 z, r := GenHelper().Decoder(d)
11306 _, _, _ = h, z, r
11307 var yyj7 int
11308 var yyb7 bool
11309 var yyhl7 bool = l >= 0
11310 yyj7++
11311 if yyhl7 {
11312 yyb7 = yyj7 > l
11313 } else {
11314 yyb7 = z.DecCheckBreak()
11315 }
11316 if yyb7 {
11317 z.DecReadArrayEnd()
11318 return
11319 }
11320 z.DecReadArrayElem()
11321 x.S = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
11322 yyj7++
11323 if yyhl7 {
11324 yyb7 = yyj7 > l
11325 } else {
11326 yyb7 = z.DecCheckBreak()
11327 }
11328 if yyb7 {
11329 z.DecReadArrayEnd()
11330 return
11331 }
11332 z.DecReadArrayElem()
11333 x.I = (int64)(r.DecodeInt64())
11334 yyj7++
11335 if yyhl7 {
11336 yyb7 = yyj7 > l
11337 } else {
11338 yyb7 = z.DecCheckBreak()
11339 }
11340 if yyb7 {
11341 z.DecReadArrayEnd()
11342 return
11343 }
11344 z.DecReadArrayElem()
11345 x.B = (bool)(r.DecodeBool())
11346 for {
11347 yyj7++
11348 if yyhl7 {
11349 yyb7 = yyj7 > l
11350 } else {
11351 yyb7 = z.DecCheckBreak()
11352 }
11353 if yyb7 {
11354 break
11355 }
11356 z.DecReadArrayElem()
11357 z.DecStructFieldNotFound(yyj7-1, "")
11358 }
11359 }
11360
11361 func (x *testSelfExtHelper) IsCodecEmpty() bool {
11362 return !(x.S != "" || x.I != 0 || bool(x.B) || false)
11363 }
11364
11365 func (TestSelfExtImpl) codecSelferViaCodecgen() {}
11366 func (x *TestSelfExtImpl) CodecEncodeSelf(e *Encoder) {
11367 var h codecSelfer19780
11368 z, r := GenHelper().Encoder(e)
11369 _, _, _ = h, z, r
11370 if z.EncBasicHandle().CheckCircularRef {
11371 z.EncEncode(x)
11372 return
11373 }
11374 if x == nil {
11375 r.EncodeNil()
11376 } else {
11377 yy2arr2 := z.EncBasicHandle().StructToArray
11378 _ = yy2arr2
11379 const yyr2 bool = false // struct tag has 'toArray'
11380 if yyr2 || yy2arr2 {
11381 z.EncWriteArrayStart(3)
11382 z.EncWriteArrayElem()
11383 r.EncodeString(string(x.testSelfExtHelper.S))
11384 z.EncWriteArrayElem()
11385 r.EncodeInt(int64(x.testSelfExtHelper.I))
11386 z.EncWriteArrayElem()
11387 r.EncodeBool(bool(x.testSelfExtHelper.B))
11388 z.EncWriteArrayEnd()
11389 } else {
11390 z.EncWriteMapStart(3)
11391 if z.EncBasicHandle().Canonical {
11392 z.EncWriteMapElemKey()
11393 if z.IsJSONHandle() {
11394 z.WriteStr("\"B\"")
11395 } else {
11396 r.EncodeString(`B`)
11397 }
11398 z.EncWriteMapElemValue()
11399 r.EncodeBool(bool(x.testSelfExtHelper.B))
11400 z.EncWriteMapElemKey()
11401 if z.IsJSONHandle() {
11402 z.WriteStr("\"I\"")
11403 } else {
11404 r.EncodeString(`I`)
11405 }
11406 z.EncWriteMapElemValue()
11407 r.EncodeInt(int64(x.testSelfExtHelper.I))
11408 z.EncWriteMapElemKey()
11409 if z.IsJSONHandle() {
11410 z.WriteStr("\"S\"")
11411 } else {
11412 r.EncodeString(`S`)
11413 }
11414 z.EncWriteMapElemValue()
11415 r.EncodeString(string(x.testSelfExtHelper.S))
11416 } else {
11417 z.EncWriteMapElemKey()
11418 if z.IsJSONHandle() {
11419 z.WriteStr("\"S\"")
11420 } else {
11421 r.EncodeString(`S`)
11422 }
11423 z.EncWriteMapElemValue()
11424 r.EncodeString(string(x.testSelfExtHelper.S))
11425 z.EncWriteMapElemKey()
11426 if z.IsJSONHandle() {
11427 z.WriteStr("\"I\"")
11428 } else {
11429 r.EncodeString(`I`)
11430 }
11431 z.EncWriteMapElemValue()
11432 r.EncodeInt(int64(x.testSelfExtHelper.I))
11433 z.EncWriteMapElemKey()
11434 if z.IsJSONHandle() {
11435 z.WriteStr("\"B\"")
11436 } else {
11437 r.EncodeString(`B`)
11438 }
11439 z.EncWriteMapElemValue()
11440 r.EncodeBool(bool(x.testSelfExtHelper.B))
11441 }
11442 z.EncWriteMapEnd()
11443 }
11444 }
11445 }
11446
11447 func (x *TestSelfExtImpl) CodecDecodeSelf(d *Decoder) {
11448 var h codecSelfer19780
11449 z, r := GenHelper().Decoder(d)
11450 _, _, _ = h, z, r
11451 yyct2 := r.ContainerType()
11452 if yyct2 == codecSelferValueTypeNil19780 {
11453 *(x) = TestSelfExtImpl{}
11454 } else if yyct2 == codecSelferValueTypeMap19780 {
11455 yyl2 := z.DecReadMapStart()
11456 if yyl2 == 0 {
11457 } else {
11458 x.codecDecodeSelfFromMap(yyl2, d)
11459 }
11460 z.DecReadMapEnd()
11461 } else if yyct2 == codecSelferValueTypeArray19780 {
11462 yyl2 := z.DecReadArrayStart()
11463 if yyl2 != 0 {
11464 x.codecDecodeSelfFromArray(yyl2, d)
11465 }
11466 z.DecReadArrayEnd()
11467 } else {
11468 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
11469 }
11470 }
11471
11472 func (x *TestSelfExtImpl) codecDecodeSelfFromMap(l int, d *Decoder) {
11473 var h codecSelfer19780
11474 z, r := GenHelper().Decoder(d)
11475 _, _, _ = h, z, r
11476 var yyhl3 bool = l >= 0
11477 for yyj3 := 0; ; yyj3++ {
11478 if yyhl3 {
11479 if yyj3 >= l {
11480 break
11481 }
11482 } else {
11483 if z.DecCheckBreak() {
11484 break
11485 }
11486 }
11487 z.DecReadMapElemKey()
11488 yys3 := r.DecodeStringAsBytes()
11489 z.DecReadMapElemValue()
11490 switch string(yys3) {
11491 case "S":
11492 x.testSelfExtHelper.S = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
11493 case "I":
11494 x.testSelfExtHelper.I = (int64)(r.DecodeInt64())
11495 case "B":
11496 x.testSelfExtHelper.B = (bool)(r.DecodeBool())
11497 default:
11498 z.DecStructFieldNotFound(-1, string(yys3))
11499 } // end switch yys3
11500 } // end for yyj3
11501 }
11502
11503 func (x *TestSelfExtImpl) codecDecodeSelfFromArray(l int, d *Decoder) {
11504 var h codecSelfer19780
11505 z, r := GenHelper().Decoder(d)
11506 _, _, _ = h, z, r
11507 var yyj7 int
11508 var yyb7 bool
11509 var yyhl7 bool = l >= 0
11510 yyj7++
11511 if yyhl7 {
11512 yyb7 = yyj7 > l
11513 } else {
11514 yyb7 = z.DecCheckBreak()
11515 }
11516 if yyb7 {
11517 z.DecReadArrayEnd()
11518 return
11519 }
11520 z.DecReadArrayElem()
11521 x.testSelfExtHelper.S = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
11522 yyj7++
11523 if yyhl7 {
11524 yyb7 = yyj7 > l
11525 } else {
11526 yyb7 = z.DecCheckBreak()
11527 }
11528 if yyb7 {
11529 z.DecReadArrayEnd()
11530 return
11531 }
11532 z.DecReadArrayElem()
11533 x.testSelfExtHelper.I = (int64)(r.DecodeInt64())
11534 yyj7++
11535 if yyhl7 {
11536 yyb7 = yyj7 > l
11537 } else {
11538 yyb7 = z.DecCheckBreak()
11539 }
11540 if yyb7 {
11541 z.DecReadArrayEnd()
11542 return
11543 }
11544 z.DecReadArrayElem()
11545 x.testSelfExtHelper.B = (bool)(r.DecodeBool())
11546 for {
11547 yyj7++
11548 if yyhl7 {
11549 yyb7 = yyj7 > l
11550 } else {
11551 yyb7 = z.DecCheckBreak()
11552 }
11553 if yyb7 {
11554 break
11555 }
11556 z.DecReadArrayElem()
11557 z.DecStructFieldNotFound(yyj7-1, "")
11558 }
11559 }
11560
11561 func (x *TestSelfExtImpl) IsCodecEmpty() bool {
11562 return !(!(x.testSelfExtHelper.IsCodecEmpty()) || false)
11563 }
11564
11565 func (TestSelfExtImpl2) codecSelferViaCodecgen() {}
11566 func (x *TestSelfExtImpl2) CodecEncodeSelf(e *Encoder) {
11567 var h codecSelfer19780
11568 z, r := GenHelper().Encoder(e)
11569 _, _, _ = h, z, r
11570 if z.EncBasicHandle().CheckCircularRef {
11571 z.EncEncode(x)
11572 return
11573 }
11574 if x == nil {
11575 r.EncodeNil()
11576 } else {
11577 yy2arr2 := z.EncBasicHandle().StructToArray
11578 _ = yy2arr2
11579 const yyr2 bool = false // struct tag has 'toArray'
11580 if yyr2 || yy2arr2 {
11581 z.EncWriteArrayStart(2)
11582 z.EncWriteArrayElem()
11583 r.EncodeString(string(x.M))
11584 z.EncWriteArrayElem()
11585 r.EncodeBool(bool(x.O))
11586 z.EncWriteArrayEnd()
11587 } else {
11588 z.EncWriteMapStart(2)
11589 if z.EncBasicHandle().Canonical {
11590 z.EncWriteMapElemKey()
11591 if z.IsJSONHandle() {
11592 z.WriteStr("\"M\"")
11593 } else {
11594 r.EncodeString(`M`)
11595 }
11596 z.EncWriteMapElemValue()
11597 r.EncodeString(string(x.M))
11598 z.EncWriteMapElemKey()
11599 if z.IsJSONHandle() {
11600 z.WriteStr("\"O\"")
11601 } else {
11602 r.EncodeString(`O`)
11603 }
11604 z.EncWriteMapElemValue()
11605 r.EncodeBool(bool(x.O))
11606 } else {
11607 z.EncWriteMapElemKey()
11608 if z.IsJSONHandle() {
11609 z.WriteStr("\"M\"")
11610 } else {
11611 r.EncodeString(`M`)
11612 }
11613 z.EncWriteMapElemValue()
11614 r.EncodeString(string(x.M))
11615 z.EncWriteMapElemKey()
11616 if z.IsJSONHandle() {
11617 z.WriteStr("\"O\"")
11618 } else {
11619 r.EncodeString(`O`)
11620 }
11621 z.EncWriteMapElemValue()
11622 r.EncodeBool(bool(x.O))
11623 }
11624 z.EncWriteMapEnd()
11625 }
11626 }
11627 }
11628
11629 func (x *TestSelfExtImpl2) CodecDecodeSelf(d *Decoder) {
11630 var h codecSelfer19780
11631 z, r := GenHelper().Decoder(d)
11632 _, _, _ = h, z, r
11633 yyct2 := r.ContainerType()
11634 if yyct2 == codecSelferValueTypeNil19780 {
11635 *(x) = TestSelfExtImpl2{}
11636 } else if yyct2 == codecSelferValueTypeMap19780 {
11637 yyl2 := z.DecReadMapStart()
11638 if yyl2 == 0 {
11639 } else {
11640 x.codecDecodeSelfFromMap(yyl2, d)
11641 }
11642 z.DecReadMapEnd()
11643 } else if yyct2 == codecSelferValueTypeArray19780 {
11644 yyl2 := z.DecReadArrayStart()
11645 if yyl2 != 0 {
11646 x.codecDecodeSelfFromArray(yyl2, d)
11647 }
11648 z.DecReadArrayEnd()
11649 } else {
11650 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
11651 }
11652 }
11653
11654 func (x *TestSelfExtImpl2) codecDecodeSelfFromMap(l int, d *Decoder) {
11655 var h codecSelfer19780
11656 z, r := GenHelper().Decoder(d)
11657 _, _, _ = h, z, r
11658 var yyhl3 bool = l >= 0
11659 for yyj3 := 0; ; yyj3++ {
11660 if yyhl3 {
11661 if yyj3 >= l {
11662 break
11663 }
11664 } else {
11665 if z.DecCheckBreak() {
11666 break
11667 }
11668 }
11669 z.DecReadMapElemKey()
11670 yys3 := r.DecodeStringAsBytes()
11671 z.DecReadMapElemValue()
11672 switch string(yys3) {
11673 case "M":
11674 x.M = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
11675 case "O":
11676 x.O = (bool)(r.DecodeBool())
11677 default:
11678 z.DecStructFieldNotFound(-1, string(yys3))
11679 } // end switch yys3
11680 } // end for yyj3
11681 }
11682
11683 func (x *TestSelfExtImpl2) codecDecodeSelfFromArray(l int, d *Decoder) {
11684 var h codecSelfer19780
11685 z, r := GenHelper().Decoder(d)
11686 _, _, _ = h, z, r
11687 var yyj6 int
11688 var yyb6 bool
11689 var yyhl6 bool = l >= 0
11690 yyj6++
11691 if yyhl6 {
11692 yyb6 = yyj6 > l
11693 } else {
11694 yyb6 = z.DecCheckBreak()
11695 }
11696 if yyb6 {
11697 z.DecReadArrayEnd()
11698 return
11699 }
11700 z.DecReadArrayElem()
11701 x.M = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
11702 yyj6++
11703 if yyhl6 {
11704 yyb6 = yyj6 > l
11705 } else {
11706 yyb6 = z.DecCheckBreak()
11707 }
11708 if yyb6 {
11709 z.DecReadArrayEnd()
11710 return
11711 }
11712 z.DecReadArrayElem()
11713 x.O = (bool)(r.DecodeBool())
11714 for {
11715 yyj6++
11716 if yyhl6 {
11717 yyb6 = yyj6 > l
11718 } else {
11719 yyb6 = z.DecCheckBreak()
11720 }
11721 if yyb6 {
11722 break
11723 }
11724 z.DecReadArrayElem()
11725 z.DecStructFieldNotFound(yyj6-1, "")
11726 }
11727 }
11728
11729 func (x *TestSelfExtImpl2) IsCodecEmpty() bool {
11730 return !(x.M != "" || bool(x.O) || false)
11731 }
11732
11733 func (TestTwoNakedInterfaces) codecSelferViaCodecgen() {}
11734 func (x *TestTwoNakedInterfaces) CodecEncodeSelf(e *Encoder) {
11735 var h codecSelfer19780
11736 z, r := GenHelper().Encoder(e)
11737 _, _, _ = h, z, r
11738 if z.EncBasicHandle().CheckCircularRef {
11739 z.EncEncode(x)
11740 return
11741 }
11742 if x == nil {
11743 r.EncodeNil()
11744 } else {
11745 yy2arr2 := z.EncBasicHandle().StructToArray
11746 _ = yy2arr2
11747 const yyr2 bool = false // struct tag has 'toArray'
11748 if yyr2 || yy2arr2 {
11749 z.EncWriteArrayStart(2)
11750 z.EncWriteArrayElem()
11751 z.EncFallback(x.A)
11752 z.EncWriteArrayElem()
11753 z.EncFallback(x.B)
11754 z.EncWriteArrayEnd()
11755 } else {
11756 z.EncWriteMapStart(2)
11757 if z.EncBasicHandle().Canonical {
11758 z.EncWriteMapElemKey()
11759 if z.IsJSONHandle() {
11760 z.WriteStr("\"A\"")
11761 } else {
11762 r.EncodeString(`A`)
11763 }
11764 z.EncWriteMapElemValue()
11765 z.EncFallback(x.A)
11766 z.EncWriteMapElemKey()
11767 if z.IsJSONHandle() {
11768 z.WriteStr("\"B\"")
11769 } else {
11770 r.EncodeString(`B`)
11771 }
11772 z.EncWriteMapElemValue()
11773 z.EncFallback(x.B)
11774 } else {
11775 z.EncWriteMapElemKey()
11776 if z.IsJSONHandle() {
11777 z.WriteStr("\"A\"")
11778 } else {
11779 r.EncodeString(`A`)
11780 }
11781 z.EncWriteMapElemValue()
11782 z.EncFallback(x.A)
11783 z.EncWriteMapElemKey()
11784 if z.IsJSONHandle() {
11785 z.WriteStr("\"B\"")
11786 } else {
11787 r.EncodeString(`B`)
11788 }
11789 z.EncWriteMapElemValue()
11790 z.EncFallback(x.B)
11791 }
11792 z.EncWriteMapEnd()
11793 }
11794 }
11795 }
11796
11797 func (x *TestTwoNakedInterfaces) CodecDecodeSelf(d *Decoder) {
11798 var h codecSelfer19780
11799 z, r := GenHelper().Decoder(d)
11800 _, _, _ = h, z, r
11801 yyct2 := r.ContainerType()
11802 if yyct2 == codecSelferValueTypeNil19780 {
11803 *(x) = TestTwoNakedInterfaces{}
11804 } else if yyct2 == codecSelferValueTypeMap19780 {
11805 yyl2 := z.DecReadMapStart()
11806 if yyl2 == 0 {
11807 } else {
11808 x.codecDecodeSelfFromMap(yyl2, d)
11809 }
11810 z.DecReadMapEnd()
11811 } else if yyct2 == codecSelferValueTypeArray19780 {
11812 yyl2 := z.DecReadArrayStart()
11813 if yyl2 != 0 {
11814 x.codecDecodeSelfFromArray(yyl2, d)
11815 }
11816 z.DecReadArrayEnd()
11817 } else {
11818 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
11819 }
11820 }
11821
11822 func (x *TestTwoNakedInterfaces) codecDecodeSelfFromMap(l int, d *Decoder) {
11823 var h codecSelfer19780
11824 z, r := GenHelper().Decoder(d)
11825 _, _, _ = h, z, r
11826 var yyhl3 bool = l >= 0
11827 for yyj3 := 0; ; yyj3++ {
11828 if yyhl3 {
11829 if yyj3 >= l {
11830 break
11831 }
11832 } else {
11833 if z.DecCheckBreak() {
11834 break
11835 }
11836 }
11837 z.DecReadMapElemKey()
11838 yys3 := r.DecodeStringAsBytes()
11839 z.DecReadMapElemValue()
11840 switch string(yys3) {
11841 case "A":
11842 z.DecFallback(&x.A, true)
11843 case "B":
11844 z.DecFallback(&x.B, true)
11845 default:
11846 z.DecStructFieldNotFound(-1, string(yys3))
11847 } // end switch yys3
11848 } // end for yyj3
11849 }
11850
11851 func (x *TestTwoNakedInterfaces) codecDecodeSelfFromArray(l int, d *Decoder) {
11852 var h codecSelfer19780
11853 z, r := GenHelper().Decoder(d)
11854 _, _, _ = h, z, r
11855 var yyj8 int
11856 var yyb8 bool
11857 var yyhl8 bool = l >= 0
11858 yyj8++
11859 if yyhl8 {
11860 yyb8 = yyj8 > l
11861 } else {
11862 yyb8 = z.DecCheckBreak()
11863 }
11864 if yyb8 {
11865 z.DecReadArrayEnd()
11866 return
11867 }
11868 z.DecReadArrayElem()
11869 z.DecFallback(&x.A, true)
11870 yyj8++
11871 if yyhl8 {
11872 yyb8 = yyj8 > l
11873 } else {
11874 yyb8 = z.DecCheckBreak()
11875 }
11876 if yyb8 {
11877 z.DecReadArrayEnd()
11878 return
11879 }
11880 z.DecReadArrayElem()
11881 z.DecFallback(&x.B, true)
11882 for {
11883 yyj8++
11884 if yyhl8 {
11885 yyb8 = yyj8 > l
11886 } else {
11887 yyb8 = z.DecCheckBreak()
11888 }
11889 if yyb8 {
11890 break
11891 }
11892 z.DecReadArrayElem()
11893 z.DecStructFieldNotFound(yyj8-1, "")
11894 }
11895 }
11896
11897 func (x *TestTwoNakedInterfaces) IsCodecEmpty() bool {
11898 return !(x.A != nil || x.B != nil || false)
11899 }
11900
11901 func (TestStrucFlex) codecSelferViaCodecgen() {}
11902 func (x *TestStrucFlex) CodecEncodeSelf(e *Encoder) {
11903 var h codecSelfer19780
11904 z, r := GenHelper().Encoder(e)
11905 _, _, _ = h, z, r
11906 if z.EncBasicHandle().CheckCircularRef {
11907 z.EncEncode(x)
11908 return
11909 }
11910 if x == nil {
11911 r.EncodeNil()
11912 } else {
11913 yy2arr2 := z.EncBasicHandle().StructToArray
11914 _ = yy2arr2
11915 const yyr2 bool = false // struct tag has 'toArray'
11916 var yyn54 bool = x.TestStrucCommon.AnonInTestStrucSlim == nil || x.TestStrucCommon.AnonInTestStrucSlim.P == nil
11917 var yyn55 bool = x.TestStrucCommon.NotAnonSlim == nil
11918 var yyn58 bool = x.TestStrucCommon.Nint64 == nil
11919 var yyn81 bool = x.Ttimeptr == nil
11920 var yyn82 bool = x.AnonInTestStrucIntf == nil
11921 var yyn83 bool = x.AnonInTestStrucIntf == nil
11922 var yyn84 bool = x.AnonInTestStrucIntf == nil
11923 var yyn85 bool = x.AnonInTestStrucIntf == nil
11924 var yyn86 bool = x.AnonInTestStrucIntf == nil || x.AnonInTestStrucIntf.Tptr == nil
11925 var yyn91 bool = x.Nteststruc == nil
11926 var yyq2 = [95]bool{ // should field at this index be written?
11927 x.S != "", // S
11928 x.I64 != 0, // I64
11929 x.I32 != 0, // I32
11930 x.I16 != 0, // I16
11931 x.I8 != 0, // I8
11932 x.I64n != 0, // I64n
11933 x.I32n != 0, // I32n
11934 x.I16n != 0, // I16n
11935 x.I8n != 0, // I8n
11936 x.Ui64 != 0, // Ui64
11937 x.Ui32 != 0, // Ui32
11938 x.Ui16 != 0, // Ui16
11939 x.Ui8 != 0, // Ui8
11940 x.F64 != 0, // F64
11941 x.F32 != 0, // F32
11942 bool(x.B), // B
11943 x.By != 0, // By
11944 len(x.Sslice) != 0, // Sslice
11945 len(x.I64slice) != 0, // I64slice
11946 len(x.I32slice) != 0, // I32slice
11947 len(x.Ui64slice) != 0, // Ui64slice
11948 len(x.Ui8slice) != 0, // Ui8slice
11949 len(x.Bslice) != 0, // Bslice
11950 len(x.Byslice) != 0, // Byslice
11951 len(x.BytesSlice) != 0, // BytesSlice
11952 len(x.Iptrslice) != 0, // Iptrslice
11953 len(x.WrapSliceInt64) != 0, // WrapSliceInt64
11954 len(x.WrapSliceString) != 0, // WrapSliceString
11955 len(x.Msint) != 0, // Msint
11956 len(x.Msbytes) != 0, // Msbytes
11957 !(x.Simplef.IsCodecEmpty()), // Simplef
11958 len(x.SstrUi64T) != 0, // SstrUi64T
11959 len(x.MstrUi64T) != 0, // MstrUi64T
11960 x.AS != "", // AS
11961 x.AI64 != 0, // AI64
11962 x.AI16 != 0, // AI16
11963 x.AUi64 != 0, // AUi64
11964 len(x.ASslice) != 0, // ASslice
11965 len(x.AI64slice) != 0, // AI64slice
11966 len(x.AUi64slice) != 0, // AUi64slice
11967 len(x.AF64slice) != 0, // AF64slice
11968 len(x.AF32slice) != 0, // AF32slice
11969 len(x.AMSS) != 0, // AMSS
11970 len(x.AMSU64) != 0, // AMSU64
11971 x.AI64arr8 != [8]int64{}, // AI64arr8
11972 false, // AI64arr0
11973 len(x.AI64slice0) != 0, // AI64slice0
11974 len(x.AUi64sliceN) != 0, // AUi64sliceN
11975 len(x.AMSU64N) != 0, // AMSU64N
11976 len(x.AMSU64E) != 0, // AMSU64E
11977 !(x.NotAnon.IsCodecEmpty()), // NotAnon
11978 x.TestStrucCommon.AnonInTestStrucSlim != nil && x.P != nil, // P
11979 x.NotAnonSlim != nil, // NotAnonSlim
11980 len(x.Nmap) != 0, // Nmap
11981 len(x.Nslice) != 0, // Nslice
11982 x.Nint64 != nil, // Nint64
11983 len(x.Chstr) != 0, // Chstr
11984 len(x.Mis) != 0, // Mis
11985 len(x.Mbu64) != 0, // Mbu64
11986 len(x.Mu8e) != 0, // Mu8e
11987 len(x.Mu8u64) != 0, // Mu8u64
11988 len(x.Msp2ss) != 0, // Msp2ss
11989 len(x.Mip2ss) != 0, // Mip2ss
11990 len(x.Ms2misu) != 0, // Ms2misu
11991 len(x.Miwu64s) != 0, // Miwu64s
11992 len(x.Mfwss) != 0, // Mfwss
11993 len(x.Mf32wss) != 0, // Mf32wss
11994 len(x.Mui2wss) != 0, // Mui2wss
11995 len(x.Msu2wss) != 0, // Msu2wss
11996 x.Ci64 != 0, // Ci64
11997 len(x.Swrapbytes) != 0, // Swrapbytes
11998 len(x.Swrapuint8) != 0, // Swrapuint8
11999 x.ArrStrUi64T != [4]stringUint64T{}, // ArrStrUi64T
12000 x.Ui64array != [4]uint64{}, // Ui64array
12001 len(x.Ui64slicearray) != 0, // Ui64slicearray
12002 len(x.SintfAarray) != 0, // SintfAarray
12003 len(x.MstrUi64TSelf) != 0, // MstrUi64TSelf
12004 !(x.Ttime.IsZero()), // Ttime
12005 x.Ttimeptr != nil, // Ttimeptr
12006 x.AnonInTestStrucIntf != nil && len(x.Islice) != 0, // Islice
12007 x.AnonInTestStrucIntf != nil && len(x.Ms) != 0, // Ms
12008 x.AnonInTestStrucIntf != nil && x.Nintf != nil, // Nintf
12009 x.AnonInTestStrucIntf != nil && !(x.T.IsZero()), // T
12010 x.AnonInTestStrucIntf != nil && x.Tptr != nil, // Tptr
12011 len(x.Msu) != 0, // Msu
12012 len(x.Mtsptr) != 0, // Mtsptr
12013 len(x.Mts) != 0, // Mts
12014 len(x.Its) != 0, // Its
12015 x.Nteststruc != nil, // Nteststruc
12016 bool(x.MarJ), // MarJ
12017 x.MarT != "", // MarT
12018 len(x.MarB) != 0, // MarB
12019 x.XuintToBytes != 0, // XuintToBytes
12020 x.Cmplx64 != 0, // Cmplx64
12021 x.Cmplx128 != 0, // Cmplx128
12022 }
12023 _ = yyq2
12024 if yyr2 || yy2arr2 {
12025 z.EncWriteArrayStart(95)
12026 z.EncWriteArrayElem()
12027 if yyq2[0] {
12028 r.EncodeString(string(x.TestStrucCommon.S))
12029 } else {
12030 r.EncodeString("")
12031 }
12032 z.EncWriteArrayElem()
12033 if yyq2[1] {
12034 r.EncodeInt(int64(x.TestStrucCommon.I64))
12035 } else {
12036 r.EncodeInt(0)
12037 }
12038 z.EncWriteArrayElem()
12039 if yyq2[2] {
12040 r.EncodeInt(int64(x.TestStrucCommon.I32))
12041 } else {
12042 r.EncodeInt(0)
12043 }
12044 z.EncWriteArrayElem()
12045 if yyq2[3] {
12046 r.EncodeInt(int64(x.TestStrucCommon.I16))
12047 } else {
12048 r.EncodeInt(0)
12049 }
12050 z.EncWriteArrayElem()
12051 if yyq2[4] {
12052 r.EncodeInt(int64(x.TestStrucCommon.I8))
12053 } else {
12054 r.EncodeInt(0)
12055 }
12056 z.EncWriteArrayElem()
12057 if yyq2[5] {
12058 r.EncodeInt(int64(x.TestStrucCommon.I64n))
12059 } else {
12060 r.EncodeInt(0)
12061 }
12062 z.EncWriteArrayElem()
12063 if yyq2[6] {
12064 r.EncodeInt(int64(x.TestStrucCommon.I32n))
12065 } else {
12066 r.EncodeInt(0)
12067 }
12068 z.EncWriteArrayElem()
12069 if yyq2[7] {
12070 r.EncodeInt(int64(x.TestStrucCommon.I16n))
12071 } else {
12072 r.EncodeInt(0)
12073 }
12074 z.EncWriteArrayElem()
12075 if yyq2[8] {
12076 r.EncodeInt(int64(x.TestStrucCommon.I8n))
12077 } else {
12078 r.EncodeInt(0)
12079 }
12080 z.EncWriteArrayElem()
12081 if yyq2[9] {
12082 r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
12083 } else {
12084 r.EncodeUint(0)
12085 }
12086 z.EncWriteArrayElem()
12087 if yyq2[10] {
12088 r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
12089 } else {
12090 r.EncodeUint(0)
12091 }
12092 z.EncWriteArrayElem()
12093 if yyq2[11] {
12094 r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
12095 } else {
12096 r.EncodeUint(0)
12097 }
12098 z.EncWriteArrayElem()
12099 if yyq2[12] {
12100 r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
12101 } else {
12102 r.EncodeUint(0)
12103 }
12104 z.EncWriteArrayElem()
12105 if yyq2[13] {
12106 r.EncodeFloat64(float64(x.TestStrucCommon.F64))
12107 } else {
12108 r.EncodeFloat64(0)
12109 }
12110 z.EncWriteArrayElem()
12111 if yyq2[14] {
12112 r.EncodeFloat32(float32(x.TestStrucCommon.F32))
12113 } else {
12114 r.EncodeFloat32(0)
12115 }
12116 z.EncWriteArrayElem()
12117 if yyq2[15] {
12118 r.EncodeBool(bool(x.TestStrucCommon.B))
12119 } else {
12120 r.EncodeBool(false)
12121 }
12122 z.EncWriteArrayElem()
12123 if yyq2[16] {
12124 r.EncodeUint(uint64(x.TestStrucCommon.By))
12125 } else {
12126 r.EncodeUint(0)
12127 }
12128 z.EncWriteArrayElem()
12129 if yyq2[17] {
12130 if x.TestStrucCommon.Sslice == nil {
12131 r.EncodeNil()
12132 } else {
12133 z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
12134 } // end block: if x.TestStrucCommon.Sslice slice == nil
12135 } else {
12136 r.EncodeNil()
12137 }
12138 z.EncWriteArrayElem()
12139 if yyq2[18] {
12140 if x.TestStrucCommon.I64slice == nil {
12141 r.EncodeNil()
12142 } else {
12143 z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
12144 } // end block: if x.TestStrucCommon.I64slice slice == nil
12145 } else {
12146 r.EncodeNil()
12147 }
12148 z.EncWriteArrayElem()
12149 if yyq2[19] {
12150 if x.TestStrucCommon.I32slice == nil {
12151 r.EncodeNil()
12152 } else {
12153 z.F.EncSliceInt32V(x.TestStrucCommon.I32slice, e)
12154 } // end block: if x.TestStrucCommon.I32slice slice == nil
12155 } else {
12156 r.EncodeNil()
12157 }
12158 z.EncWriteArrayElem()
12159 if yyq2[20] {
12160 if x.TestStrucCommon.Ui64slice == nil {
12161 r.EncodeNil()
12162 } else {
12163 z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
12164 } // end block: if x.TestStrucCommon.Ui64slice slice == nil
12165 } else {
12166 r.EncodeNil()
12167 }
12168 z.EncWriteArrayElem()
12169 if yyq2[21] {
12170 if x.TestStrucCommon.Ui8slice == nil {
12171 r.EncodeNil()
12172 } else {
12173 r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
12174 } // end block: if x.TestStrucCommon.Ui8slice slice == nil
12175 } else {
12176 r.EncodeNil()
12177 }
12178 z.EncWriteArrayElem()
12179 if yyq2[22] {
12180 if x.TestStrucCommon.Bslice == nil {
12181 r.EncodeNil()
12182 } else {
12183 z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
12184 } // end block: if x.TestStrucCommon.Bslice slice == nil
12185 } else {
12186 r.EncodeNil()
12187 }
12188 z.EncWriteArrayElem()
12189 if yyq2[23] {
12190 if x.TestStrucCommon.Byslice == nil {
12191 r.EncodeNil()
12192 } else {
12193 r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
12194 } // end block: if x.TestStrucCommon.Byslice slice == nil
12195 } else {
12196 r.EncodeNil()
12197 }
12198 z.EncWriteArrayElem()
12199 if yyq2[24] {
12200 if x.TestStrucCommon.BytesSlice == nil {
12201 r.EncodeNil()
12202 } else {
12203 z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
12204 } // end block: if x.TestStrucCommon.BytesSlice slice == nil
12205 } else {
12206 r.EncodeNil()
12207 }
12208 z.EncWriteArrayElem()
12209 if yyq2[25] {
12210 if x.TestStrucCommon.Iptrslice == nil {
12211 r.EncodeNil()
12212 } else {
12213 h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
12214 } // end block: if x.TestStrucCommon.Iptrslice slice == nil
12215 } else {
12216 r.EncodeNil()
12217 }
12218 z.EncWriteArrayElem()
12219 if yyq2[26] {
12220 if yyxt124 := z.Extension(x.TestStrucCommon.WrapSliceInt64); yyxt124 != nil {
12221 z.EncExtension(x.TestStrucCommon.WrapSliceInt64, yyxt124)
12222 } else {
12223 x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
12224 }
12225 } else {
12226 r.EncodeNil()
12227 }
12228 z.EncWriteArrayElem()
12229 if yyq2[27] {
12230 if yyxt125 := z.Extension(x.TestStrucCommon.WrapSliceString); yyxt125 != nil {
12231 z.EncExtension(x.TestStrucCommon.WrapSliceString, yyxt125)
12232 } else {
12233 x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
12234 }
12235 } else {
12236 r.EncodeNil()
12237 }
12238 z.EncWriteArrayElem()
12239 if yyq2[28] {
12240 if x.TestStrucCommon.Msint == nil {
12241 r.EncodeNil()
12242 } else {
12243 z.F.EncMapStringIntV(x.TestStrucCommon.Msint, e)
12244 } // end block: if x.TestStrucCommon.Msint map == nil
12245 } else {
12246 r.EncodeNil()
12247 }
12248 z.EncWriteArrayElem()
12249 if yyq2[29] {
12250 if x.TestStrucCommon.Msbytes == nil {
12251 r.EncodeNil()
12252 } else {
12253 z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
12254 } // end block: if x.TestStrucCommon.Msbytes map == nil
12255 } else {
12256 r.EncodeNil()
12257 }
12258 z.EncWriteArrayElem()
12259 if yyq2[30] {
12260 yy128 := &x.TestStrucCommon.Simplef
12261 if yyxt129 := z.Extension(yy128); yyxt129 != nil {
12262 z.EncExtension(yy128, yyxt129)
12263 } else {
12264 yy128.CodecEncodeSelf(e)
12265 }
12266 } else {
12267 r.EncodeNil()
12268 }
12269 z.EncWriteArrayElem()
12270 if yyq2[31] {
12271 if x.TestStrucCommon.SstrUi64T == nil {
12272 r.EncodeNil()
12273 } else {
12274 h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
12275 } // end block: if x.TestStrucCommon.SstrUi64T slice == nil
12276 } else {
12277 r.EncodeNil()
12278 }
12279 z.EncWriteArrayElem()
12280 if yyq2[32] {
12281 if x.TestStrucCommon.MstrUi64T == nil {
12282 r.EncodeNil()
12283 } else {
12284 h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
12285 } // end block: if x.TestStrucCommon.MstrUi64T map == nil
12286 } else {
12287 r.EncodeNil()
12288 }
12289 z.EncWriteArrayElem()
12290 if yyq2[33] {
12291 r.EncodeString(string(x.TestStrucCommon.AnonInTestStruc.AS))
12292 } else {
12293 r.EncodeString("")
12294 }
12295 z.EncWriteArrayElem()
12296 if yyq2[34] {
12297 r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
12298 } else {
12299 r.EncodeInt(0)
12300 }
12301 z.EncWriteArrayElem()
12302 if yyq2[35] {
12303 r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
12304 } else {
12305 r.EncodeInt(0)
12306 }
12307 z.EncWriteArrayElem()
12308 if yyq2[36] {
12309 r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
12310 } else {
12311 r.EncodeUint(0)
12312 }
12313 z.EncWriteArrayElem()
12314 if yyq2[37] {
12315 if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
12316 r.EncodeNil()
12317 } else {
12318 z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
12319 } // end block: if x.TestStrucCommon.AnonInTestStruc.ASslice slice == nil
12320 } else {
12321 r.EncodeNil()
12322 }
12323 z.EncWriteArrayElem()
12324 if yyq2[38] {
12325 if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
12326 r.EncodeNil()
12327 } else {
12328 z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
12329 } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice slice == nil
12330 } else {
12331 r.EncodeNil()
12332 }
12333 z.EncWriteArrayElem()
12334 if yyq2[39] {
12335 if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
12336 r.EncodeNil()
12337 } else {
12338 z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
12339 } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64slice slice == nil
12340 } else {
12341 r.EncodeNil()
12342 }
12343 z.EncWriteArrayElem()
12344 if yyq2[40] {
12345 if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
12346 r.EncodeNil()
12347 } else {
12348 z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
12349 } // end block: if x.TestStrucCommon.AnonInTestStruc.AF64slice slice == nil
12350 } else {
12351 r.EncodeNil()
12352 }
12353 z.EncWriteArrayElem()
12354 if yyq2[41] {
12355 if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
12356 r.EncodeNil()
12357 } else {
12358 z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
12359 } // end block: if x.TestStrucCommon.AnonInTestStruc.AF32slice slice == nil
12360 } else {
12361 r.EncodeNil()
12362 }
12363 z.EncWriteArrayElem()
12364 if yyq2[42] {
12365 if x.TestStrucCommon.AnonInTestStruc.AMSS == nil {
12366 r.EncodeNil()
12367 } else {
12368 z.F.EncMapStringStringV(x.TestStrucCommon.AnonInTestStruc.AMSS, e)
12369 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSS map == nil
12370 } else {
12371 r.EncodeNil()
12372 }
12373 z.EncWriteArrayElem()
12374 if yyq2[43] {
12375 if x.TestStrucCommon.AnonInTestStruc.AMSU64 == nil {
12376 r.EncodeNil()
12377 } else {
12378 z.F.EncMapStringUint64V(x.TestStrucCommon.AnonInTestStruc.AMSU64, e)
12379 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU64 map == nil
12380 } else {
12381 r.EncodeNil()
12382 }
12383 z.EncWriteArrayElem()
12384 if yyq2[44] {
12385 yy143 := &x.TestStrucCommon.AnonInTestStruc.AI64arr8
12386 h.encArray8int64((*[8]int64)(yy143), e)
12387 } else {
12388 r.EncodeNil()
12389 }
12390 z.EncWriteArrayElem()
12391 if yyq2[45] {
12392 yy145 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
12393 h.encArray0int64((*[0]int64)(yy145), e)
12394 } else {
12395 r.EncodeNil()
12396 }
12397 z.EncWriteArrayElem()
12398 if yyq2[46] {
12399 if x.TestStrucCommon.AnonInTestStruc.AI64slice0 == nil {
12400 r.EncodeNil()
12401 } else {
12402 z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
12403 } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice0 slice == nil
12404 } else {
12405 r.EncodeNil()
12406 }
12407 z.EncWriteArrayElem()
12408 if yyq2[47] {
12409 if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
12410 r.EncodeNil()
12411 } else {
12412 z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
12413 } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN slice == nil
12414 } else {
12415 r.EncodeNil()
12416 }
12417 z.EncWriteArrayElem()
12418 if yyq2[48] {
12419 if x.TestStrucCommon.AnonInTestStruc.AMSU64N == nil {
12420 r.EncodeNil()
12421 } else {
12422 z.F.EncMapStringUint64V(x.TestStrucCommon.AnonInTestStruc.AMSU64N, e)
12423 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU64N map == nil
12424 } else {
12425 r.EncodeNil()
12426 }
12427 z.EncWriteArrayElem()
12428 if yyq2[49] {
12429 if x.TestStrucCommon.AnonInTestStruc.AMSU64E == nil {
12430 r.EncodeNil()
12431 } else {
12432 z.F.EncMapStringUint64V(x.TestStrucCommon.AnonInTestStruc.AMSU64E, e)
12433 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU64E map == nil
12434 } else {
12435 r.EncodeNil()
12436 }
12437 z.EncWriteArrayElem()
12438 if yyq2[50] {
12439 yy151 := &x.TestStrucCommon.NotAnon
12440 if yyxt152 := z.Extension(yy151); yyxt152 != nil {
12441 z.EncExtension(yy151, yyxt152)
12442 } else {
12443 yy151.CodecEncodeSelf(e)
12444 }
12445 } else {
12446 r.EncodeNil()
12447 }
12448 if yyn54 {
12449 z.EncWriteArrayElem()
12450 r.EncodeNil()
12451 } else {
12452 z.EncWriteArrayElem()
12453 if yyq2[51] {
12454 yy153 := *x.TestStrucCommon.AnonInTestStrucSlim.P
12455 r.EncodeString(string(yy153))
12456 } else {
12457 r.EncodeNil()
12458 }
12459 }
12460 if yyn55 {
12461 z.EncWriteArrayElem()
12462 r.EncodeNil()
12463 } else {
12464 z.EncWriteArrayElem()
12465 if yyq2[52] {
12466 if yyxt155 := z.Extension(x.TestStrucCommon.NotAnonSlim); yyxt155 != nil {
12467 z.EncExtension(x.TestStrucCommon.NotAnonSlim, yyxt155)
12468 } else {
12469 x.TestStrucCommon.NotAnonSlim.CodecEncodeSelf(e)
12470 }
12471 } else {
12472 r.EncodeNil()
12473 }
12474 }
12475 z.EncWriteArrayElem()
12476 if yyq2[53] {
12477 if x.TestStrucCommon.Nmap == nil {
12478 r.EncodeNil()
12479 } else {
12480 z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
12481 } // end block: if x.TestStrucCommon.Nmap map == nil
12482 } else {
12483 r.EncodeNil()
12484 }
12485 z.EncWriteArrayElem()
12486 if yyq2[54] {
12487 if x.TestStrucCommon.Nslice == nil {
12488 r.EncodeNil()
12489 } else {
12490 r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
12491 } // end block: if x.TestStrucCommon.Nslice slice == nil
12492 } else {
12493 r.EncodeNil()
12494 }
12495 if yyn58 {
12496 z.EncWriteArrayElem()
12497 r.EncodeNil()
12498 } else {
12499 z.EncWriteArrayElem()
12500 if yyq2[55] {
12501 yy158 := *x.TestStrucCommon.Nint64
12502 r.EncodeInt(int64(yy158))
12503 } else {
12504 r.EncodeNil()
12505 }
12506 }
12507 z.EncWriteArrayElem()
12508 if yyq2[56] {
12509 h.encChanstring((chan string)(x.Chstr), e)
12510 } else {
12511 r.EncodeNil()
12512 }
12513 z.EncWriteArrayElem()
12514 if yyq2[57] {
12515 if x.Mis == nil {
12516 r.EncodeNil()
12517 } else {
12518 z.F.EncMapIntStringV(x.Mis, e)
12519 } // end block: if x.Mis map == nil
12520 } else {
12521 r.EncodeNil()
12522 }
12523 z.EncWriteArrayElem()
12524 if yyq2[58] {
12525 if x.Mbu64 == nil {
12526 r.EncodeNil()
12527 } else {
12528 h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
12529 } // end block: if x.Mbu64 map == nil
12530 } else {
12531 r.EncodeNil()
12532 }
12533 z.EncWriteArrayElem()
12534 if yyq2[59] {
12535 if x.Mu8e == nil {
12536 r.EncodeNil()
12537 } else {
12538 h.encMapuint8c3RydWN0IHt9((map[uint8]struct{})(x.Mu8e), e)
12539 } // end block: if x.Mu8e map == nil
12540 } else {
12541 r.EncodeNil()
12542 }
12543 z.EncWriteArrayElem()
12544 if yyq2[60] {
12545 if x.Mu8u64 == nil {
12546 r.EncodeNil()
12547 } else {
12548 h.encMapuint8stringUint64T((map[uint8]stringUint64T)(x.Mu8u64), e)
12549 } // end block: if x.Mu8u64 map == nil
12550 } else {
12551 r.EncodeNil()
12552 }
12553 z.EncWriteArrayElem()
12554 if yyq2[61] {
12555 if x.Msp2ss == nil {
12556 r.EncodeNil()
12557 } else {
12558 h.encMapPtrtostringSlicestring((map[*string][]string)(x.Msp2ss), e)
12559 } // end block: if x.Msp2ss map == nil
12560 } else {
12561 r.EncodeNil()
12562 }
12563 z.EncWriteArrayElem()
12564 if yyq2[62] {
12565 if x.Mip2ss == nil {
12566 r.EncodeNil()
12567 } else {
12568 h.encMapPtrtouint64Slicestring((map[*uint64][]string)(x.Mip2ss), e)
12569 } // end block: if x.Mip2ss map == nil
12570 } else {
12571 r.EncodeNil()
12572 }
12573 z.EncWriteArrayElem()
12574 if yyq2[63] {
12575 if x.Ms2misu == nil {
12576 r.EncodeNil()
12577 } else {
12578 h.encMapstringMapuint64stringUint64T((map[string]map[uint64]stringUint64T)(x.Ms2misu), e)
12579 } // end block: if x.Ms2misu map == nil
12580 } else {
12581 r.EncodeNil()
12582 }
12583 z.EncWriteArrayElem()
12584 if yyq2[64] {
12585 if x.Miwu64s == nil {
12586 r.EncodeNil()
12587 } else {
12588 h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
12589 } // end block: if x.Miwu64s map == nil
12590 } else {
12591 r.EncodeNil()
12592 }
12593 z.EncWriteArrayElem()
12594 if yyq2[65] {
12595 if x.Mfwss == nil {
12596 r.EncodeNil()
12597 } else {
12598 h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
12599 } // end block: if x.Mfwss map == nil
12600 } else {
12601 r.EncodeNil()
12602 }
12603 z.EncWriteArrayElem()
12604 if yyq2[66] {
12605 if x.Mf32wss == nil {
12606 r.EncodeNil()
12607 } else {
12608 h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
12609 } // end block: if x.Mf32wss map == nil
12610 } else {
12611 r.EncodeNil()
12612 }
12613 z.EncWriteArrayElem()
12614 if yyq2[67] {
12615 if x.Mui2wss == nil {
12616 r.EncodeNil()
12617 } else {
12618 h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
12619 } // end block: if x.Mui2wss map == nil
12620 } else {
12621 r.EncodeNil()
12622 }
12623 z.EncWriteArrayElem()
12624 if yyq2[68] {
12625 if x.Msu2wss == nil {
12626 r.EncodeNil()
12627 } else {
12628 h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
12629 } // end block: if x.Msu2wss map == nil
12630 } else {
12631 r.EncodeNil()
12632 }
12633 z.EncWriteArrayElem()
12634 if yyq2[69] {
12635 if yyxt173 := z.Extension(x.Ci64); yyxt173 != nil {
12636 z.EncExtension(x.Ci64, yyxt173)
12637 } else {
12638 x.Ci64.CodecEncodeSelf(e)
12639 }
12640 } else {
12641 r.EncodeInt(0)
12642 }
12643 z.EncWriteArrayElem()
12644 if yyq2[70] {
12645 if x.Swrapbytes == nil {
12646 r.EncodeNil()
12647 } else {
12648 h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
12649 } // end block: if x.Swrapbytes slice == nil
12650 } else {
12651 r.EncodeNil()
12652 }
12653 z.EncWriteArrayElem()
12654 if yyq2[71] {
12655 if x.Swrapuint8 == nil {
12656 r.EncodeNil()
12657 } else {
12658 h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
12659 } // end block: if x.Swrapuint8 slice == nil
12660 } else {
12661 r.EncodeNil()
12662 }
12663 z.EncWriteArrayElem()
12664 if yyq2[72] {
12665 yy176 := &x.ArrStrUi64T
12666 h.encArray4stringUint64T((*[4]stringUint64T)(yy176), e)
12667 } else {
12668 r.EncodeNil()
12669 }
12670 z.EncWriteArrayElem()
12671 if yyq2[73] {
12672 yy178 := &x.Ui64array
12673 h.encArray4uint64((*[4]uint64)(yy178), e)
12674 } else {
12675 r.EncodeNil()
12676 }
12677 z.EncWriteArrayElem()
12678 if yyq2[74] {
12679 if x.Ui64slicearray == nil {
12680 r.EncodeNil()
12681 } else {
12682 h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
12683 } // end block: if x.Ui64slicearray slice == nil
12684 } else {
12685 r.EncodeNil()
12686 }
12687 z.EncWriteArrayElem()
12688 if yyq2[75] {
12689 if x.SintfAarray == nil {
12690 r.EncodeNil()
12691 } else {
12692 z.F.EncSliceIntfV(x.SintfAarray, e)
12693 } // end block: if x.SintfAarray slice == nil
12694 } else {
12695 r.EncodeNil()
12696 }
12697 z.EncWriteArrayElem()
12698 if yyq2[76] {
12699 if x.MstrUi64TSelf == nil {
12700 r.EncodeNil()
12701 } else {
12702 h.encMapstringUint64TPtrtostringUint64T((map[stringUint64T]*stringUint64T)(x.MstrUi64TSelf), e)
12703 } // end block: if x.MstrUi64TSelf map == nil
12704 } else {
12705 r.EncodeNil()
12706 }
12707 z.EncWriteArrayElem()
12708 if yyq2[77] {
12709 if z.EncBasicHandle().TimeBuiltin() {
12710 r.EncodeTime(x.Ttime)
12711 } else if yyxt183 := z.Extension(x.Ttime); yyxt183 != nil {
12712 z.EncExtension(x.Ttime, yyxt183)
12713 } else if z.EncBinary() {
12714 z.EncBinaryMarshal(x.Ttime)
12715 } else if !z.EncBinary() && z.IsJSONHandle() {
12716 z.EncJSONMarshal(x.Ttime)
12717 } else {
12718 z.EncFallback(x.Ttime)
12719 }
12720 } else {
12721 r.EncodeNil()
12722 }
12723 if yyn81 {
12724 z.EncWriteArrayElem()
12725 r.EncodeNil()
12726 } else {
12727 z.EncWriteArrayElem()
12728 if yyq2[78] {
12729 yy184 := *x.Ttimeptr
12730 if z.EncBasicHandle().TimeBuiltin() {
12731 r.EncodeTime(yy184)
12732 } else if yyxt185 := z.Extension(yy184); yyxt185 != nil {
12733 z.EncExtension(yy184, yyxt185)
12734 } else if z.EncBinary() {
12735 z.EncBinaryMarshal(yy184)
12736 } else if !z.EncBinary() && z.IsJSONHandle() {
12737 z.EncJSONMarshal(yy184)
12738 } else {
12739 z.EncFallback(yy184)
12740 }
12741 } else {
12742 r.EncodeNil()
12743 }
12744 }
12745 if yyn82 {
12746 z.EncWriteArrayElem()
12747 r.EncodeNil()
12748 } else {
12749 z.EncWriteArrayElem()
12750 if yyq2[79] {
12751 if x.AnonInTestStrucIntf.Islice == nil {
12752 r.EncodeNil()
12753 } else {
12754 z.F.EncSliceIntfV(x.AnonInTestStrucIntf.Islice, e)
12755 } // end block: if x.AnonInTestStrucIntf.Islice slice == nil
12756 } else {
12757 r.EncodeNil()
12758 }
12759 }
12760 if yyn83 {
12761 z.EncWriteArrayElem()
12762 r.EncodeNil()
12763 } else {
12764 z.EncWriteArrayElem()
12765 if yyq2[80] {
12766 if x.AnonInTestStrucIntf.Ms == nil {
12767 r.EncodeNil()
12768 } else {
12769 z.F.EncMapStringIntfV(x.AnonInTestStrucIntf.Ms, e)
12770 } // end block: if x.AnonInTestStrucIntf.Ms map == nil
12771 } else {
12772 r.EncodeNil()
12773 }
12774 }
12775 if yyn84 {
12776 z.EncWriteArrayElem()
12777 r.EncodeNil()
12778 } else {
12779 z.EncWriteArrayElem()
12780 if yyq2[81] {
12781 z.EncFallback(x.AnonInTestStrucIntf.Nintf)
12782 } else {
12783 r.EncodeNil()
12784 }
12785 }
12786 if yyn85 {
12787 z.EncWriteArrayElem()
12788 r.EncodeNil()
12789 } else {
12790 z.EncWriteArrayElem()
12791 if yyq2[82] {
12792 if z.EncBasicHandle().TimeBuiltin() {
12793 r.EncodeTime(x.AnonInTestStrucIntf.T)
12794 } else if yyxt189 := z.Extension(x.AnonInTestStrucIntf.T); yyxt189 != nil {
12795 z.EncExtension(x.AnonInTestStrucIntf.T, yyxt189)
12796 } else if z.EncBinary() {
12797 z.EncBinaryMarshal(x.AnonInTestStrucIntf.T)
12798 } else if !z.EncBinary() && z.IsJSONHandle() {
12799 z.EncJSONMarshal(x.AnonInTestStrucIntf.T)
12800 } else {
12801 z.EncFallback(x.AnonInTestStrucIntf.T)
12802 }
12803 } else {
12804 r.EncodeNil()
12805 }
12806 }
12807 if yyn86 {
12808 z.EncWriteArrayElem()
12809 r.EncodeNil()
12810 } else {
12811 z.EncWriteArrayElem()
12812 if yyq2[83] {
12813 yy190 := *x.AnonInTestStrucIntf.Tptr
12814 if z.EncBasicHandle().TimeBuiltin() {
12815 r.EncodeTime(yy190)
12816 } else if yyxt191 := z.Extension(yy190); yyxt191 != nil {
12817 z.EncExtension(yy190, yyxt191)
12818 } else if z.EncBinary() {
12819 z.EncBinaryMarshal(yy190)
12820 } else if !z.EncBinary() && z.IsJSONHandle() {
12821 z.EncJSONMarshal(yy190)
12822 } else {
12823 z.EncFallback(yy190)
12824 }
12825 } else {
12826 r.EncodeNil()
12827 }
12828 }
12829 z.EncWriteArrayElem()
12830 if yyq2[84] {
12831 if x.Msu == nil {
12832 r.EncodeNil()
12833 } else {
12834 h.encMapwrapStringInterface((map[wrapString]interface{})(x.Msu), e)
12835 } // end block: if x.Msu map == nil
12836 } else {
12837 r.EncodeNil()
12838 }
12839 z.EncWriteArrayElem()
12840 if yyq2[85] {
12841 if x.Mtsptr == nil {
12842 r.EncodeNil()
12843 } else {
12844 h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
12845 } // end block: if x.Mtsptr map == nil
12846 } else {
12847 r.EncodeNil()
12848 }
12849 z.EncWriteArrayElem()
12850 if yyq2[86] {
12851 if x.Mts == nil {
12852 r.EncodeNil()
12853 } else {
12854 h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
12855 } // end block: if x.Mts map == nil
12856 } else {
12857 r.EncodeNil()
12858 }
12859 z.EncWriteArrayElem()
12860 if yyq2[87] {
12861 if x.Its == nil {
12862 r.EncodeNil()
12863 } else {
12864 h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
12865 } // end block: if x.Its slice == nil
12866 } else {
12867 r.EncodeNil()
12868 }
12869 if yyn91 {
12870 z.EncWriteArrayElem()
12871 r.EncodeNil()
12872 } else {
12873 z.EncWriteArrayElem()
12874 if yyq2[88] {
12875 if yyxt196 := z.Extension(x.Nteststruc); yyxt196 != nil {
12876 z.EncExtension(x.Nteststruc, yyxt196)
12877 } else {
12878 x.Nteststruc.CodecEncodeSelf(e)
12879 }
12880 } else {
12881 r.EncodeNil()
12882 }
12883 }
12884 z.EncWriteArrayElem()
12885 if yyq2[89] {
12886 if yyxt197 := z.Extension(x.MarJ); yyxt197 != nil {
12887 z.EncExtension(x.MarJ, yyxt197)
12888 } else {
12889 x.MarJ.CodecEncodeSelf(e)
12890 }
12891 } else {
12892 r.EncodeBool(false)
12893 }
12894 z.EncWriteArrayElem()
12895 if yyq2[90] {
12896 if yyxt198 := z.Extension(x.MarT); yyxt198 != nil {
12897 z.EncExtension(x.MarT, yyxt198)
12898 } else {
12899 x.MarT.CodecEncodeSelf(e)
12900 }
12901 } else {
12902 r.EncodeString("")
12903 }
12904 z.EncWriteArrayElem()
12905 if yyq2[91] {
12906 if yyxt199 := z.Extension(x.MarB); yyxt199 != nil {
12907 z.EncExtension(x.MarB, yyxt199)
12908 } else {
12909 x.MarB.CodecEncodeSelf(e)
12910 }
12911 } else {
12912 r.EncodeNil()
12913 }
12914 z.EncWriteArrayElem()
12915 if yyq2[92] {
12916 if yyxt200 := z.Extension(x.XuintToBytes); yyxt200 != nil {
12917 z.EncExtension(x.XuintToBytes, yyxt200)
12918 } else {
12919 x.XuintToBytes.CodecEncodeSelf(e)
12920 }
12921 } else {
12922 r.EncodeUint(0)
12923 }
12924 z.EncWriteArrayElem()
12925 if yyq2[93] {
12926 z.EncEncodeComplex64(complex64(x.Cmplx64))
12927 } else {
12928 z.EncEncodeComplex64(0)
12929 }
12930 z.EncWriteArrayElem()
12931 if yyq2[94] {
12932 z.EncEncodeComplex128(complex128(x.Cmplx128))
12933 } else {
12934 z.EncEncodeComplex128(0)
12935 }
12936 z.EncWriteArrayEnd()
12937 } else {
12938 var yynn2 int
12939 for _, b := range yyq2 {
12940 if b {
12941 yynn2++
12942 }
12943 }
12944 z.EncWriteMapStart(yynn2)
12945 yynn2 = 0
12946 if z.EncBasicHandle().Canonical {
12947 if yyq2[41] {
12948 z.EncWriteMapElemKey()
12949 if z.IsJSONHandle() {
12950 z.WriteStr("\"AF32slice\"")
12951 } else {
12952 r.EncodeString(`AF32slice`)
12953 }
12954 z.EncWriteMapElemValue()
12955 if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
12956 r.EncodeNil()
12957 } else {
12958 z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
12959 } // end block: if x.TestStrucCommon.AnonInTestStruc.AF32slice slice == nil
12960 }
12961 if yyq2[40] {
12962 z.EncWriteMapElemKey()
12963 if z.IsJSONHandle() {
12964 z.WriteStr("\"AF64slice\"")
12965 } else {
12966 r.EncodeString(`AF64slice`)
12967 }
12968 z.EncWriteMapElemValue()
12969 if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
12970 r.EncodeNil()
12971 } else {
12972 z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
12973 } // end block: if x.TestStrucCommon.AnonInTestStruc.AF64slice slice == nil
12974 }
12975 if yyq2[35] {
12976 z.EncWriteMapElemKey()
12977 if z.IsJSONHandle() {
12978 z.WriteStr("\"AI16\"")
12979 } else {
12980 r.EncodeString(`AI16`)
12981 }
12982 z.EncWriteMapElemValue()
12983 r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
12984 }
12985 if yyq2[34] {
12986 z.EncWriteMapElemKey()
12987 if z.IsJSONHandle() {
12988 z.WriteStr("\"AI64\"")
12989 } else {
12990 r.EncodeString(`AI64`)
12991 }
12992 z.EncWriteMapElemValue()
12993 r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
12994 }
12995 if yyq2[45] {
12996 z.EncWriteMapElemKey()
12997 if z.IsJSONHandle() {
12998 z.WriteStr("\"AI64arr0\"")
12999 } else {
13000 r.EncodeString(`AI64arr0`)
13001 }
13002 z.EncWriteMapElemValue()
13003 yy207 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
13004 h.encArray0int64((*[0]int64)(yy207), e)
13005 }
13006 if yyq2[44] {
13007 z.EncWriteMapElemKey()
13008 if z.IsJSONHandle() {
13009 z.WriteStr("\"AI64arr8\"")
13010 } else {
13011 r.EncodeString(`AI64arr8`)
13012 }
13013 z.EncWriteMapElemValue()
13014 yy209 := &x.TestStrucCommon.AnonInTestStruc.AI64arr8
13015 h.encArray8int64((*[8]int64)(yy209), e)
13016 }
13017 if yyq2[38] {
13018 z.EncWriteMapElemKey()
13019 if z.IsJSONHandle() {
13020 z.WriteStr("\"AI64slice\"")
13021 } else {
13022 r.EncodeString(`AI64slice`)
13023 }
13024 z.EncWriteMapElemValue()
13025 if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
13026 r.EncodeNil()
13027 } else {
13028 z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
13029 } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice slice == nil
13030 }
13031 if yyq2[46] {
13032 z.EncWriteMapElemKey()
13033 if z.IsJSONHandle() {
13034 z.WriteStr("\"AI64slice0\"")
13035 } else {
13036 r.EncodeString(`AI64slice0`)
13037 }
13038 z.EncWriteMapElemValue()
13039 if x.TestStrucCommon.AnonInTestStruc.AI64slice0 == nil {
13040 r.EncodeNil()
13041 } else {
13042 z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
13043 } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice0 slice == nil
13044 }
13045 if yyq2[42] {
13046 z.EncWriteMapElemKey()
13047 if z.IsJSONHandle() {
13048 z.WriteStr("\"AMSS\"")
13049 } else {
13050 r.EncodeString(`AMSS`)
13051 }
13052 z.EncWriteMapElemValue()
13053 if x.TestStrucCommon.AnonInTestStruc.AMSS == nil {
13054 r.EncodeNil()
13055 } else {
13056 z.F.EncMapStringStringV(x.TestStrucCommon.AnonInTestStruc.AMSS, e)
13057 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSS map == nil
13058 }
13059 if yyq2[43] {
13060 z.EncWriteMapElemKey()
13061 if z.IsJSONHandle() {
13062 z.WriteStr("\"AMSU64\"")
13063 } else {
13064 r.EncodeString(`AMSU64`)
13065 }
13066 z.EncWriteMapElemValue()
13067 if x.TestStrucCommon.AnonInTestStruc.AMSU64 == nil {
13068 r.EncodeNil()
13069 } else {
13070 z.F.EncMapStringUint64V(x.TestStrucCommon.AnonInTestStruc.AMSU64, e)
13071 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU64 map == nil
13072 }
13073 if yyq2[49] {
13074 z.EncWriteMapElemKey()
13075 if z.IsJSONHandle() {
13076 z.WriteStr("\"AMSU64E\"")
13077 } else {
13078 r.EncodeString(`AMSU64E`)
13079 }
13080 z.EncWriteMapElemValue()
13081 if x.TestStrucCommon.AnonInTestStruc.AMSU64E == nil {
13082 r.EncodeNil()
13083 } else {
13084 z.F.EncMapStringUint64V(x.TestStrucCommon.AnonInTestStruc.AMSU64E, e)
13085 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU64E map == nil
13086 }
13087 if yyq2[48] {
13088 z.EncWriteMapElemKey()
13089 if z.IsJSONHandle() {
13090 z.WriteStr("\"AMSU64N\"")
13091 } else {
13092 r.EncodeString(`AMSU64N`)
13093 }
13094 z.EncWriteMapElemValue()
13095 if x.TestStrucCommon.AnonInTestStruc.AMSU64N == nil {
13096 r.EncodeNil()
13097 } else {
13098 z.F.EncMapStringUint64V(x.TestStrucCommon.AnonInTestStruc.AMSU64N, e)
13099 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU64N map == nil
13100 }
13101 if yyq2[33] {
13102 z.EncWriteMapElemKey()
13103 if z.IsJSONHandle() {
13104 z.WriteStr("\"AS\"")
13105 } else {
13106 r.EncodeString(`AS`)
13107 }
13108 z.EncWriteMapElemValue()
13109 r.EncodeString(string(x.TestStrucCommon.AnonInTestStruc.AS))
13110 }
13111 if yyq2[37] {
13112 z.EncWriteMapElemKey()
13113 if z.IsJSONHandle() {
13114 z.WriteStr("\"ASslice\"")
13115 } else {
13116 r.EncodeString(`ASslice`)
13117 }
13118 z.EncWriteMapElemValue()
13119 if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
13120 r.EncodeNil()
13121 } else {
13122 z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
13123 } // end block: if x.TestStrucCommon.AnonInTestStruc.ASslice slice == nil
13124 }
13125 if yyq2[36] {
13126 z.EncWriteMapElemKey()
13127 if z.IsJSONHandle() {
13128 z.WriteStr("\"AUi64\"")
13129 } else {
13130 r.EncodeString(`AUi64`)
13131 }
13132 z.EncWriteMapElemValue()
13133 r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
13134 }
13135 if yyq2[39] {
13136 z.EncWriteMapElemKey()
13137 if z.IsJSONHandle() {
13138 z.WriteStr("\"AUi64slice\"")
13139 } else {
13140 r.EncodeString(`AUi64slice`)
13141 }
13142 z.EncWriteMapElemValue()
13143 if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
13144 r.EncodeNil()
13145 } else {
13146 z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
13147 } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64slice slice == nil
13148 }
13149 if yyq2[47] {
13150 z.EncWriteMapElemKey()
13151 if z.IsJSONHandle() {
13152 z.WriteStr("\"AUi64sliceN\"")
13153 } else {
13154 r.EncodeString(`AUi64sliceN`)
13155 }
13156 z.EncWriteMapElemValue()
13157 if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
13158 r.EncodeNil()
13159 } else {
13160 z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
13161 } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN slice == nil
13162 }
13163 if yyq2[72] {
13164 z.EncWriteMapElemKey()
13165 if z.IsJSONHandle() {
13166 z.WriteStr("\"ArrStrUi64T\"")
13167 } else {
13168 r.EncodeString(`ArrStrUi64T`)
13169 }
13170 z.EncWriteMapElemValue()
13171 yy222 := &x.ArrStrUi64T
13172 h.encArray4stringUint64T((*[4]stringUint64T)(yy222), e)
13173 }
13174 if yyq2[15] {
13175 z.EncWriteMapElemKey()
13176 if z.IsJSONHandle() {
13177 z.WriteStr("\"B\"")
13178 } else {
13179 r.EncodeString(`B`)
13180 }
13181 z.EncWriteMapElemValue()
13182 r.EncodeBool(bool(x.TestStrucCommon.B))
13183 }
13184 if yyq2[22] {
13185 z.EncWriteMapElemKey()
13186 if z.IsJSONHandle() {
13187 z.WriteStr("\"Bslice\"")
13188 } else {
13189 r.EncodeString(`Bslice`)
13190 }
13191 z.EncWriteMapElemValue()
13192 if x.TestStrucCommon.Bslice == nil {
13193 r.EncodeNil()
13194 } else {
13195 z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
13196 } // end block: if x.TestStrucCommon.Bslice slice == nil
13197 }
13198 if yyq2[16] {
13199 z.EncWriteMapElemKey()
13200 if z.IsJSONHandle() {
13201 z.WriteStr("\"By\"")
13202 } else {
13203 r.EncodeString(`By`)
13204 }
13205 z.EncWriteMapElemValue()
13206 r.EncodeUint(uint64(x.TestStrucCommon.By))
13207 }
13208 if yyq2[23] {
13209 z.EncWriteMapElemKey()
13210 if z.IsJSONHandle() {
13211 z.WriteStr("\"Byslice\"")
13212 } else {
13213 r.EncodeString(`Byslice`)
13214 }
13215 z.EncWriteMapElemValue()
13216 if x.TestStrucCommon.Byslice == nil {
13217 r.EncodeNil()
13218 } else {
13219 r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
13220 } // end block: if x.TestStrucCommon.Byslice slice == nil
13221 }
13222 if yyq2[24] {
13223 z.EncWriteMapElemKey()
13224 if z.IsJSONHandle() {
13225 z.WriteStr("\"BytesSlice\"")
13226 } else {
13227 r.EncodeString(`BytesSlice`)
13228 }
13229 z.EncWriteMapElemValue()
13230 if x.TestStrucCommon.BytesSlice == nil {
13231 r.EncodeNil()
13232 } else {
13233 z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
13234 } // end block: if x.TestStrucCommon.BytesSlice slice == nil
13235 }
13236 if yyq2[56] {
13237 z.EncWriteMapElemKey()
13238 if z.IsJSONHandle() {
13239 z.WriteStr("\"Chstr\"")
13240 } else {
13241 r.EncodeString(`Chstr`)
13242 }
13243 z.EncWriteMapElemValue()
13244 h.encChanstring((chan string)(x.Chstr), e)
13245 }
13246 if yyq2[69] {
13247 z.EncWriteMapElemKey()
13248 if z.IsJSONHandle() {
13249 z.WriteStr("\"Ci64\"")
13250 } else {
13251 r.EncodeString(`Ci64`)
13252 }
13253 z.EncWriteMapElemValue()
13254 if yyxt230 := z.Extension(x.Ci64); yyxt230 != nil {
13255 z.EncExtension(x.Ci64, yyxt230)
13256 } else {
13257 x.Ci64.CodecEncodeSelf(e)
13258 }
13259 }
13260 if yyq2[94] {
13261 z.EncWriteMapElemKey()
13262 if z.IsJSONHandle() {
13263 z.WriteStr("\"Cmplx128\"")
13264 } else {
13265 r.EncodeString(`Cmplx128`)
13266 }
13267 z.EncWriteMapElemValue()
13268 z.EncEncodeComplex128(complex128(x.Cmplx128))
13269 }
13270 if yyq2[93] {
13271 z.EncWriteMapElemKey()
13272 if z.IsJSONHandle() {
13273 z.WriteStr("\"Cmplx64\"")
13274 } else {
13275 r.EncodeString(`Cmplx64`)
13276 }
13277 z.EncWriteMapElemValue()
13278 z.EncEncodeComplex64(complex64(x.Cmplx64))
13279 }
13280 if yyq2[14] {
13281 z.EncWriteMapElemKey()
13282 if z.IsJSONHandle() {
13283 z.WriteStr("\"F32\"")
13284 } else {
13285 r.EncodeString(`F32`)
13286 }
13287 z.EncWriteMapElemValue()
13288 r.EncodeFloat32(float32(x.TestStrucCommon.F32))
13289 }
13290 if yyq2[13] {
13291 z.EncWriteMapElemKey()
13292 if z.IsJSONHandle() {
13293 z.WriteStr("\"F64\"")
13294 } else {
13295 r.EncodeString(`F64`)
13296 }
13297 z.EncWriteMapElemValue()
13298 r.EncodeFloat64(float64(x.TestStrucCommon.F64))
13299 }
13300 if yyq2[3] {
13301 z.EncWriteMapElemKey()
13302 if z.IsJSONHandle() {
13303 z.WriteStr("\"I16\"")
13304 } else {
13305 r.EncodeString(`I16`)
13306 }
13307 z.EncWriteMapElemValue()
13308 r.EncodeInt(int64(x.TestStrucCommon.I16))
13309 }
13310 if yyq2[7] {
13311 z.EncWriteMapElemKey()
13312 if z.IsJSONHandle() {
13313 z.WriteStr("\"I16n\"")
13314 } else {
13315 r.EncodeString(`I16n`)
13316 }
13317 z.EncWriteMapElemValue()
13318 r.EncodeInt(int64(x.TestStrucCommon.I16n))
13319 }
13320 if yyq2[2] {
13321 z.EncWriteMapElemKey()
13322 if z.IsJSONHandle() {
13323 z.WriteStr("\"I32\"")
13324 } else {
13325 r.EncodeString(`I32`)
13326 }
13327 z.EncWriteMapElemValue()
13328 r.EncodeInt(int64(x.TestStrucCommon.I32))
13329 }
13330 if yyq2[6] {
13331 z.EncWriteMapElemKey()
13332 if z.IsJSONHandle() {
13333 z.WriteStr("\"I32n\"")
13334 } else {
13335 r.EncodeString(`I32n`)
13336 }
13337 z.EncWriteMapElemValue()
13338 r.EncodeInt(int64(x.TestStrucCommon.I32n))
13339 }
13340 if yyq2[19] {
13341 z.EncWriteMapElemKey()
13342 if z.IsJSONHandle() {
13343 z.WriteStr("\"I32slice\"")
13344 } else {
13345 r.EncodeString(`I32slice`)
13346 }
13347 z.EncWriteMapElemValue()
13348 if x.TestStrucCommon.I32slice == nil {
13349 r.EncodeNil()
13350 } else {
13351 z.F.EncSliceInt32V(x.TestStrucCommon.I32slice, e)
13352 } // end block: if x.TestStrucCommon.I32slice slice == nil
13353 }
13354 if yyq2[1] {
13355 z.EncWriteMapElemKey()
13356 if z.IsJSONHandle() {
13357 z.WriteStr("\"I64\"")
13358 } else {
13359 r.EncodeString(`I64`)
13360 }
13361 z.EncWriteMapElemValue()
13362 r.EncodeInt(int64(x.TestStrucCommon.I64))
13363 }
13364 if yyq2[5] {
13365 z.EncWriteMapElemKey()
13366 if z.IsJSONHandle() {
13367 z.WriteStr("\"I64n\"")
13368 } else {
13369 r.EncodeString(`I64n`)
13370 }
13371 z.EncWriteMapElemValue()
13372 r.EncodeInt(int64(x.TestStrucCommon.I64n))
13373 }
13374 if yyq2[18] {
13375 z.EncWriteMapElemKey()
13376 if z.IsJSONHandle() {
13377 z.WriteStr("\"I64slice\"")
13378 } else {
13379 r.EncodeString(`I64slice`)
13380 }
13381 z.EncWriteMapElemValue()
13382 if x.TestStrucCommon.I64slice == nil {
13383 r.EncodeNil()
13384 } else {
13385 z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
13386 } // end block: if x.TestStrucCommon.I64slice slice == nil
13387 }
13388 if yyq2[4] {
13389 z.EncWriteMapElemKey()
13390 if z.IsJSONHandle() {
13391 z.WriteStr("\"I8\"")
13392 } else {
13393 r.EncodeString(`I8`)
13394 }
13395 z.EncWriteMapElemValue()
13396 r.EncodeInt(int64(x.TestStrucCommon.I8))
13397 }
13398 if yyq2[8] {
13399 z.EncWriteMapElemKey()
13400 if z.IsJSONHandle() {
13401 z.WriteStr("\"I8n\"")
13402 } else {
13403 r.EncodeString(`I8n`)
13404 }
13405 z.EncWriteMapElemValue()
13406 r.EncodeInt(int64(x.TestStrucCommon.I8n))
13407 }
13408 if yyq2[25] {
13409 z.EncWriteMapElemKey()
13410 if z.IsJSONHandle() {
13411 z.WriteStr("\"Iptrslice\"")
13412 } else {
13413 r.EncodeString(`Iptrslice`)
13414 }
13415 z.EncWriteMapElemValue()
13416 if x.TestStrucCommon.Iptrslice == nil {
13417 r.EncodeNil()
13418 } else {
13419 h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
13420 } // end block: if x.TestStrucCommon.Iptrslice slice == nil
13421 }
13422 if yyq2[79] {
13423 z.EncWriteMapElemKey()
13424 if z.IsJSONHandle() {
13425 z.WriteStr("\"Islice\"")
13426 } else {
13427 r.EncodeString(`Islice`)
13428 }
13429 z.EncWriteMapElemValue()
13430 if yyn82 {
13431 r.EncodeNil()
13432 } else {
13433 if x.AnonInTestStrucIntf.Islice == nil {
13434 r.EncodeNil()
13435 } else {
13436 z.F.EncSliceIntfV(x.AnonInTestStrucIntf.Islice, e)
13437 } // end block: if x.AnonInTestStrucIntf.Islice slice == nil
13438 }
13439 }
13440 if yyq2[87] {
13441 z.EncWriteMapElemKey()
13442 if z.IsJSONHandle() {
13443 z.WriteStr("\"Its\"")
13444 } else {
13445 r.EncodeString(`Its`)
13446 }
13447 z.EncWriteMapElemValue()
13448 if x.Its == nil {
13449 r.EncodeNil()
13450 } else {
13451 h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
13452 } // end block: if x.Its slice == nil
13453 }
13454 if yyq2[91] {
13455 z.EncWriteMapElemKey()
13456 if z.IsJSONHandle() {
13457 z.WriteStr("\"MarB\"")
13458 } else {
13459 r.EncodeString(`MarB`)
13460 }
13461 z.EncWriteMapElemValue()
13462 if yyxt248 := z.Extension(x.MarB); yyxt248 != nil {
13463 z.EncExtension(x.MarB, yyxt248)
13464 } else {
13465 x.MarB.CodecEncodeSelf(e)
13466 }
13467 }
13468 if yyq2[89] {
13469 z.EncWriteMapElemKey()
13470 if z.IsJSONHandle() {
13471 z.WriteStr("\"MarJ\"")
13472 } else {
13473 r.EncodeString(`MarJ`)
13474 }
13475 z.EncWriteMapElemValue()
13476 if yyxt249 := z.Extension(x.MarJ); yyxt249 != nil {
13477 z.EncExtension(x.MarJ, yyxt249)
13478 } else {
13479 x.MarJ.CodecEncodeSelf(e)
13480 }
13481 }
13482 if yyq2[90] {
13483 z.EncWriteMapElemKey()
13484 if z.IsJSONHandle() {
13485 z.WriteStr("\"MarT\"")
13486 } else {
13487 r.EncodeString(`MarT`)
13488 }
13489 z.EncWriteMapElemValue()
13490 if yyxt250 := z.Extension(x.MarT); yyxt250 != nil {
13491 z.EncExtension(x.MarT, yyxt250)
13492 } else {
13493 x.MarT.CodecEncodeSelf(e)
13494 }
13495 }
13496 if yyq2[58] {
13497 z.EncWriteMapElemKey()
13498 if z.IsJSONHandle() {
13499 z.WriteStr("\"Mbu64\"")
13500 } else {
13501 r.EncodeString(`Mbu64`)
13502 }
13503 z.EncWriteMapElemValue()
13504 if x.Mbu64 == nil {
13505 r.EncodeNil()
13506 } else {
13507 h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
13508 } // end block: if x.Mbu64 map == nil
13509 }
13510 if yyq2[66] {
13511 z.EncWriteMapElemKey()
13512 if z.IsJSONHandle() {
13513 z.WriteStr("\"Mf32wss\"")
13514 } else {
13515 r.EncodeString(`Mf32wss`)
13516 }
13517 z.EncWriteMapElemValue()
13518 if x.Mf32wss == nil {
13519 r.EncodeNil()
13520 } else {
13521 h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
13522 } // end block: if x.Mf32wss map == nil
13523 }
13524 if yyq2[65] {
13525 z.EncWriteMapElemKey()
13526 if z.IsJSONHandle() {
13527 z.WriteStr("\"Mfwss\"")
13528 } else {
13529 r.EncodeString(`Mfwss`)
13530 }
13531 z.EncWriteMapElemValue()
13532 if x.Mfwss == nil {
13533 r.EncodeNil()
13534 } else {
13535 h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
13536 } // end block: if x.Mfwss map == nil
13537 }
13538 if yyq2[62] {
13539 z.EncWriteMapElemKey()
13540 if z.IsJSONHandle() {
13541 z.WriteStr("\"Mip2ss\"")
13542 } else {
13543 r.EncodeString(`Mip2ss`)
13544 }
13545 z.EncWriteMapElemValue()
13546 if x.Mip2ss == nil {
13547 r.EncodeNil()
13548 } else {
13549 h.encMapPtrtouint64Slicestring((map[*uint64][]string)(x.Mip2ss), e)
13550 } // end block: if x.Mip2ss map == nil
13551 }
13552 if yyq2[57] {
13553 z.EncWriteMapElemKey()
13554 if z.IsJSONHandle() {
13555 z.WriteStr("\"Mis\"")
13556 } else {
13557 r.EncodeString(`Mis`)
13558 }
13559 z.EncWriteMapElemValue()
13560 if x.Mis == nil {
13561 r.EncodeNil()
13562 } else {
13563 z.F.EncMapIntStringV(x.Mis, e)
13564 } // end block: if x.Mis map == nil
13565 }
13566 if yyq2[64] {
13567 z.EncWriteMapElemKey()
13568 if z.IsJSONHandle() {
13569 z.WriteStr("\"Miwu64s\"")
13570 } else {
13571 r.EncodeString(`Miwu64s`)
13572 }
13573 z.EncWriteMapElemValue()
13574 if x.Miwu64s == nil {
13575 r.EncodeNil()
13576 } else {
13577 h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
13578 } // end block: if x.Miwu64s map == nil
13579 }
13580 if yyq2[80] {
13581 z.EncWriteMapElemKey()
13582 if z.IsJSONHandle() {
13583 z.WriteStr("\"Ms\"")
13584 } else {
13585 r.EncodeString(`Ms`)
13586 }
13587 z.EncWriteMapElemValue()
13588 if yyn83 {
13589 r.EncodeNil()
13590 } else {
13591 if x.AnonInTestStrucIntf.Ms == nil {
13592 r.EncodeNil()
13593 } else {
13594 z.F.EncMapStringIntfV(x.AnonInTestStrucIntf.Ms, e)
13595 } // end block: if x.AnonInTestStrucIntf.Ms map == nil
13596 }
13597 }
13598 if yyq2[63] {
13599 z.EncWriteMapElemKey()
13600 if z.IsJSONHandle() {
13601 z.WriteStr("\"Ms2misu\"")
13602 } else {
13603 r.EncodeString(`Ms2misu`)
13604 }
13605 z.EncWriteMapElemValue()
13606 if x.Ms2misu == nil {
13607 r.EncodeNil()
13608 } else {
13609 h.encMapstringMapuint64stringUint64T((map[string]map[uint64]stringUint64T)(x.Ms2misu), e)
13610 } // end block: if x.Ms2misu map == nil
13611 }
13612 if yyq2[29] {
13613 z.EncWriteMapElemKey()
13614 if z.IsJSONHandle() {
13615 z.WriteStr("\"Msbytes\"")
13616 } else {
13617 r.EncodeString(`Msbytes`)
13618 }
13619 z.EncWriteMapElemValue()
13620 if x.TestStrucCommon.Msbytes == nil {
13621 r.EncodeNil()
13622 } else {
13623 z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
13624 } // end block: if x.TestStrucCommon.Msbytes map == nil
13625 }
13626 if yyq2[28] {
13627 z.EncWriteMapElemKey()
13628 if z.IsJSONHandle() {
13629 z.WriteStr("\"Msint\"")
13630 } else {
13631 r.EncodeString(`Msint`)
13632 }
13633 z.EncWriteMapElemValue()
13634 if x.TestStrucCommon.Msint == nil {
13635 r.EncodeNil()
13636 } else {
13637 z.F.EncMapStringIntV(x.TestStrucCommon.Msint, e)
13638 } // end block: if x.TestStrucCommon.Msint map == nil
13639 }
13640 if yyq2[61] {
13641 z.EncWriteMapElemKey()
13642 if z.IsJSONHandle() {
13643 z.WriteStr("\"Msp2ss\"")
13644 } else {
13645 r.EncodeString(`Msp2ss`)
13646 }
13647 z.EncWriteMapElemValue()
13648 if x.Msp2ss == nil {
13649 r.EncodeNil()
13650 } else {
13651 h.encMapPtrtostringSlicestring((map[*string][]string)(x.Msp2ss), e)
13652 } // end block: if x.Msp2ss map == nil
13653 }
13654 if yyq2[32] {
13655 z.EncWriteMapElemKey()
13656 if z.IsJSONHandle() {
13657 z.WriteStr("\"MstrUi64T\"")
13658 } else {
13659 r.EncodeString(`MstrUi64T`)
13660 }
13661 z.EncWriteMapElemValue()
13662 if x.TestStrucCommon.MstrUi64T == nil {
13663 r.EncodeNil()
13664 } else {
13665 h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
13666 } // end block: if x.TestStrucCommon.MstrUi64T map == nil
13667 }
13668 if yyq2[76] {
13669 z.EncWriteMapElemKey()
13670 if z.IsJSONHandle() {
13671 z.WriteStr("\"MstrUi64TSelf\"")
13672 } else {
13673 r.EncodeString(`MstrUi64TSelf`)
13674 }
13675 z.EncWriteMapElemValue()
13676 if x.MstrUi64TSelf == nil {
13677 r.EncodeNil()
13678 } else {
13679 h.encMapstringUint64TPtrtostringUint64T((map[stringUint64T]*stringUint64T)(x.MstrUi64TSelf), e)
13680 } // end block: if x.MstrUi64TSelf map == nil
13681 }
13682 if yyq2[84] {
13683 z.EncWriteMapElemKey()
13684 if z.IsJSONHandle() {
13685 z.WriteStr("\"Msu\"")
13686 } else {
13687 r.EncodeString(`Msu`)
13688 }
13689 z.EncWriteMapElemValue()
13690 if x.Msu == nil {
13691 r.EncodeNil()
13692 } else {
13693 h.encMapwrapStringInterface((map[wrapString]interface{})(x.Msu), e)
13694 } // end block: if x.Msu map == nil
13695 }
13696 if yyq2[68] {
13697 z.EncWriteMapElemKey()
13698 if z.IsJSONHandle() {
13699 z.WriteStr("\"Msu2wss\"")
13700 } else {
13701 r.EncodeString(`Msu2wss`)
13702 }
13703 z.EncWriteMapElemValue()
13704 if x.Msu2wss == nil {
13705 r.EncodeNil()
13706 } else {
13707 h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
13708 } // end block: if x.Msu2wss map == nil
13709 }
13710 if yyq2[86] {
13711 z.EncWriteMapElemKey()
13712 if z.IsJSONHandle() {
13713 z.WriteStr("\"Mts\"")
13714 } else {
13715 r.EncodeString(`Mts`)
13716 }
13717 z.EncWriteMapElemValue()
13718 if x.Mts == nil {
13719 r.EncodeNil()
13720 } else {
13721 h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
13722 } // end block: if x.Mts map == nil
13723 }
13724 if yyq2[85] {
13725 z.EncWriteMapElemKey()
13726 if z.IsJSONHandle() {
13727 z.WriteStr("\"Mtsptr\"")
13728 } else {
13729 r.EncodeString(`Mtsptr`)
13730 }
13731 z.EncWriteMapElemValue()
13732 if x.Mtsptr == nil {
13733 r.EncodeNil()
13734 } else {
13735 h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
13736 } // end block: if x.Mtsptr map == nil
13737 }
13738 if yyq2[59] {
13739 z.EncWriteMapElemKey()
13740 if z.IsJSONHandle() {
13741 z.WriteStr("\"Mu8e\"")
13742 } else {
13743 r.EncodeString(`Mu8e`)
13744 }
13745 z.EncWriteMapElemValue()
13746 if x.Mu8e == nil {
13747 r.EncodeNil()
13748 } else {
13749 h.encMapuint8c3RydWN0IHt9((map[uint8]struct{})(x.Mu8e), e)
13750 } // end block: if x.Mu8e map == nil
13751 }
13752 if yyq2[60] {
13753 z.EncWriteMapElemKey()
13754 if z.IsJSONHandle() {
13755 z.WriteStr("\"Mu8u64\"")
13756 } else {
13757 r.EncodeString(`Mu8u64`)
13758 }
13759 z.EncWriteMapElemValue()
13760 if x.Mu8u64 == nil {
13761 r.EncodeNil()
13762 } else {
13763 h.encMapuint8stringUint64T((map[uint8]stringUint64T)(x.Mu8u64), e)
13764 } // end block: if x.Mu8u64 map == nil
13765 }
13766 if yyq2[67] {
13767 z.EncWriteMapElemKey()
13768 if z.IsJSONHandle() {
13769 z.WriteStr("\"Mui2wss\"")
13770 } else {
13771 r.EncodeString(`Mui2wss`)
13772 }
13773 z.EncWriteMapElemValue()
13774 if x.Mui2wss == nil {
13775 r.EncodeNil()
13776 } else {
13777 h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
13778 } // end block: if x.Mui2wss map == nil
13779 }
13780 if yyq2[55] {
13781 z.EncWriteMapElemKey()
13782 if z.IsJSONHandle() {
13783 z.WriteStr("\"Nint64\"")
13784 } else {
13785 r.EncodeString(`Nint64`)
13786 }
13787 z.EncWriteMapElemValue()
13788 if yyn58 {
13789 r.EncodeNil()
13790 } else {
13791 yy271 := *x.TestStrucCommon.Nint64
13792 r.EncodeInt(int64(yy271))
13793 }
13794 }
13795 if yyq2[81] {
13796 z.EncWriteMapElemKey()
13797 if z.IsJSONHandle() {
13798 z.WriteStr("\"Nintf\"")
13799 } else {
13800 r.EncodeString(`Nintf`)
13801 }
13802 z.EncWriteMapElemValue()
13803 if yyn84 {
13804 r.EncodeNil()
13805 } else {
13806 z.EncFallback(x.AnonInTestStrucIntf.Nintf)
13807 }
13808 }
13809 if yyq2[53] {
13810 z.EncWriteMapElemKey()
13811 if z.IsJSONHandle() {
13812 z.WriteStr("\"Nmap\"")
13813 } else {
13814 r.EncodeString(`Nmap`)
13815 }
13816 z.EncWriteMapElemValue()
13817 if x.TestStrucCommon.Nmap == nil {
13818 r.EncodeNil()
13819 } else {
13820 z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
13821 } // end block: if x.TestStrucCommon.Nmap map == nil
13822 }
13823 if yyq2[50] {
13824 z.EncWriteMapElemKey()
13825 if z.IsJSONHandle() {
13826 z.WriteStr("\"NotAnon\"")
13827 } else {
13828 r.EncodeString(`NotAnon`)
13829 }
13830 z.EncWriteMapElemValue()
13831 yy275 := &x.TestStrucCommon.NotAnon
13832 if yyxt276 := z.Extension(yy275); yyxt276 != nil {
13833 z.EncExtension(yy275, yyxt276)
13834 } else {
13835 yy275.CodecEncodeSelf(e)
13836 }
13837 }
13838 if yyq2[52] {
13839 z.EncWriteMapElemKey()
13840 if z.IsJSONHandle() {
13841 z.WriteStr("\"NotAnonSlim\"")
13842 } else {
13843 r.EncodeString(`NotAnonSlim`)
13844 }
13845 z.EncWriteMapElemValue()
13846 if yyn55 {
13847 r.EncodeNil()
13848 } else {
13849 if yyxt277 := z.Extension(x.TestStrucCommon.NotAnonSlim); yyxt277 != nil {
13850 z.EncExtension(x.TestStrucCommon.NotAnonSlim, yyxt277)
13851 } else {
13852 x.TestStrucCommon.NotAnonSlim.CodecEncodeSelf(e)
13853 }
13854 }
13855 }
13856 if yyq2[54] {
13857 z.EncWriteMapElemKey()
13858 if z.IsJSONHandle() {
13859 z.WriteStr("\"Nslice\"")
13860 } else {
13861 r.EncodeString(`Nslice`)
13862 }
13863 z.EncWriteMapElemValue()
13864 if x.TestStrucCommon.Nslice == nil {
13865 r.EncodeNil()
13866 } else {
13867 r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
13868 } // end block: if x.TestStrucCommon.Nslice slice == nil
13869 }
13870 if yyq2[88] {
13871 z.EncWriteMapElemKey()
13872 if z.IsJSONHandle() {
13873 z.WriteStr("\"Nteststruc\"")
13874 } else {
13875 r.EncodeString(`Nteststruc`)
13876 }
13877 z.EncWriteMapElemValue()
13878 if yyn91 {
13879 r.EncodeNil()
13880 } else {
13881 if yyxt279 := z.Extension(x.Nteststruc); yyxt279 != nil {
13882 z.EncExtension(x.Nteststruc, yyxt279)
13883 } else {
13884 x.Nteststruc.CodecEncodeSelf(e)
13885 }
13886 }
13887 }
13888 if yyq2[51] {
13889 z.EncWriteMapElemKey()
13890 if z.IsJSONHandle() {
13891 z.WriteStr("\"P\"")
13892 } else {
13893 r.EncodeString(`P`)
13894 }
13895 z.EncWriteMapElemValue()
13896 if yyn54 {
13897 r.EncodeNil()
13898 } else {
13899 yy280 := *x.TestStrucCommon.AnonInTestStrucSlim.P
13900 r.EncodeString(string(yy280))
13901 }
13902 }
13903 if yyq2[0] {
13904 z.EncWriteMapElemKey()
13905 if z.IsJSONHandle() {
13906 z.WriteStr("\"S\"")
13907 } else {
13908 r.EncodeString(`S`)
13909 }
13910 z.EncWriteMapElemValue()
13911 r.EncodeString(string(x.TestStrucCommon.S))
13912 }
13913 if yyq2[30] {
13914 z.EncWriteMapElemKey()
13915 if z.IsJSONHandle() {
13916 z.WriteStr("\"Simplef\"")
13917 } else {
13918 r.EncodeString(`Simplef`)
13919 }
13920 z.EncWriteMapElemValue()
13921 yy283 := &x.TestStrucCommon.Simplef
13922 if yyxt284 := z.Extension(yy283); yyxt284 != nil {
13923 z.EncExtension(yy283, yyxt284)
13924 } else {
13925 yy283.CodecEncodeSelf(e)
13926 }
13927 }
13928 if yyq2[75] {
13929 z.EncWriteMapElemKey()
13930 if z.IsJSONHandle() {
13931 z.WriteStr("\"SintfAarray\"")
13932 } else {
13933 r.EncodeString(`SintfAarray`)
13934 }
13935 z.EncWriteMapElemValue()
13936 if x.SintfAarray == nil {
13937 r.EncodeNil()
13938 } else {
13939 z.F.EncSliceIntfV(x.SintfAarray, e)
13940 } // end block: if x.SintfAarray slice == nil
13941 }
13942 if yyq2[17] {
13943 z.EncWriteMapElemKey()
13944 if z.IsJSONHandle() {
13945 z.WriteStr("\"Sslice\"")
13946 } else {
13947 r.EncodeString(`Sslice`)
13948 }
13949 z.EncWriteMapElemValue()
13950 if x.TestStrucCommon.Sslice == nil {
13951 r.EncodeNil()
13952 } else {
13953 z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
13954 } // end block: if x.TestStrucCommon.Sslice slice == nil
13955 }
13956 if yyq2[31] {
13957 z.EncWriteMapElemKey()
13958 if z.IsJSONHandle() {
13959 z.WriteStr("\"SstrUi64T\"")
13960 } else {
13961 r.EncodeString(`SstrUi64T`)
13962 }
13963 z.EncWriteMapElemValue()
13964 if x.TestStrucCommon.SstrUi64T == nil {
13965 r.EncodeNil()
13966 } else {
13967 h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
13968 } // end block: if x.TestStrucCommon.SstrUi64T slice == nil
13969 }
13970 if yyq2[70] {
13971 z.EncWriteMapElemKey()
13972 if z.IsJSONHandle() {
13973 z.WriteStr("\"Swrapbytes\"")
13974 } else {
13975 r.EncodeString(`Swrapbytes`)
13976 }
13977 z.EncWriteMapElemValue()
13978 if x.Swrapbytes == nil {
13979 r.EncodeNil()
13980 } else {
13981 h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
13982 } // end block: if x.Swrapbytes slice == nil
13983 }
13984 if yyq2[71] {
13985 z.EncWriteMapElemKey()
13986 if z.IsJSONHandle() {
13987 z.WriteStr("\"Swrapuint8\"")
13988 } else {
13989 r.EncodeString(`Swrapuint8`)
13990 }
13991 z.EncWriteMapElemValue()
13992 if x.Swrapuint8 == nil {
13993 r.EncodeNil()
13994 } else {
13995 h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
13996 } // end block: if x.Swrapuint8 slice == nil
13997 }
13998 if yyq2[82] {
13999 z.EncWriteMapElemKey()
14000 if z.IsJSONHandle() {
14001 z.WriteStr("\"T\"")
14002 } else {
14003 r.EncodeString(`T`)
14004 }
14005 z.EncWriteMapElemValue()
14006 if yyn85 {
14007 r.EncodeNil()
14008 } else {
14009 if z.EncBasicHandle().TimeBuiltin() {
14010 r.EncodeTime(x.AnonInTestStrucIntf.T)
14011 } else if yyxt290 := z.Extension(x.AnonInTestStrucIntf.T); yyxt290 != nil {
14012 z.EncExtension(x.AnonInTestStrucIntf.T, yyxt290)
14013 } else if z.EncBinary() {
14014 z.EncBinaryMarshal(x.AnonInTestStrucIntf.T)
14015 } else if !z.EncBinary() && z.IsJSONHandle() {
14016 z.EncJSONMarshal(x.AnonInTestStrucIntf.T)
14017 } else {
14018 z.EncFallback(x.AnonInTestStrucIntf.T)
14019 }
14020 }
14021 }
14022 if yyq2[83] {
14023 z.EncWriteMapElemKey()
14024 if z.IsJSONHandle() {
14025 z.WriteStr("\"Tptr\"")
14026 } else {
14027 r.EncodeString(`Tptr`)
14028 }
14029 z.EncWriteMapElemValue()
14030 if yyn86 {
14031 r.EncodeNil()
14032 } else {
14033 yy291 := *x.AnonInTestStrucIntf.Tptr
14034 if z.EncBasicHandle().TimeBuiltin() {
14035 r.EncodeTime(yy291)
14036 } else if yyxt292 := z.Extension(yy291); yyxt292 != nil {
14037 z.EncExtension(yy291, yyxt292)
14038 } else if z.EncBinary() {
14039 z.EncBinaryMarshal(yy291)
14040 } else if !z.EncBinary() && z.IsJSONHandle() {
14041 z.EncJSONMarshal(yy291)
14042 } else {
14043 z.EncFallback(yy291)
14044 }
14045 }
14046 }
14047 if yyq2[77] {
14048 z.EncWriteMapElemKey()
14049 if z.IsJSONHandle() {
14050 z.WriteStr("\"Ttime\"")
14051 } else {
14052 r.EncodeString(`Ttime`)
14053 }
14054 z.EncWriteMapElemValue()
14055 if z.EncBasicHandle().TimeBuiltin() {
14056 r.EncodeTime(x.Ttime)
14057 } else if yyxt293 := z.Extension(x.Ttime); yyxt293 != nil {
14058 z.EncExtension(x.Ttime, yyxt293)
14059 } else if z.EncBinary() {
14060 z.EncBinaryMarshal(x.Ttime)
14061 } else if !z.EncBinary() && z.IsJSONHandle() {
14062 z.EncJSONMarshal(x.Ttime)
14063 } else {
14064 z.EncFallback(x.Ttime)
14065 }
14066 }
14067 if yyq2[78] {
14068 z.EncWriteMapElemKey()
14069 if z.IsJSONHandle() {
14070 z.WriteStr("\"Ttimeptr\"")
14071 } else {
14072 r.EncodeString(`Ttimeptr`)
14073 }
14074 z.EncWriteMapElemValue()
14075 if yyn81 {
14076 r.EncodeNil()
14077 } else {
14078 yy294 := *x.Ttimeptr
14079 if z.EncBasicHandle().TimeBuiltin() {
14080 r.EncodeTime(yy294)
14081 } else if yyxt295 := z.Extension(yy294); yyxt295 != nil {
14082 z.EncExtension(yy294, yyxt295)
14083 } else if z.EncBinary() {
14084 z.EncBinaryMarshal(yy294)
14085 } else if !z.EncBinary() && z.IsJSONHandle() {
14086 z.EncJSONMarshal(yy294)
14087 } else {
14088 z.EncFallback(yy294)
14089 }
14090 }
14091 }
14092 if yyq2[11] {
14093 z.EncWriteMapElemKey()
14094 if z.IsJSONHandle() {
14095 z.WriteStr("\"Ui16\"")
14096 } else {
14097 r.EncodeString(`Ui16`)
14098 }
14099 z.EncWriteMapElemValue()
14100 r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
14101 }
14102 if yyq2[10] {
14103 z.EncWriteMapElemKey()
14104 if z.IsJSONHandle() {
14105 z.WriteStr("\"Ui32\"")
14106 } else {
14107 r.EncodeString(`Ui32`)
14108 }
14109 z.EncWriteMapElemValue()
14110 r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
14111 }
14112 if yyq2[9] {
14113 z.EncWriteMapElemKey()
14114 if z.IsJSONHandle() {
14115 z.WriteStr("\"Ui64\"")
14116 } else {
14117 r.EncodeString(`Ui64`)
14118 }
14119 z.EncWriteMapElemValue()
14120 r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
14121 }
14122 if yyq2[73] {
14123 z.EncWriteMapElemKey()
14124 if z.IsJSONHandle() {
14125 z.WriteStr("\"Ui64array\"")
14126 } else {
14127 r.EncodeString(`Ui64array`)
14128 }
14129 z.EncWriteMapElemValue()
14130 yy299 := &x.Ui64array
14131 h.encArray4uint64((*[4]uint64)(yy299), e)
14132 }
14133 if yyq2[20] {
14134 z.EncWriteMapElemKey()
14135 if z.IsJSONHandle() {
14136 z.WriteStr("\"Ui64slice\"")
14137 } else {
14138 r.EncodeString(`Ui64slice`)
14139 }
14140 z.EncWriteMapElemValue()
14141 if x.TestStrucCommon.Ui64slice == nil {
14142 r.EncodeNil()
14143 } else {
14144 z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
14145 } // end block: if x.TestStrucCommon.Ui64slice slice == nil
14146 }
14147 if yyq2[74] {
14148 z.EncWriteMapElemKey()
14149 if z.IsJSONHandle() {
14150 z.WriteStr("\"Ui64slicearray\"")
14151 } else {
14152 r.EncodeString(`Ui64slicearray`)
14153 }
14154 z.EncWriteMapElemValue()
14155 if x.Ui64slicearray == nil {
14156 r.EncodeNil()
14157 } else {
14158 h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
14159 } // end block: if x.Ui64slicearray slice == nil
14160 }
14161 if yyq2[12] {
14162 z.EncWriteMapElemKey()
14163 if z.IsJSONHandle() {
14164 z.WriteStr("\"Ui8\"")
14165 } else {
14166 r.EncodeString(`Ui8`)
14167 }
14168 z.EncWriteMapElemValue()
14169 r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
14170 }
14171 if yyq2[21] {
14172 z.EncWriteMapElemKey()
14173 if z.IsJSONHandle() {
14174 z.WriteStr("\"Ui8slice\"")
14175 } else {
14176 r.EncodeString(`Ui8slice`)
14177 }
14178 z.EncWriteMapElemValue()
14179 if x.TestStrucCommon.Ui8slice == nil {
14180 r.EncodeNil()
14181 } else {
14182 r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
14183 } // end block: if x.TestStrucCommon.Ui8slice slice == nil
14184 }
14185 if yyq2[26] {
14186 z.EncWriteMapElemKey()
14187 if z.IsJSONHandle() {
14188 z.WriteStr("\"WrapSliceInt64\"")
14189 } else {
14190 r.EncodeString(`WrapSliceInt64`)
14191 }
14192 z.EncWriteMapElemValue()
14193 if yyxt305 := z.Extension(x.TestStrucCommon.WrapSliceInt64); yyxt305 != nil {
14194 z.EncExtension(x.TestStrucCommon.WrapSliceInt64, yyxt305)
14195 } else {
14196 x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
14197 }
14198 }
14199 if yyq2[27] {
14200 z.EncWriteMapElemKey()
14201 if z.IsJSONHandle() {
14202 z.WriteStr("\"WrapSliceString\"")
14203 } else {
14204 r.EncodeString(`WrapSliceString`)
14205 }
14206 z.EncWriteMapElemValue()
14207 if yyxt306 := z.Extension(x.TestStrucCommon.WrapSliceString); yyxt306 != nil {
14208 z.EncExtension(x.TestStrucCommon.WrapSliceString, yyxt306)
14209 } else {
14210 x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
14211 }
14212 }
14213 if yyq2[92] {
14214 z.EncWriteMapElemKey()
14215 if z.IsJSONHandle() {
14216 z.WriteStr("\"XuintToBytes\"")
14217 } else {
14218 r.EncodeString(`XuintToBytes`)
14219 }
14220 z.EncWriteMapElemValue()
14221 if yyxt307 := z.Extension(x.XuintToBytes); yyxt307 != nil {
14222 z.EncExtension(x.XuintToBytes, yyxt307)
14223 } else {
14224 x.XuintToBytes.CodecEncodeSelf(e)
14225 }
14226 }
14227 } else {
14228 if yyq2[0] {
14229 z.EncWriteMapElemKey()
14230 if z.IsJSONHandle() {
14231 z.WriteStr("\"S\"")
14232 } else {
14233 r.EncodeString(`S`)
14234 }
14235 z.EncWriteMapElemValue()
14236 r.EncodeString(string(x.TestStrucCommon.S))
14237 }
14238 if yyq2[1] {
14239 z.EncWriteMapElemKey()
14240 if z.IsJSONHandle() {
14241 z.WriteStr("\"I64\"")
14242 } else {
14243 r.EncodeString(`I64`)
14244 }
14245 z.EncWriteMapElemValue()
14246 r.EncodeInt(int64(x.TestStrucCommon.I64))
14247 }
14248 if yyq2[2] {
14249 z.EncWriteMapElemKey()
14250 if z.IsJSONHandle() {
14251 z.WriteStr("\"I32\"")
14252 } else {
14253 r.EncodeString(`I32`)
14254 }
14255 z.EncWriteMapElemValue()
14256 r.EncodeInt(int64(x.TestStrucCommon.I32))
14257 }
14258 if yyq2[3] {
14259 z.EncWriteMapElemKey()
14260 if z.IsJSONHandle() {
14261 z.WriteStr("\"I16\"")
14262 } else {
14263 r.EncodeString(`I16`)
14264 }
14265 z.EncWriteMapElemValue()
14266 r.EncodeInt(int64(x.TestStrucCommon.I16))
14267 }
14268 if yyq2[4] {
14269 z.EncWriteMapElemKey()
14270 if z.IsJSONHandle() {
14271 z.WriteStr("\"I8\"")
14272 } else {
14273 r.EncodeString(`I8`)
14274 }
14275 z.EncWriteMapElemValue()
14276 r.EncodeInt(int64(x.TestStrucCommon.I8))
14277 }
14278 if yyq2[5] {
14279 z.EncWriteMapElemKey()
14280 if z.IsJSONHandle() {
14281 z.WriteStr("\"I64n\"")
14282 } else {
14283 r.EncodeString(`I64n`)
14284 }
14285 z.EncWriteMapElemValue()
14286 r.EncodeInt(int64(x.TestStrucCommon.I64n))
14287 }
14288 if yyq2[6] {
14289 z.EncWriteMapElemKey()
14290 if z.IsJSONHandle() {
14291 z.WriteStr("\"I32n\"")
14292 } else {
14293 r.EncodeString(`I32n`)
14294 }
14295 z.EncWriteMapElemValue()
14296 r.EncodeInt(int64(x.TestStrucCommon.I32n))
14297 }
14298 if yyq2[7] {
14299 z.EncWriteMapElemKey()
14300 if z.IsJSONHandle() {
14301 z.WriteStr("\"I16n\"")
14302 } else {
14303 r.EncodeString(`I16n`)
14304 }
14305 z.EncWriteMapElemValue()
14306 r.EncodeInt(int64(x.TestStrucCommon.I16n))
14307 }
14308 if yyq2[8] {
14309 z.EncWriteMapElemKey()
14310 if z.IsJSONHandle() {
14311 z.WriteStr("\"I8n\"")
14312 } else {
14313 r.EncodeString(`I8n`)
14314 }
14315 z.EncWriteMapElemValue()
14316 r.EncodeInt(int64(x.TestStrucCommon.I8n))
14317 }
14318 if yyq2[9] {
14319 z.EncWriteMapElemKey()
14320 if z.IsJSONHandle() {
14321 z.WriteStr("\"Ui64\"")
14322 } else {
14323 r.EncodeString(`Ui64`)
14324 }
14325 z.EncWriteMapElemValue()
14326 r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
14327 }
14328 if yyq2[10] {
14329 z.EncWriteMapElemKey()
14330 if z.IsJSONHandle() {
14331 z.WriteStr("\"Ui32\"")
14332 } else {
14333 r.EncodeString(`Ui32`)
14334 }
14335 z.EncWriteMapElemValue()
14336 r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
14337 }
14338 if yyq2[11] {
14339 z.EncWriteMapElemKey()
14340 if z.IsJSONHandle() {
14341 z.WriteStr("\"Ui16\"")
14342 } else {
14343 r.EncodeString(`Ui16`)
14344 }
14345 z.EncWriteMapElemValue()
14346 r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
14347 }
14348 if yyq2[12] {
14349 z.EncWriteMapElemKey()
14350 if z.IsJSONHandle() {
14351 z.WriteStr("\"Ui8\"")
14352 } else {
14353 r.EncodeString(`Ui8`)
14354 }
14355 z.EncWriteMapElemValue()
14356 r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
14357 }
14358 if yyq2[13] {
14359 z.EncWriteMapElemKey()
14360 if z.IsJSONHandle() {
14361 z.WriteStr("\"F64\"")
14362 } else {
14363 r.EncodeString(`F64`)
14364 }
14365 z.EncWriteMapElemValue()
14366 r.EncodeFloat64(float64(x.TestStrucCommon.F64))
14367 }
14368 if yyq2[14] {
14369 z.EncWriteMapElemKey()
14370 if z.IsJSONHandle() {
14371 z.WriteStr("\"F32\"")
14372 } else {
14373 r.EncodeString(`F32`)
14374 }
14375 z.EncWriteMapElemValue()
14376 r.EncodeFloat32(float32(x.TestStrucCommon.F32))
14377 }
14378 if yyq2[15] {
14379 z.EncWriteMapElemKey()
14380 if z.IsJSONHandle() {
14381 z.WriteStr("\"B\"")
14382 } else {
14383 r.EncodeString(`B`)
14384 }
14385 z.EncWriteMapElemValue()
14386 r.EncodeBool(bool(x.TestStrucCommon.B))
14387 }
14388 if yyq2[16] {
14389 z.EncWriteMapElemKey()
14390 if z.IsJSONHandle() {
14391 z.WriteStr("\"By\"")
14392 } else {
14393 r.EncodeString(`By`)
14394 }
14395 z.EncWriteMapElemValue()
14396 r.EncodeUint(uint64(x.TestStrucCommon.By))
14397 }
14398 if yyq2[17] {
14399 z.EncWriteMapElemKey()
14400 if z.IsJSONHandle() {
14401 z.WriteStr("\"Sslice\"")
14402 } else {
14403 r.EncodeString(`Sslice`)
14404 }
14405 z.EncWriteMapElemValue()
14406 if x.TestStrucCommon.Sslice == nil {
14407 r.EncodeNil()
14408 } else {
14409 z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
14410 } // end block: if x.TestStrucCommon.Sslice slice == nil
14411 }
14412 if yyq2[18] {
14413 z.EncWriteMapElemKey()
14414 if z.IsJSONHandle() {
14415 z.WriteStr("\"I64slice\"")
14416 } else {
14417 r.EncodeString(`I64slice`)
14418 }
14419 z.EncWriteMapElemValue()
14420 if x.TestStrucCommon.I64slice == nil {
14421 r.EncodeNil()
14422 } else {
14423 z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
14424 } // end block: if x.TestStrucCommon.I64slice slice == nil
14425 }
14426 if yyq2[19] {
14427 z.EncWriteMapElemKey()
14428 if z.IsJSONHandle() {
14429 z.WriteStr("\"I32slice\"")
14430 } else {
14431 r.EncodeString(`I32slice`)
14432 }
14433 z.EncWriteMapElemValue()
14434 if x.TestStrucCommon.I32slice == nil {
14435 r.EncodeNil()
14436 } else {
14437 z.F.EncSliceInt32V(x.TestStrucCommon.I32slice, e)
14438 } // end block: if x.TestStrucCommon.I32slice slice == nil
14439 }
14440 if yyq2[20] {
14441 z.EncWriteMapElemKey()
14442 if z.IsJSONHandle() {
14443 z.WriteStr("\"Ui64slice\"")
14444 } else {
14445 r.EncodeString(`Ui64slice`)
14446 }
14447 z.EncWriteMapElemValue()
14448 if x.TestStrucCommon.Ui64slice == nil {
14449 r.EncodeNil()
14450 } else {
14451 z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
14452 } // end block: if x.TestStrucCommon.Ui64slice slice == nil
14453 }
14454 if yyq2[21] {
14455 z.EncWriteMapElemKey()
14456 if z.IsJSONHandle() {
14457 z.WriteStr("\"Ui8slice\"")
14458 } else {
14459 r.EncodeString(`Ui8slice`)
14460 }
14461 z.EncWriteMapElemValue()
14462 if x.TestStrucCommon.Ui8slice == nil {
14463 r.EncodeNil()
14464 } else {
14465 r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
14466 } // end block: if x.TestStrucCommon.Ui8slice slice == nil
14467 }
14468 if yyq2[22] {
14469 z.EncWriteMapElemKey()
14470 if z.IsJSONHandle() {
14471 z.WriteStr("\"Bslice\"")
14472 } else {
14473 r.EncodeString(`Bslice`)
14474 }
14475 z.EncWriteMapElemValue()
14476 if x.TestStrucCommon.Bslice == nil {
14477 r.EncodeNil()
14478 } else {
14479 z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
14480 } // end block: if x.TestStrucCommon.Bslice slice == nil
14481 }
14482 if yyq2[23] {
14483 z.EncWriteMapElemKey()
14484 if z.IsJSONHandle() {
14485 z.WriteStr("\"Byslice\"")
14486 } else {
14487 r.EncodeString(`Byslice`)
14488 }
14489 z.EncWriteMapElemValue()
14490 if x.TestStrucCommon.Byslice == nil {
14491 r.EncodeNil()
14492 } else {
14493 r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
14494 } // end block: if x.TestStrucCommon.Byslice slice == nil
14495 }
14496 if yyq2[24] {
14497 z.EncWriteMapElemKey()
14498 if z.IsJSONHandle() {
14499 z.WriteStr("\"BytesSlice\"")
14500 } else {
14501 r.EncodeString(`BytesSlice`)
14502 }
14503 z.EncWriteMapElemValue()
14504 if x.TestStrucCommon.BytesSlice == nil {
14505 r.EncodeNil()
14506 } else {
14507 z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
14508 } // end block: if x.TestStrucCommon.BytesSlice slice == nil
14509 }
14510 if yyq2[25] {
14511 z.EncWriteMapElemKey()
14512 if z.IsJSONHandle() {
14513 z.WriteStr("\"Iptrslice\"")
14514 } else {
14515 r.EncodeString(`Iptrslice`)
14516 }
14517 z.EncWriteMapElemValue()
14518 if x.TestStrucCommon.Iptrslice == nil {
14519 r.EncodeNil()
14520 } else {
14521 h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
14522 } // end block: if x.TestStrucCommon.Iptrslice slice == nil
14523 }
14524 if yyq2[26] {
14525 z.EncWriteMapElemKey()
14526 if z.IsJSONHandle() {
14527 z.WriteStr("\"WrapSliceInt64\"")
14528 } else {
14529 r.EncodeString(`WrapSliceInt64`)
14530 }
14531 z.EncWriteMapElemValue()
14532 if yyxt334 := z.Extension(x.TestStrucCommon.WrapSliceInt64); yyxt334 != nil {
14533 z.EncExtension(x.TestStrucCommon.WrapSliceInt64, yyxt334)
14534 } else {
14535 x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
14536 }
14537 }
14538 if yyq2[27] {
14539 z.EncWriteMapElemKey()
14540 if z.IsJSONHandle() {
14541 z.WriteStr("\"WrapSliceString\"")
14542 } else {
14543 r.EncodeString(`WrapSliceString`)
14544 }
14545 z.EncWriteMapElemValue()
14546 if yyxt335 := z.Extension(x.TestStrucCommon.WrapSliceString); yyxt335 != nil {
14547 z.EncExtension(x.TestStrucCommon.WrapSliceString, yyxt335)
14548 } else {
14549 x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
14550 }
14551 }
14552 if yyq2[28] {
14553 z.EncWriteMapElemKey()
14554 if z.IsJSONHandle() {
14555 z.WriteStr("\"Msint\"")
14556 } else {
14557 r.EncodeString(`Msint`)
14558 }
14559 z.EncWriteMapElemValue()
14560 if x.TestStrucCommon.Msint == nil {
14561 r.EncodeNil()
14562 } else {
14563 z.F.EncMapStringIntV(x.TestStrucCommon.Msint, e)
14564 } // end block: if x.TestStrucCommon.Msint map == nil
14565 }
14566 if yyq2[29] {
14567 z.EncWriteMapElemKey()
14568 if z.IsJSONHandle() {
14569 z.WriteStr("\"Msbytes\"")
14570 } else {
14571 r.EncodeString(`Msbytes`)
14572 }
14573 z.EncWriteMapElemValue()
14574 if x.TestStrucCommon.Msbytes == nil {
14575 r.EncodeNil()
14576 } else {
14577 z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
14578 } // end block: if x.TestStrucCommon.Msbytes map == nil
14579 }
14580 if yyq2[30] {
14581 z.EncWriteMapElemKey()
14582 if z.IsJSONHandle() {
14583 z.WriteStr("\"Simplef\"")
14584 } else {
14585 r.EncodeString(`Simplef`)
14586 }
14587 z.EncWriteMapElemValue()
14588 yy338 := &x.TestStrucCommon.Simplef
14589 if yyxt339 := z.Extension(yy338); yyxt339 != nil {
14590 z.EncExtension(yy338, yyxt339)
14591 } else {
14592 yy338.CodecEncodeSelf(e)
14593 }
14594 }
14595 if yyq2[31] {
14596 z.EncWriteMapElemKey()
14597 if z.IsJSONHandle() {
14598 z.WriteStr("\"SstrUi64T\"")
14599 } else {
14600 r.EncodeString(`SstrUi64T`)
14601 }
14602 z.EncWriteMapElemValue()
14603 if x.TestStrucCommon.SstrUi64T == nil {
14604 r.EncodeNil()
14605 } else {
14606 h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
14607 } // end block: if x.TestStrucCommon.SstrUi64T slice == nil
14608 }
14609 if yyq2[32] {
14610 z.EncWriteMapElemKey()
14611 if z.IsJSONHandle() {
14612 z.WriteStr("\"MstrUi64T\"")
14613 } else {
14614 r.EncodeString(`MstrUi64T`)
14615 }
14616 z.EncWriteMapElemValue()
14617 if x.TestStrucCommon.MstrUi64T == nil {
14618 r.EncodeNil()
14619 } else {
14620 h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
14621 } // end block: if x.TestStrucCommon.MstrUi64T map == nil
14622 }
14623 if yyq2[33] {
14624 z.EncWriteMapElemKey()
14625 if z.IsJSONHandle() {
14626 z.WriteStr("\"AS\"")
14627 } else {
14628 r.EncodeString(`AS`)
14629 }
14630 z.EncWriteMapElemValue()
14631 r.EncodeString(string(x.TestStrucCommon.AnonInTestStruc.AS))
14632 }
14633 if yyq2[34] {
14634 z.EncWriteMapElemKey()
14635 if z.IsJSONHandle() {
14636 z.WriteStr("\"AI64\"")
14637 } else {
14638 r.EncodeString(`AI64`)
14639 }
14640 z.EncWriteMapElemValue()
14641 r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
14642 }
14643 if yyq2[35] {
14644 z.EncWriteMapElemKey()
14645 if z.IsJSONHandle() {
14646 z.WriteStr("\"AI16\"")
14647 } else {
14648 r.EncodeString(`AI16`)
14649 }
14650 z.EncWriteMapElemValue()
14651 r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
14652 }
14653 if yyq2[36] {
14654 z.EncWriteMapElemKey()
14655 if z.IsJSONHandle() {
14656 z.WriteStr("\"AUi64\"")
14657 } else {
14658 r.EncodeString(`AUi64`)
14659 }
14660 z.EncWriteMapElemValue()
14661 r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
14662 }
14663 if yyq2[37] {
14664 z.EncWriteMapElemKey()
14665 if z.IsJSONHandle() {
14666 z.WriteStr("\"ASslice\"")
14667 } else {
14668 r.EncodeString(`ASslice`)
14669 }
14670 z.EncWriteMapElemValue()
14671 if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
14672 r.EncodeNil()
14673 } else {
14674 z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
14675 } // end block: if x.TestStrucCommon.AnonInTestStruc.ASslice slice == nil
14676 }
14677 if yyq2[38] {
14678 z.EncWriteMapElemKey()
14679 if z.IsJSONHandle() {
14680 z.WriteStr("\"AI64slice\"")
14681 } else {
14682 r.EncodeString(`AI64slice`)
14683 }
14684 z.EncWriteMapElemValue()
14685 if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
14686 r.EncodeNil()
14687 } else {
14688 z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
14689 } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice slice == nil
14690 }
14691 if yyq2[39] {
14692 z.EncWriteMapElemKey()
14693 if z.IsJSONHandle() {
14694 z.WriteStr("\"AUi64slice\"")
14695 } else {
14696 r.EncodeString(`AUi64slice`)
14697 }
14698 z.EncWriteMapElemValue()
14699 if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
14700 r.EncodeNil()
14701 } else {
14702 z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
14703 } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64slice slice == nil
14704 }
14705 if yyq2[40] {
14706 z.EncWriteMapElemKey()
14707 if z.IsJSONHandle() {
14708 z.WriteStr("\"AF64slice\"")
14709 } else {
14710 r.EncodeString(`AF64slice`)
14711 }
14712 z.EncWriteMapElemValue()
14713 if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
14714 r.EncodeNil()
14715 } else {
14716 z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
14717 } // end block: if x.TestStrucCommon.AnonInTestStruc.AF64slice slice == nil
14718 }
14719 if yyq2[41] {
14720 z.EncWriteMapElemKey()
14721 if z.IsJSONHandle() {
14722 z.WriteStr("\"AF32slice\"")
14723 } else {
14724 r.EncodeString(`AF32slice`)
14725 }
14726 z.EncWriteMapElemValue()
14727 if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
14728 r.EncodeNil()
14729 } else {
14730 z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
14731 } // end block: if x.TestStrucCommon.AnonInTestStruc.AF32slice slice == nil
14732 }
14733 if yyq2[42] {
14734 z.EncWriteMapElemKey()
14735 if z.IsJSONHandle() {
14736 z.WriteStr("\"AMSS\"")
14737 } else {
14738 r.EncodeString(`AMSS`)
14739 }
14740 z.EncWriteMapElemValue()
14741 if x.TestStrucCommon.AnonInTestStruc.AMSS == nil {
14742 r.EncodeNil()
14743 } else {
14744 z.F.EncMapStringStringV(x.TestStrucCommon.AnonInTestStruc.AMSS, e)
14745 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSS map == nil
14746 }
14747 if yyq2[43] {
14748 z.EncWriteMapElemKey()
14749 if z.IsJSONHandle() {
14750 z.WriteStr("\"AMSU64\"")
14751 } else {
14752 r.EncodeString(`AMSU64`)
14753 }
14754 z.EncWriteMapElemValue()
14755 if x.TestStrucCommon.AnonInTestStruc.AMSU64 == nil {
14756 r.EncodeNil()
14757 } else {
14758 z.F.EncMapStringUint64V(x.TestStrucCommon.AnonInTestStruc.AMSU64, e)
14759 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU64 map == nil
14760 }
14761 if yyq2[44] {
14762 z.EncWriteMapElemKey()
14763 if z.IsJSONHandle() {
14764 z.WriteStr("\"AI64arr8\"")
14765 } else {
14766 r.EncodeString(`AI64arr8`)
14767 }
14768 z.EncWriteMapElemValue()
14769 yy353 := &x.TestStrucCommon.AnonInTestStruc.AI64arr8
14770 h.encArray8int64((*[8]int64)(yy353), e)
14771 }
14772 if yyq2[45] {
14773 z.EncWriteMapElemKey()
14774 if z.IsJSONHandle() {
14775 z.WriteStr("\"AI64arr0\"")
14776 } else {
14777 r.EncodeString(`AI64arr0`)
14778 }
14779 z.EncWriteMapElemValue()
14780 yy355 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
14781 h.encArray0int64((*[0]int64)(yy355), e)
14782 }
14783 if yyq2[46] {
14784 z.EncWriteMapElemKey()
14785 if z.IsJSONHandle() {
14786 z.WriteStr("\"AI64slice0\"")
14787 } else {
14788 r.EncodeString(`AI64slice0`)
14789 }
14790 z.EncWriteMapElemValue()
14791 if x.TestStrucCommon.AnonInTestStruc.AI64slice0 == nil {
14792 r.EncodeNil()
14793 } else {
14794 z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
14795 } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice0 slice == nil
14796 }
14797 if yyq2[47] {
14798 z.EncWriteMapElemKey()
14799 if z.IsJSONHandle() {
14800 z.WriteStr("\"AUi64sliceN\"")
14801 } else {
14802 r.EncodeString(`AUi64sliceN`)
14803 }
14804 z.EncWriteMapElemValue()
14805 if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
14806 r.EncodeNil()
14807 } else {
14808 z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
14809 } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN slice == nil
14810 }
14811 if yyq2[48] {
14812 z.EncWriteMapElemKey()
14813 if z.IsJSONHandle() {
14814 z.WriteStr("\"AMSU64N\"")
14815 } else {
14816 r.EncodeString(`AMSU64N`)
14817 }
14818 z.EncWriteMapElemValue()
14819 if x.TestStrucCommon.AnonInTestStruc.AMSU64N == nil {
14820 r.EncodeNil()
14821 } else {
14822 z.F.EncMapStringUint64V(x.TestStrucCommon.AnonInTestStruc.AMSU64N, e)
14823 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU64N map == nil
14824 }
14825 if yyq2[49] {
14826 z.EncWriteMapElemKey()
14827 if z.IsJSONHandle() {
14828 z.WriteStr("\"AMSU64E\"")
14829 } else {
14830 r.EncodeString(`AMSU64E`)
14831 }
14832 z.EncWriteMapElemValue()
14833 if x.TestStrucCommon.AnonInTestStruc.AMSU64E == nil {
14834 r.EncodeNil()
14835 } else {
14836 z.F.EncMapStringUint64V(x.TestStrucCommon.AnonInTestStruc.AMSU64E, e)
14837 } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU64E map == nil
14838 }
14839 if yyq2[50] {
14840 z.EncWriteMapElemKey()
14841 if z.IsJSONHandle() {
14842 z.WriteStr("\"NotAnon\"")
14843 } else {
14844 r.EncodeString(`NotAnon`)
14845 }
14846 z.EncWriteMapElemValue()
14847 yy361 := &x.TestStrucCommon.NotAnon
14848 if yyxt362 := z.Extension(yy361); yyxt362 != nil {
14849 z.EncExtension(yy361, yyxt362)
14850 } else {
14851 yy361.CodecEncodeSelf(e)
14852 }
14853 }
14854 if yyq2[51] {
14855 z.EncWriteMapElemKey()
14856 if z.IsJSONHandle() {
14857 z.WriteStr("\"P\"")
14858 } else {
14859 r.EncodeString(`P`)
14860 }
14861 z.EncWriteMapElemValue()
14862 if yyn54 {
14863 r.EncodeNil()
14864 } else {
14865 yy363 := *x.TestStrucCommon.AnonInTestStrucSlim.P
14866 r.EncodeString(string(yy363))
14867 }
14868 }
14869 if yyq2[52] {
14870 z.EncWriteMapElemKey()
14871 if z.IsJSONHandle() {
14872 z.WriteStr("\"NotAnonSlim\"")
14873 } else {
14874 r.EncodeString(`NotAnonSlim`)
14875 }
14876 z.EncWriteMapElemValue()
14877 if yyn55 {
14878 r.EncodeNil()
14879 } else {
14880 if yyxt365 := z.Extension(x.TestStrucCommon.NotAnonSlim); yyxt365 != nil {
14881 z.EncExtension(x.TestStrucCommon.NotAnonSlim, yyxt365)
14882 } else {
14883 x.TestStrucCommon.NotAnonSlim.CodecEncodeSelf(e)
14884 }
14885 }
14886 }
14887 if yyq2[53] {
14888 z.EncWriteMapElemKey()
14889 if z.IsJSONHandle() {
14890 z.WriteStr("\"Nmap\"")
14891 } else {
14892 r.EncodeString(`Nmap`)
14893 }
14894 z.EncWriteMapElemValue()
14895 if x.TestStrucCommon.Nmap == nil {
14896 r.EncodeNil()
14897 } else {
14898 z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
14899 } // end block: if x.TestStrucCommon.Nmap map == nil
14900 }
14901 if yyq2[54] {
14902 z.EncWriteMapElemKey()
14903 if z.IsJSONHandle() {
14904 z.WriteStr("\"Nslice\"")
14905 } else {
14906 r.EncodeString(`Nslice`)
14907 }
14908 z.EncWriteMapElemValue()
14909 if x.TestStrucCommon.Nslice == nil {
14910 r.EncodeNil()
14911 } else {
14912 r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
14913 } // end block: if x.TestStrucCommon.Nslice slice == nil
14914 }
14915 if yyq2[55] {
14916 z.EncWriteMapElemKey()
14917 if z.IsJSONHandle() {
14918 z.WriteStr("\"Nint64\"")
14919 } else {
14920 r.EncodeString(`Nint64`)
14921 }
14922 z.EncWriteMapElemValue()
14923 if yyn58 {
14924 r.EncodeNil()
14925 } else {
14926 yy368 := *x.TestStrucCommon.Nint64
14927 r.EncodeInt(int64(yy368))
14928 }
14929 }
14930 if yyq2[56] {
14931 z.EncWriteMapElemKey()
14932 if z.IsJSONHandle() {
14933 z.WriteStr("\"Chstr\"")
14934 } else {
14935 r.EncodeString(`Chstr`)
14936 }
14937 z.EncWriteMapElemValue()
14938 h.encChanstring((chan string)(x.Chstr), e)
14939 }
14940 if yyq2[57] {
14941 z.EncWriteMapElemKey()
14942 if z.IsJSONHandle() {
14943 z.WriteStr("\"Mis\"")
14944 } else {
14945 r.EncodeString(`Mis`)
14946 }
14947 z.EncWriteMapElemValue()
14948 if x.Mis == nil {
14949 r.EncodeNil()
14950 } else {
14951 z.F.EncMapIntStringV(x.Mis, e)
14952 } // end block: if x.Mis map == nil
14953 }
14954 if yyq2[58] {
14955 z.EncWriteMapElemKey()
14956 if z.IsJSONHandle() {
14957 z.WriteStr("\"Mbu64\"")
14958 } else {
14959 r.EncodeString(`Mbu64`)
14960 }
14961 z.EncWriteMapElemValue()
14962 if x.Mbu64 == nil {
14963 r.EncodeNil()
14964 } else {
14965 h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
14966 } // end block: if x.Mbu64 map == nil
14967 }
14968 if yyq2[59] {
14969 z.EncWriteMapElemKey()
14970 if z.IsJSONHandle() {
14971 z.WriteStr("\"Mu8e\"")
14972 } else {
14973 r.EncodeString(`Mu8e`)
14974 }
14975 z.EncWriteMapElemValue()
14976 if x.Mu8e == nil {
14977 r.EncodeNil()
14978 } else {
14979 h.encMapuint8c3RydWN0IHt9((map[uint8]struct{})(x.Mu8e), e)
14980 } // end block: if x.Mu8e map == nil
14981 }
14982 if yyq2[60] {
14983 z.EncWriteMapElemKey()
14984 if z.IsJSONHandle() {
14985 z.WriteStr("\"Mu8u64\"")
14986 } else {
14987 r.EncodeString(`Mu8u64`)
14988 }
14989 z.EncWriteMapElemValue()
14990 if x.Mu8u64 == nil {
14991 r.EncodeNil()
14992 } else {
14993 h.encMapuint8stringUint64T((map[uint8]stringUint64T)(x.Mu8u64), e)
14994 } // end block: if x.Mu8u64 map == nil
14995 }
14996 if yyq2[61] {
14997 z.EncWriteMapElemKey()
14998 if z.IsJSONHandle() {
14999 z.WriteStr("\"Msp2ss\"")
15000 } else {
15001 r.EncodeString(`Msp2ss`)
15002 }
15003 z.EncWriteMapElemValue()
15004 if x.Msp2ss == nil {
15005 r.EncodeNil()
15006 } else {
15007 h.encMapPtrtostringSlicestring((map[*string][]string)(x.Msp2ss), e)
15008 } // end block: if x.Msp2ss map == nil
15009 }
15010 if yyq2[62] {
15011 z.EncWriteMapElemKey()
15012 if z.IsJSONHandle() {
15013 z.WriteStr("\"Mip2ss\"")
15014 } else {
15015 r.EncodeString(`Mip2ss`)
15016 }
15017 z.EncWriteMapElemValue()
15018 if x.Mip2ss == nil {
15019 r.EncodeNil()
15020 } else {
15021 h.encMapPtrtouint64Slicestring((map[*uint64][]string)(x.Mip2ss), e)
15022 } // end block: if x.Mip2ss map == nil
15023 }
15024 if yyq2[63] {
15025 z.EncWriteMapElemKey()
15026 if z.IsJSONHandle() {
15027 z.WriteStr("\"Ms2misu\"")
15028 } else {
15029 r.EncodeString(`Ms2misu`)
15030 }
15031 z.EncWriteMapElemValue()
15032 if x.Ms2misu == nil {
15033 r.EncodeNil()
15034 } else {
15035 h.encMapstringMapuint64stringUint64T((map[string]map[uint64]stringUint64T)(x.Ms2misu), e)
15036 } // end block: if x.Ms2misu map == nil
15037 }
15038 if yyq2[64] {
15039 z.EncWriteMapElemKey()
15040 if z.IsJSONHandle() {
15041 z.WriteStr("\"Miwu64s\"")
15042 } else {
15043 r.EncodeString(`Miwu64s`)
15044 }
15045 z.EncWriteMapElemValue()
15046 if x.Miwu64s == nil {
15047 r.EncodeNil()
15048 } else {
15049 h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
15050 } // end block: if x.Miwu64s map == nil
15051 }
15052 if yyq2[65] {
15053 z.EncWriteMapElemKey()
15054 if z.IsJSONHandle() {
15055 z.WriteStr("\"Mfwss\"")
15056 } else {
15057 r.EncodeString(`Mfwss`)
15058 }
15059 z.EncWriteMapElemValue()
15060 if x.Mfwss == nil {
15061 r.EncodeNil()
15062 } else {
15063 h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
15064 } // end block: if x.Mfwss map == nil
15065 }
15066 if yyq2[66] {
15067 z.EncWriteMapElemKey()
15068 if z.IsJSONHandle() {
15069 z.WriteStr("\"Mf32wss\"")
15070 } else {
15071 r.EncodeString(`Mf32wss`)
15072 }
15073 z.EncWriteMapElemValue()
15074 if x.Mf32wss == nil {
15075 r.EncodeNil()
15076 } else {
15077 h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
15078 } // end block: if x.Mf32wss map == nil
15079 }
15080 if yyq2[67] {
15081 z.EncWriteMapElemKey()
15082 if z.IsJSONHandle() {
15083 z.WriteStr("\"Mui2wss\"")
15084 } else {
15085 r.EncodeString(`Mui2wss`)
15086 }
15087 z.EncWriteMapElemValue()
15088 if x.Mui2wss == nil {
15089 r.EncodeNil()
15090 } else {
15091 h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
15092 } // end block: if x.Mui2wss map == nil
15093 }
15094 if yyq2[68] {
15095 z.EncWriteMapElemKey()
15096 if z.IsJSONHandle() {
15097 z.WriteStr("\"Msu2wss\"")
15098 } else {
15099 r.EncodeString(`Msu2wss`)
15100 }
15101 z.EncWriteMapElemValue()
15102 if x.Msu2wss == nil {
15103 r.EncodeNil()
15104 } else {
15105 h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
15106 } // end block: if x.Msu2wss map == nil
15107 }
15108 if yyq2[69] {
15109 z.EncWriteMapElemKey()
15110 if z.IsJSONHandle() {
15111 z.WriteStr("\"Ci64\"")
15112 } else {
15113 r.EncodeString(`Ci64`)
15114 }
15115 z.EncWriteMapElemValue()
15116 if yyxt383 := z.Extension(x.Ci64); yyxt383 != nil {
15117 z.EncExtension(x.Ci64, yyxt383)
15118 } else {
15119 x.Ci64.CodecEncodeSelf(e)
15120 }
15121 }
15122 if yyq2[70] {
15123 z.EncWriteMapElemKey()
15124 if z.IsJSONHandle() {
15125 z.WriteStr("\"Swrapbytes\"")
15126 } else {
15127 r.EncodeString(`Swrapbytes`)
15128 }
15129 z.EncWriteMapElemValue()
15130 if x.Swrapbytes == nil {
15131 r.EncodeNil()
15132 } else {
15133 h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
15134 } // end block: if x.Swrapbytes slice == nil
15135 }
15136 if yyq2[71] {
15137 z.EncWriteMapElemKey()
15138 if z.IsJSONHandle() {
15139 z.WriteStr("\"Swrapuint8\"")
15140 } else {
15141 r.EncodeString(`Swrapuint8`)
15142 }
15143 z.EncWriteMapElemValue()
15144 if x.Swrapuint8 == nil {
15145 r.EncodeNil()
15146 } else {
15147 h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
15148 } // end block: if x.Swrapuint8 slice == nil
15149 }
15150 if yyq2[72] {
15151 z.EncWriteMapElemKey()
15152 if z.IsJSONHandle() {
15153 z.WriteStr("\"ArrStrUi64T\"")
15154 } else {
15155 r.EncodeString(`ArrStrUi64T`)
15156 }
15157 z.EncWriteMapElemValue()
15158 yy386 := &x.ArrStrUi64T
15159 h.encArray4stringUint64T((*[4]stringUint64T)(yy386), e)
15160 }
15161 if yyq2[73] {
15162 z.EncWriteMapElemKey()
15163 if z.IsJSONHandle() {
15164 z.WriteStr("\"Ui64array\"")
15165 } else {
15166 r.EncodeString(`Ui64array`)
15167 }
15168 z.EncWriteMapElemValue()
15169 yy388 := &x.Ui64array
15170 h.encArray4uint64((*[4]uint64)(yy388), e)
15171 }
15172 if yyq2[74] {
15173 z.EncWriteMapElemKey()
15174 if z.IsJSONHandle() {
15175 z.WriteStr("\"Ui64slicearray\"")
15176 } else {
15177 r.EncodeString(`Ui64slicearray`)
15178 }
15179 z.EncWriteMapElemValue()
15180 if x.Ui64slicearray == nil {
15181 r.EncodeNil()
15182 } else {
15183 h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
15184 } // end block: if x.Ui64slicearray slice == nil
15185 }
15186 if yyq2[75] {
15187 z.EncWriteMapElemKey()
15188 if z.IsJSONHandle() {
15189 z.WriteStr("\"SintfAarray\"")
15190 } else {
15191 r.EncodeString(`SintfAarray`)
15192 }
15193 z.EncWriteMapElemValue()
15194 if x.SintfAarray == nil {
15195 r.EncodeNil()
15196 } else {
15197 z.F.EncSliceIntfV(x.SintfAarray, e)
15198 } // end block: if x.SintfAarray slice == nil
15199 }
15200 if yyq2[76] {
15201 z.EncWriteMapElemKey()
15202 if z.IsJSONHandle() {
15203 z.WriteStr("\"MstrUi64TSelf\"")
15204 } else {
15205 r.EncodeString(`MstrUi64TSelf`)
15206 }
15207 z.EncWriteMapElemValue()
15208 if x.MstrUi64TSelf == nil {
15209 r.EncodeNil()
15210 } else {
15211 h.encMapstringUint64TPtrtostringUint64T((map[stringUint64T]*stringUint64T)(x.MstrUi64TSelf), e)
15212 } // end block: if x.MstrUi64TSelf map == nil
15213 }
15214 if yyq2[77] {
15215 z.EncWriteMapElemKey()
15216 if z.IsJSONHandle() {
15217 z.WriteStr("\"Ttime\"")
15218 } else {
15219 r.EncodeString(`Ttime`)
15220 }
15221 z.EncWriteMapElemValue()
15222 if z.EncBasicHandle().TimeBuiltin() {
15223 r.EncodeTime(x.Ttime)
15224 } else if yyxt393 := z.Extension(x.Ttime); yyxt393 != nil {
15225 z.EncExtension(x.Ttime, yyxt393)
15226 } else if z.EncBinary() {
15227 z.EncBinaryMarshal(x.Ttime)
15228 } else if !z.EncBinary() && z.IsJSONHandle() {
15229 z.EncJSONMarshal(x.Ttime)
15230 } else {
15231 z.EncFallback(x.Ttime)
15232 }
15233 }
15234 if yyq2[78] {
15235 z.EncWriteMapElemKey()
15236 if z.IsJSONHandle() {
15237 z.WriteStr("\"Ttimeptr\"")
15238 } else {
15239 r.EncodeString(`Ttimeptr`)
15240 }
15241 z.EncWriteMapElemValue()
15242 if yyn81 {
15243 r.EncodeNil()
15244 } else {
15245 yy394 := *x.Ttimeptr
15246 if z.EncBasicHandle().TimeBuiltin() {
15247 r.EncodeTime(yy394)
15248 } else if yyxt395 := z.Extension(yy394); yyxt395 != nil {
15249 z.EncExtension(yy394, yyxt395)
15250 } else if z.EncBinary() {
15251 z.EncBinaryMarshal(yy394)
15252 } else if !z.EncBinary() && z.IsJSONHandle() {
15253 z.EncJSONMarshal(yy394)
15254 } else {
15255 z.EncFallback(yy394)
15256 }
15257 }
15258 }
15259 if yyq2[79] {
15260 z.EncWriteMapElemKey()
15261 if z.IsJSONHandle() {
15262 z.WriteStr("\"Islice\"")
15263 } else {
15264 r.EncodeString(`Islice`)
15265 }
15266 z.EncWriteMapElemValue()
15267 if yyn82 {
15268 r.EncodeNil()
15269 } else {
15270 if x.AnonInTestStrucIntf.Islice == nil {
15271 r.EncodeNil()
15272 } else {
15273 z.F.EncSliceIntfV(x.AnonInTestStrucIntf.Islice, e)
15274 } // end block: if x.AnonInTestStrucIntf.Islice slice == nil
15275 }
15276 }
15277 if yyq2[80] {
15278 z.EncWriteMapElemKey()
15279 if z.IsJSONHandle() {
15280 z.WriteStr("\"Ms\"")
15281 } else {
15282 r.EncodeString(`Ms`)
15283 }
15284 z.EncWriteMapElemValue()
15285 if yyn83 {
15286 r.EncodeNil()
15287 } else {
15288 if x.AnonInTestStrucIntf.Ms == nil {
15289 r.EncodeNil()
15290 } else {
15291 z.F.EncMapStringIntfV(x.AnonInTestStrucIntf.Ms, e)
15292 } // end block: if x.AnonInTestStrucIntf.Ms map == nil
15293 }
15294 }
15295 if yyq2[81] {
15296 z.EncWriteMapElemKey()
15297 if z.IsJSONHandle() {
15298 z.WriteStr("\"Nintf\"")
15299 } else {
15300 r.EncodeString(`Nintf`)
15301 }
15302 z.EncWriteMapElemValue()
15303 if yyn84 {
15304 r.EncodeNil()
15305 } else {
15306 z.EncFallback(x.AnonInTestStrucIntf.Nintf)
15307 }
15308 }
15309 if yyq2[82] {
15310 z.EncWriteMapElemKey()
15311 if z.IsJSONHandle() {
15312 z.WriteStr("\"T\"")
15313 } else {
15314 r.EncodeString(`T`)
15315 }
15316 z.EncWriteMapElemValue()
15317 if yyn85 {
15318 r.EncodeNil()
15319 } else {
15320 if z.EncBasicHandle().TimeBuiltin() {
15321 r.EncodeTime(x.AnonInTestStrucIntf.T)
15322 } else if yyxt399 := z.Extension(x.AnonInTestStrucIntf.T); yyxt399 != nil {
15323 z.EncExtension(x.AnonInTestStrucIntf.T, yyxt399)
15324 } else if z.EncBinary() {
15325 z.EncBinaryMarshal(x.AnonInTestStrucIntf.T)
15326 } else if !z.EncBinary() && z.IsJSONHandle() {
15327 z.EncJSONMarshal(x.AnonInTestStrucIntf.T)
15328 } else {
15329 z.EncFallback(x.AnonInTestStrucIntf.T)
15330 }
15331 }
15332 }
15333 if yyq2[83] {
15334 z.EncWriteMapElemKey()
15335 if z.IsJSONHandle() {
15336 z.WriteStr("\"Tptr\"")
15337 } else {
15338 r.EncodeString(`Tptr`)
15339 }
15340 z.EncWriteMapElemValue()
15341 if yyn86 {
15342 r.EncodeNil()
15343 } else {
15344 yy400 := *x.AnonInTestStrucIntf.Tptr
15345 if z.EncBasicHandle().TimeBuiltin() {
15346 r.EncodeTime(yy400)
15347 } else if yyxt401 := z.Extension(yy400); yyxt401 != nil {
15348 z.EncExtension(yy400, yyxt401)
15349 } else if z.EncBinary() {
15350 z.EncBinaryMarshal(yy400)
15351 } else if !z.EncBinary() && z.IsJSONHandle() {
15352 z.EncJSONMarshal(yy400)
15353 } else {
15354 z.EncFallback(yy400)
15355 }
15356 }
15357 }
15358 if yyq2[84] {
15359 z.EncWriteMapElemKey()
15360 if z.IsJSONHandle() {
15361 z.WriteStr("\"Msu\"")
15362 } else {
15363 r.EncodeString(`Msu`)
15364 }
15365 z.EncWriteMapElemValue()
15366 if x.Msu == nil {
15367 r.EncodeNil()
15368 } else {
15369 h.encMapwrapStringInterface((map[wrapString]interface{})(x.Msu), e)
15370 } // end block: if x.Msu map == nil
15371 }
15372 if yyq2[85] {
15373 z.EncWriteMapElemKey()
15374 if z.IsJSONHandle() {
15375 z.WriteStr("\"Mtsptr\"")
15376 } else {
15377 r.EncodeString(`Mtsptr`)
15378 }
15379 z.EncWriteMapElemValue()
15380 if x.Mtsptr == nil {
15381 r.EncodeNil()
15382 } else {
15383 h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
15384 } // end block: if x.Mtsptr map == nil
15385 }
15386 if yyq2[86] {
15387 z.EncWriteMapElemKey()
15388 if z.IsJSONHandle() {
15389 z.WriteStr("\"Mts\"")
15390 } else {
15391 r.EncodeString(`Mts`)
15392 }
15393 z.EncWriteMapElemValue()
15394 if x.Mts == nil {
15395 r.EncodeNil()
15396 } else {
15397 h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
15398 } // end block: if x.Mts map == nil
15399 }
15400 if yyq2[87] {
15401 z.EncWriteMapElemKey()
15402 if z.IsJSONHandle() {
15403 z.WriteStr("\"Its\"")
15404 } else {
15405 r.EncodeString(`Its`)
15406 }
15407 z.EncWriteMapElemValue()
15408 if x.Its == nil {
15409 r.EncodeNil()
15410 } else {
15411 h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
15412 } // end block: if x.Its slice == nil
15413 }
15414 if yyq2[88] {
15415 z.EncWriteMapElemKey()
15416 if z.IsJSONHandle() {
15417 z.WriteStr("\"Nteststruc\"")
15418 } else {
15419 r.EncodeString(`Nteststruc`)
15420 }
15421 z.EncWriteMapElemValue()
15422 if yyn91 {
15423 r.EncodeNil()
15424 } else {
15425 if yyxt406 := z.Extension(x.Nteststruc); yyxt406 != nil {
15426 z.EncExtension(x.Nteststruc, yyxt406)
15427 } else {
15428 x.Nteststruc.CodecEncodeSelf(e)
15429 }
15430 }
15431 }
15432 if yyq2[89] {
15433 z.EncWriteMapElemKey()
15434 if z.IsJSONHandle() {
15435 z.WriteStr("\"MarJ\"")
15436 } else {
15437 r.EncodeString(`MarJ`)
15438 }
15439 z.EncWriteMapElemValue()
15440 if yyxt407 := z.Extension(x.MarJ); yyxt407 != nil {
15441 z.EncExtension(x.MarJ, yyxt407)
15442 } else {
15443 x.MarJ.CodecEncodeSelf(e)
15444 }
15445 }
15446 if yyq2[90] {
15447 z.EncWriteMapElemKey()
15448 if z.IsJSONHandle() {
15449 z.WriteStr("\"MarT\"")
15450 } else {
15451 r.EncodeString(`MarT`)
15452 }
15453 z.EncWriteMapElemValue()
15454 if yyxt408 := z.Extension(x.MarT); yyxt408 != nil {
15455 z.EncExtension(x.MarT, yyxt408)
15456 } else {
15457 x.MarT.CodecEncodeSelf(e)
15458 }
15459 }
15460 if yyq2[91] {
15461 z.EncWriteMapElemKey()
15462 if z.IsJSONHandle() {
15463 z.WriteStr("\"MarB\"")
15464 } else {
15465 r.EncodeString(`MarB`)
15466 }
15467 z.EncWriteMapElemValue()
15468 if yyxt409 := z.Extension(x.MarB); yyxt409 != nil {
15469 z.EncExtension(x.MarB, yyxt409)
15470 } else {
15471 x.MarB.CodecEncodeSelf(e)
15472 }
15473 }
15474 if yyq2[92] {
15475 z.EncWriteMapElemKey()
15476 if z.IsJSONHandle() {
15477 z.WriteStr("\"XuintToBytes\"")
15478 } else {
15479 r.EncodeString(`XuintToBytes`)
15480 }
15481 z.EncWriteMapElemValue()
15482 if yyxt410 := z.Extension(x.XuintToBytes); yyxt410 != nil {
15483 z.EncExtension(x.XuintToBytes, yyxt410)
15484 } else {
15485 x.XuintToBytes.CodecEncodeSelf(e)
15486 }
15487 }
15488 if yyq2[93] {
15489 z.EncWriteMapElemKey()
15490 if z.IsJSONHandle() {
15491 z.WriteStr("\"Cmplx64\"")
15492 } else {
15493 r.EncodeString(`Cmplx64`)
15494 }
15495 z.EncWriteMapElemValue()
15496 z.EncEncodeComplex64(complex64(x.Cmplx64))
15497 }
15498 if yyq2[94] {
15499 z.EncWriteMapElemKey()
15500 if z.IsJSONHandle() {
15501 z.WriteStr("\"Cmplx128\"")
15502 } else {
15503 r.EncodeString(`Cmplx128`)
15504 }
15505 z.EncWriteMapElemValue()
15506 z.EncEncodeComplex128(complex128(x.Cmplx128))
15507 }
15508 }
15509 z.EncWriteMapEnd()
15510 }
15511 }
15512 }
15513
15514 func (x *TestStrucFlex) CodecDecodeSelf(d *Decoder) {
15515 var h codecSelfer19780
15516 z, r := GenHelper().Decoder(d)
15517 _, _, _ = h, z, r
15518 yyct2 := r.ContainerType()
15519 if yyct2 == codecSelferValueTypeNil19780 {
15520 *(x) = TestStrucFlex{}
15521 } else if yyct2 == codecSelferValueTypeMap19780 {
15522 yyl2 := z.DecReadMapStart()
15523 if yyl2 == 0 {
15524 } else {
15525 x.codecDecodeSelfFromMap(yyl2, d)
15526 }
15527 z.DecReadMapEnd()
15528 } else if yyct2 == codecSelferValueTypeArray19780 {
15529 yyl2 := z.DecReadArrayStart()
15530 if yyl2 != 0 {
15531 x.codecDecodeSelfFromArray(yyl2, d)
15532 }
15533 z.DecReadArrayEnd()
15534 } else {
15535 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
15536 }
15537 }
15538
15539 func (x *TestStrucFlex) codecDecodeSelfFromMap(l int, d *Decoder) {
15540 var h codecSelfer19780
15541 z, r := GenHelper().Decoder(d)
15542 _, _, _ = h, z, r
15543 var yyhl3 bool = l >= 0
15544 for yyj3 := 0; ; yyj3++ {
15545 if yyhl3 {
15546 if yyj3 >= l {
15547 break
15548 }
15549 } else {
15550 if z.DecCheckBreak() {
15551 break
15552 }
15553 }
15554 z.DecReadMapElemKey()
15555 yys3 := r.DecodeStringAsBytes()
15556 z.DecReadMapElemValue()
15557 switch string(yys3) {
15558 case "S":
15559 x.TestStrucCommon.S = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
15560 case "I64":
15561 x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
15562 case "I32":
15563 x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
15564 case "I16":
15565 x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
15566 case "I8":
15567 x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
15568 case "I64n":
15569 x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
15570 case "I32n":
15571 x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
15572 case "I16n":
15573 x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
15574 case "I8n":
15575 x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
15576 case "Ui64":
15577 x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
15578 case "Ui32":
15579 x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
15580 case "Ui16":
15581 x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
15582 case "Ui8":
15583 x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
15584 case "F64":
15585 x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
15586 case "F32":
15587 x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
15588 case "B":
15589 x.TestStrucCommon.B = (bool)(r.DecodeBool())
15590 case "By":
15591 x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
15592 case "Sslice":
15593 z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
15594 case "I64slice":
15595 z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
15596 case "I32slice":
15597 z.F.DecSliceInt32X(&x.TestStrucCommon.I32slice, d)
15598 case "Ui64slice":
15599 z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
15600 case "Ui8slice":
15601 x.TestStrucCommon.Ui8slice = z.DecodeBytesInto(([]byte)(x.TestStrucCommon.Ui8slice))
15602 case "Bslice":
15603 z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
15604 case "Byslice":
15605 x.TestStrucCommon.Byslice = z.DecodeBytesInto(([]byte)(x.TestStrucCommon.Byslice))
15606 case "BytesSlice":
15607 z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
15608 case "Iptrslice":
15609 h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
15610 case "WrapSliceInt64":
15611 if yyxt40 := z.Extension(x.TestStrucCommon.WrapSliceInt64); yyxt40 != nil {
15612 z.DecExtension(&x.TestStrucCommon.WrapSliceInt64, yyxt40)
15613 } else {
15614 x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
15615 }
15616 case "WrapSliceString":
15617 if yyxt42 := z.Extension(x.TestStrucCommon.WrapSliceString); yyxt42 != nil {
15618 z.DecExtension(&x.TestStrucCommon.WrapSliceString, yyxt42)
15619 } else {
15620 x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
15621 }
15622 case "Msint":
15623 z.F.DecMapStringIntX(&x.TestStrucCommon.Msint, d)
15624 case "Msbytes":
15625 z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
15626 case "Simplef":
15627 if yyxt48 := z.Extension(x.TestStrucCommon.Simplef); yyxt48 != nil {
15628 z.DecExtension(&x.TestStrucCommon.Simplef, yyxt48)
15629 } else {
15630 x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
15631 }
15632 case "SstrUi64T":
15633 h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
15634 case "MstrUi64T":
15635 h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.TestStrucCommon.MstrUi64T), d)
15636 case "AS":
15637 x.TestStrucCommon.AnonInTestStruc.AS = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
15638 case "AI64":
15639 x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
15640 case "AI16":
15641 x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
15642 case "AUi64":
15643 x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
15644 case "ASslice":
15645 z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
15646 case "AI64slice":
15647 z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
15648 case "AUi64slice":
15649 z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
15650 case "AF64slice":
15651 z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
15652 case "AF32slice":
15653 z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
15654 case "AMSS":
15655 z.F.DecMapStringStringX(&x.TestStrucCommon.AnonInTestStruc.AMSS, d)
15656 case "AMSU64":
15657 z.F.DecMapStringUint64X(&x.TestStrucCommon.AnonInTestStruc.AMSU64, d)
15658 case "AI64arr8":
15659 h.decArray8int64((*[8]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr8), d)
15660 case "AI64arr0":
15661 h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
15662 case "AI64slice0":
15663 z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice0, d)
15664 case "AUi64sliceN":
15665 z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
15666 case "AMSU64N":
15667 z.F.DecMapStringUint64X(&x.TestStrucCommon.AnonInTestStruc.AMSU64N, d)
15668 case "AMSU64E":
15669 z.F.DecMapStringUint64X(&x.TestStrucCommon.AnonInTestStruc.AMSU64E, d)
15670 case "NotAnon":
15671 if yyxt84 := z.Extension(x.TestStrucCommon.NotAnon); yyxt84 != nil {
15672 z.DecExtension(&x.TestStrucCommon.NotAnon, yyxt84)
15673 } else {
15674 x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
15675 }
15676 case "P":
15677 if r.TryNil() {
15678 if x.TestStrucCommon.AnonInTestStrucSlim != nil && x.TestStrucCommon.AnonInTestStrucSlim.P != nil { // remove the if-true
15679 x.TestStrucCommon.AnonInTestStrucSlim.P = nil
15680 }
15681 } else {
15682 if x.TestStrucCommon.AnonInTestStrucSlim == nil {
15683 x.TestStrucCommon.AnonInTestStrucSlim = new(AnonInTestStrucSlim)
15684 }
15685 if x.TestStrucCommon.AnonInTestStrucSlim.P == nil {
15686 x.TestStrucCommon.AnonInTestStrucSlim.P = new(string)
15687 }
15688 *x.TestStrucCommon.AnonInTestStrucSlim.P = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
15689 }
15690 case "NotAnonSlim":
15691 if r.TryNil() {
15692 if x.TestStrucCommon.NotAnonSlim != nil { // remove the if-true
15693 x.TestStrucCommon.NotAnonSlim = nil
15694 }
15695 } else {
15696 if x.TestStrucCommon.NotAnonSlim == nil {
15697 x.TestStrucCommon.NotAnonSlim = new(AnonInTestStrucSlim)
15698 }
15699 if yyxt88 := z.Extension(x.TestStrucCommon.NotAnonSlim); yyxt88 != nil {
15700 z.DecExtension(x.TestStrucCommon.NotAnonSlim, yyxt88)
15701 } else {
15702 x.TestStrucCommon.NotAnonSlim.CodecDecodeSelf(d)
15703 }
15704 }
15705 case "Nmap":
15706 z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
15707 case "Nslice":
15708 x.TestStrucCommon.Nslice = z.DecodeBytesInto(([]byte)(x.TestStrucCommon.Nslice))
15709 case "Nint64":
15710 if r.TryNil() {
15711 if x.TestStrucCommon.Nint64 != nil { // remove the if-true
15712 x.TestStrucCommon.Nint64 = nil
15713 }
15714 } else {
15715 if x.TestStrucCommon.Nint64 == nil {
15716 x.TestStrucCommon.Nint64 = new(int64)
15717 }
15718 *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
15719 }
15720 case "Chstr":
15721 h.decChanstring((*chan string)(&x.Chstr), d)
15722 case "Mis":
15723 z.F.DecMapIntStringX(&x.Mis, d)
15724 case "Mbu64":
15725 h.decMapboolc3RydWN0IHt9((*map[bool]struct{})(&x.Mbu64), d)
15726 case "Mu8e":
15727 h.decMapuint8c3RydWN0IHt9((*map[uint8]struct{})(&x.Mu8e), d)
15728 case "Mu8u64":
15729 h.decMapuint8stringUint64T((*map[uint8]stringUint64T)(&x.Mu8u64), d)
15730 case "Msp2ss":
15731 h.decMapPtrtostringSlicestring((*map[*string][]string)(&x.Msp2ss), d)
15732 case "Mip2ss":
15733 h.decMapPtrtouint64Slicestring((*map[*uint64][]string)(&x.Mip2ss), d)
15734 case "Ms2misu":
15735 h.decMapstringMapuint64stringUint64T((*map[string]map[uint64]stringUint64T)(&x.Ms2misu), d)
15736 case "Miwu64s":
15737 h.decMapintwrapUint64Slice((*map[int]wrapUint64Slice)(&x.Miwu64s), d)
15738 case "Mfwss":
15739 h.decMapfloat64wrapStringSlice((*map[float64]wrapStringSlice)(&x.Mfwss), d)
15740 case "Mf32wss":
15741 h.decMapfloat32wrapStringSlice((*map[float32]wrapStringSlice)(&x.Mf32wss), d)
15742 case "Mui2wss":
15743 h.decMapuint64wrapStringSlice((*map[uint64]wrapStringSlice)(&x.Mui2wss), d)
15744 case "Msu2wss":
15745 h.decMapstringUint64TwrapStringSlice((*map[stringUint64T]wrapStringSlice)(&x.Msu2wss), d)
15746 case "Ci64":
15747 if yyxt122 := z.Extension(x.Ci64); yyxt122 != nil {
15748 z.DecExtension(&x.Ci64, yyxt122)
15749 } else {
15750 x.Ci64.CodecDecodeSelf(d)
15751 }
15752 case "Swrapbytes":
15753 h.decSlicewrapBytes((*[]wrapBytes)(&x.Swrapbytes), d)
15754 case "Swrapuint8":
15755 h.decSlicewrapUint8((*[]wrapUint8)(&x.Swrapuint8), d)
15756 case "ArrStrUi64T":
15757 h.decArray4stringUint64T((*[4]stringUint64T)(&x.ArrStrUi64T), d)
15758 case "Ui64array":
15759 h.decArray4uint64((*[4]uint64)(&x.Ui64array), d)
15760 case "Ui64slicearray":
15761 h.decSlicePtrtoArray4uint64((*[]*[4]uint64)(&x.Ui64slicearray), d)
15762 case "SintfAarray":
15763 z.F.DecSliceIntfX(&x.SintfAarray, d)
15764 case "MstrUi64TSelf":
15765 h.decMapstringUint64TPtrtostringUint64T((*map[stringUint64T]*stringUint64T)(&x.MstrUi64TSelf), d)
15766 case "Ttime":
15767 if z.DecBasicHandle().TimeBuiltin() {
15768 x.Ttime = r.DecodeTime()
15769 } else if yyxt138 := z.Extension(x.Ttime); yyxt138 != nil {
15770 z.DecExtension(&x.Ttime, yyxt138)
15771 } else if z.DecBinary() {
15772 z.DecBinaryUnmarshal(&x.Ttime)
15773 } else if !z.DecBinary() && z.IsJSONHandle() {
15774 z.DecJSONUnmarshal(&x.Ttime)
15775 } else {
15776 z.DecFallback(&x.Ttime, false)
15777 }
15778 case "Ttimeptr":
15779 if r.TryNil() {
15780 if x.Ttimeptr != nil { // remove the if-true
15781 x.Ttimeptr = nil
15782 }
15783 } else {
15784 if x.Ttimeptr == nil {
15785 x.Ttimeptr = new(time.Time)
15786 }
15787 if z.DecBasicHandle().TimeBuiltin() {
15788 *x.Ttimeptr = r.DecodeTime()
15789 } else if yyxt140 := z.Extension(x.Ttimeptr); yyxt140 != nil {
15790 z.DecExtension(x.Ttimeptr, yyxt140)
15791 } else if z.DecBinary() {
15792 z.DecBinaryUnmarshal(x.Ttimeptr)
15793 } else if !z.DecBinary() && z.IsJSONHandle() {
15794 z.DecJSONUnmarshal(x.Ttimeptr)
15795 } else {
15796 z.DecFallback(x.Ttimeptr, false)
15797 }
15798 }
15799 case "Islice":
15800 if r.TryNil() {
15801 if x.AnonInTestStrucIntf != nil { // remove the if-true
15802 x.AnonInTestStrucIntf.Islice = nil
15803 }
15804 } else {
15805 if x.AnonInTestStrucIntf == nil {
15806 x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
15807 }
15808 z.F.DecSliceIntfX(&x.AnonInTestStrucIntf.Islice, d)
15809 }
15810 case "Ms":
15811 if r.TryNil() {
15812 if x.AnonInTestStrucIntf != nil { // remove the if-true
15813 x.AnonInTestStrucIntf.Ms = nil
15814 }
15815 } else {
15816 if x.AnonInTestStrucIntf == nil {
15817 x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
15818 }
15819 z.F.DecMapStringIntfX(&x.AnonInTestStrucIntf.Ms, d)
15820 }
15821 case "Nintf":
15822 if r.TryNil() {
15823 if x.AnonInTestStrucIntf != nil { // remove the if-true
15824 x.AnonInTestStrucIntf.Nintf = nil
15825 }
15826 } else {
15827 if x.AnonInTestStrucIntf == nil {
15828 x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
15829 }
15830 z.DecFallback(&x.AnonInTestStrucIntf.Nintf, true)
15831 }
15832 case "T":
15833 if r.TryNil() {
15834 if x.AnonInTestStrucIntf != nil { // remove the if-true
15835 x.AnonInTestStrucIntf.T = time.Time{}
15836 }
15837 } else {
15838 if x.AnonInTestStrucIntf == nil {
15839 x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
15840 }
15841 if z.DecBasicHandle().TimeBuiltin() {
15842 x.AnonInTestStrucIntf.T = r.DecodeTime()
15843 } else if yyxt148 := z.Extension(x.AnonInTestStrucIntf.T); yyxt148 != nil {
15844 z.DecExtension(&x.AnonInTestStrucIntf.T, yyxt148)
15845 } else if z.DecBinary() {
15846 z.DecBinaryUnmarshal(&x.AnonInTestStrucIntf.T)
15847 } else if !z.DecBinary() && z.IsJSONHandle() {
15848 z.DecJSONUnmarshal(&x.AnonInTestStrucIntf.T)
15849 } else {
15850 z.DecFallback(&x.AnonInTestStrucIntf.T, false)
15851 }
15852 }
15853 case "Tptr":
15854 if r.TryNil() {
15855 if x.AnonInTestStrucIntf != nil && x.AnonInTestStrucIntf.Tptr != nil { // remove the if-true
15856 x.AnonInTestStrucIntf.Tptr = nil
15857 }
15858 } else {
15859 if x.AnonInTestStrucIntf == nil {
15860 x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
15861 }
15862 if x.AnonInTestStrucIntf.Tptr == nil {
15863 x.AnonInTestStrucIntf.Tptr = new(time.Time)
15864 }
15865 if z.DecBasicHandle().TimeBuiltin() {
15866 *x.AnonInTestStrucIntf.Tptr = r.DecodeTime()
15867 } else if yyxt150 := z.Extension(x.AnonInTestStrucIntf.Tptr); yyxt150 != nil {
15868 z.DecExtension(x.AnonInTestStrucIntf.Tptr, yyxt150)
15869 } else if z.DecBinary() {
15870 z.DecBinaryUnmarshal(x.AnonInTestStrucIntf.Tptr)
15871 } else if !z.DecBinary() && z.IsJSONHandle() {
15872 z.DecJSONUnmarshal(x.AnonInTestStrucIntf.Tptr)
15873 } else {
15874 z.DecFallback(x.AnonInTestStrucIntf.Tptr, false)
15875 }
15876 }
15877 case "Msu":
15878 h.decMapwrapStringInterface((*map[wrapString]interface{})(&x.Msu), d)
15879 case "Mtsptr":
15880 h.decMapstringPtrtoTestStrucFlex((*map[string]*TestStrucFlex)(&x.Mtsptr), d)
15881 case "Mts":
15882 h.decMapstringTestStrucFlex((*map[string]TestStrucFlex)(&x.Mts), d)
15883 case "Its":
15884 h.decSlicePtrtoTestStrucFlex((*[]*TestStrucFlex)(&x.Its), d)
15885 case "Nteststruc":
15886 if r.TryNil() {
15887 if x.Nteststruc != nil { // remove the if-true
15888 x.Nteststruc = nil
15889 }
15890 } else {
15891 if x.Nteststruc == nil {
15892 x.Nteststruc = new(TestStrucFlex)
15893 }
15894 if yyxt160 := z.Extension(x.Nteststruc); yyxt160 != nil {
15895 z.DecExtension(x.Nteststruc, yyxt160)
15896 } else {
15897 x.Nteststruc.CodecDecodeSelf(d)
15898 }
15899 }
15900 case "MarJ":
15901 if yyxt162 := z.Extension(x.MarJ); yyxt162 != nil {
15902 z.DecExtension(&x.MarJ, yyxt162)
15903 } else {
15904 x.MarJ.CodecDecodeSelf(d)
15905 }
15906 case "MarT":
15907 if yyxt164 := z.Extension(x.MarT); yyxt164 != nil {
15908 z.DecExtension(&x.MarT, yyxt164)
15909 } else {
15910 x.MarT.CodecDecodeSelf(d)
15911 }
15912 case "MarB":
15913 if yyxt166 := z.Extension(x.MarB); yyxt166 != nil {
15914 z.DecExtension(&x.MarB, yyxt166)
15915 } else {
15916 x.MarB.CodecDecodeSelf(d)
15917 }
15918 case "XuintToBytes":
15919 if yyxt168 := z.Extension(x.XuintToBytes); yyxt168 != nil {
15920 z.DecExtension(&x.XuintToBytes, yyxt168)
15921 } else {
15922 x.XuintToBytes.CodecDecodeSelf(d)
15923 }
15924 case "Cmplx64":
15925 x.Cmplx64 = (complex64)(complex(z.DecDecodeFloat32(), 0))
15926 case "Cmplx128":
15927 x.Cmplx128 = (complex128)(complex(r.DecodeFloat64(), 0))
15928 default:
15929 z.DecStructFieldNotFound(-1, string(yys3))
15930 } // end switch yys3
15931 } // end for yyj3
15932 }
15933
15934 func (x *TestStrucFlex) codecDecodeSelfFromArray(l int, d *Decoder) {
15935 var h codecSelfer19780
15936 z, r := GenHelper().Decoder(d)
15937 _, _, _ = h, z, r
15938 var yyj171 int
15939 var yyb171 bool
15940 var yyhl171 bool = l >= 0
15941 yyj171++
15942 if yyhl171 {
15943 yyb171 = yyj171 > l
15944 } else {
15945 yyb171 = z.DecCheckBreak()
15946 }
15947 if yyb171 {
15948 z.DecReadArrayEnd()
15949 return
15950 }
15951 z.DecReadArrayElem()
15952 x.TestStrucCommon.S = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
15953 yyj171++
15954 if yyhl171 {
15955 yyb171 = yyj171 > l
15956 } else {
15957 yyb171 = z.DecCheckBreak()
15958 }
15959 if yyb171 {
15960 z.DecReadArrayEnd()
15961 return
15962 }
15963 z.DecReadArrayElem()
15964 x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
15965 yyj171++
15966 if yyhl171 {
15967 yyb171 = yyj171 > l
15968 } else {
15969 yyb171 = z.DecCheckBreak()
15970 }
15971 if yyb171 {
15972 z.DecReadArrayEnd()
15973 return
15974 }
15975 z.DecReadArrayElem()
15976 x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
15977 yyj171++
15978 if yyhl171 {
15979 yyb171 = yyj171 > l
15980 } else {
15981 yyb171 = z.DecCheckBreak()
15982 }
15983 if yyb171 {
15984 z.DecReadArrayEnd()
15985 return
15986 }
15987 z.DecReadArrayElem()
15988 x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
15989 yyj171++
15990 if yyhl171 {
15991 yyb171 = yyj171 > l
15992 } else {
15993 yyb171 = z.DecCheckBreak()
15994 }
15995 if yyb171 {
15996 z.DecReadArrayEnd()
15997 return
15998 }
15999 z.DecReadArrayElem()
16000 x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
16001 yyj171++
16002 if yyhl171 {
16003 yyb171 = yyj171 > l
16004 } else {
16005 yyb171 = z.DecCheckBreak()
16006 }
16007 if yyb171 {
16008 z.DecReadArrayEnd()
16009 return
16010 }
16011 z.DecReadArrayElem()
16012 x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
16013 yyj171++
16014 if yyhl171 {
16015 yyb171 = yyj171 > l
16016 } else {
16017 yyb171 = z.DecCheckBreak()
16018 }
16019 if yyb171 {
16020 z.DecReadArrayEnd()
16021 return
16022 }
16023 z.DecReadArrayElem()
16024 x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
16025 yyj171++
16026 if yyhl171 {
16027 yyb171 = yyj171 > l
16028 } else {
16029 yyb171 = z.DecCheckBreak()
16030 }
16031 if yyb171 {
16032 z.DecReadArrayEnd()
16033 return
16034 }
16035 z.DecReadArrayElem()
16036 x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
16037 yyj171++
16038 if yyhl171 {
16039 yyb171 = yyj171 > l
16040 } else {
16041 yyb171 = z.DecCheckBreak()
16042 }
16043 if yyb171 {
16044 z.DecReadArrayEnd()
16045 return
16046 }
16047 z.DecReadArrayElem()
16048 x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
16049 yyj171++
16050 if yyhl171 {
16051 yyb171 = yyj171 > l
16052 } else {
16053 yyb171 = z.DecCheckBreak()
16054 }
16055 if yyb171 {
16056 z.DecReadArrayEnd()
16057 return
16058 }
16059 z.DecReadArrayElem()
16060 x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
16061 yyj171++
16062 if yyhl171 {
16063 yyb171 = yyj171 > l
16064 } else {
16065 yyb171 = z.DecCheckBreak()
16066 }
16067 if yyb171 {
16068 z.DecReadArrayEnd()
16069 return
16070 }
16071 z.DecReadArrayElem()
16072 x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
16073 yyj171++
16074 if yyhl171 {
16075 yyb171 = yyj171 > l
16076 } else {
16077 yyb171 = z.DecCheckBreak()
16078 }
16079 if yyb171 {
16080 z.DecReadArrayEnd()
16081 return
16082 }
16083 z.DecReadArrayElem()
16084 x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
16085 yyj171++
16086 if yyhl171 {
16087 yyb171 = yyj171 > l
16088 } else {
16089 yyb171 = z.DecCheckBreak()
16090 }
16091 if yyb171 {
16092 z.DecReadArrayEnd()
16093 return
16094 }
16095 z.DecReadArrayElem()
16096 x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
16097 yyj171++
16098 if yyhl171 {
16099 yyb171 = yyj171 > l
16100 } else {
16101 yyb171 = z.DecCheckBreak()
16102 }
16103 if yyb171 {
16104 z.DecReadArrayEnd()
16105 return
16106 }
16107 z.DecReadArrayElem()
16108 x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
16109 yyj171++
16110 if yyhl171 {
16111 yyb171 = yyj171 > l
16112 } else {
16113 yyb171 = z.DecCheckBreak()
16114 }
16115 if yyb171 {
16116 z.DecReadArrayEnd()
16117 return
16118 }
16119 z.DecReadArrayElem()
16120 x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
16121 yyj171++
16122 if yyhl171 {
16123 yyb171 = yyj171 > l
16124 } else {
16125 yyb171 = z.DecCheckBreak()
16126 }
16127 if yyb171 {
16128 z.DecReadArrayEnd()
16129 return
16130 }
16131 z.DecReadArrayElem()
16132 x.TestStrucCommon.B = (bool)(r.DecodeBool())
16133 yyj171++
16134 if yyhl171 {
16135 yyb171 = yyj171 > l
16136 } else {
16137 yyb171 = z.DecCheckBreak()
16138 }
16139 if yyb171 {
16140 z.DecReadArrayEnd()
16141 return
16142 }
16143 z.DecReadArrayElem()
16144 x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
16145 yyj171++
16146 if yyhl171 {
16147 yyb171 = yyj171 > l
16148 } else {
16149 yyb171 = z.DecCheckBreak()
16150 }
16151 if yyb171 {
16152 z.DecReadArrayEnd()
16153 return
16154 }
16155 z.DecReadArrayElem()
16156 z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
16157 yyj171++
16158 if yyhl171 {
16159 yyb171 = yyj171 > l
16160 } else {
16161 yyb171 = z.DecCheckBreak()
16162 }
16163 if yyb171 {
16164 z.DecReadArrayEnd()
16165 return
16166 }
16167 z.DecReadArrayElem()
16168 z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
16169 yyj171++
16170 if yyhl171 {
16171 yyb171 = yyj171 > l
16172 } else {
16173 yyb171 = z.DecCheckBreak()
16174 }
16175 if yyb171 {
16176 z.DecReadArrayEnd()
16177 return
16178 }
16179 z.DecReadArrayElem()
16180 z.F.DecSliceInt32X(&x.TestStrucCommon.I32slice, d)
16181 yyj171++
16182 if yyhl171 {
16183 yyb171 = yyj171 > l
16184 } else {
16185 yyb171 = z.DecCheckBreak()
16186 }
16187 if yyb171 {
16188 z.DecReadArrayEnd()
16189 return
16190 }
16191 z.DecReadArrayElem()
16192 z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
16193 yyj171++
16194 if yyhl171 {
16195 yyb171 = yyj171 > l
16196 } else {
16197 yyb171 = z.DecCheckBreak()
16198 }
16199 if yyb171 {
16200 z.DecReadArrayEnd()
16201 return
16202 }
16203 z.DecReadArrayElem()
16204 x.TestStrucCommon.Ui8slice = z.DecodeBytesInto(([]byte)(x.TestStrucCommon.Ui8slice))
16205 yyj171++
16206 if yyhl171 {
16207 yyb171 = yyj171 > l
16208 } else {
16209 yyb171 = z.DecCheckBreak()
16210 }
16211 if yyb171 {
16212 z.DecReadArrayEnd()
16213 return
16214 }
16215 z.DecReadArrayElem()
16216 z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
16217 yyj171++
16218 if yyhl171 {
16219 yyb171 = yyj171 > l
16220 } else {
16221 yyb171 = z.DecCheckBreak()
16222 }
16223 if yyb171 {
16224 z.DecReadArrayEnd()
16225 return
16226 }
16227 z.DecReadArrayElem()
16228 x.TestStrucCommon.Byslice = z.DecodeBytesInto(([]byte)(x.TestStrucCommon.Byslice))
16229 yyj171++
16230 if yyhl171 {
16231 yyb171 = yyj171 > l
16232 } else {
16233 yyb171 = z.DecCheckBreak()
16234 }
16235 if yyb171 {
16236 z.DecReadArrayEnd()
16237 return
16238 }
16239 z.DecReadArrayElem()
16240 z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
16241 yyj171++
16242 if yyhl171 {
16243 yyb171 = yyj171 > l
16244 } else {
16245 yyb171 = z.DecCheckBreak()
16246 }
16247 if yyb171 {
16248 z.DecReadArrayEnd()
16249 return
16250 }
16251 z.DecReadArrayElem()
16252 h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
16253 yyj171++
16254 if yyhl171 {
16255 yyb171 = yyj171 > l
16256 } else {
16257 yyb171 = z.DecCheckBreak()
16258 }
16259 if yyb171 {
16260 z.DecReadArrayEnd()
16261 return
16262 }
16263 z.DecReadArrayElem()
16264 if yyxt208 := z.Extension(x.TestStrucCommon.WrapSliceInt64); yyxt208 != nil {
16265 z.DecExtension(&x.TestStrucCommon.WrapSliceInt64, yyxt208)
16266 } else {
16267 x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
16268 }
16269 yyj171++
16270 if yyhl171 {
16271 yyb171 = yyj171 > l
16272 } else {
16273 yyb171 = z.DecCheckBreak()
16274 }
16275 if yyb171 {
16276 z.DecReadArrayEnd()
16277 return
16278 }
16279 z.DecReadArrayElem()
16280 if yyxt210 := z.Extension(x.TestStrucCommon.WrapSliceString); yyxt210 != nil {
16281 z.DecExtension(&x.TestStrucCommon.WrapSliceString, yyxt210)
16282 } else {
16283 x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
16284 }
16285 yyj171++
16286 if yyhl171 {
16287 yyb171 = yyj171 > l
16288 } else {
16289 yyb171 = z.DecCheckBreak()
16290 }
16291 if yyb171 {
16292 z.DecReadArrayEnd()
16293 return
16294 }
16295 z.DecReadArrayElem()
16296 z.F.DecMapStringIntX(&x.TestStrucCommon.Msint, d)
16297 yyj171++
16298 if yyhl171 {
16299 yyb171 = yyj171 > l
16300 } else {
16301 yyb171 = z.DecCheckBreak()
16302 }
16303 if yyb171 {
16304 z.DecReadArrayEnd()
16305 return
16306 }
16307 z.DecReadArrayElem()
16308 z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
16309 yyj171++
16310 if yyhl171 {
16311 yyb171 = yyj171 > l
16312 } else {
16313 yyb171 = z.DecCheckBreak()
16314 }
16315 if yyb171 {
16316 z.DecReadArrayEnd()
16317 return
16318 }
16319 z.DecReadArrayElem()
16320 if yyxt216 := z.Extension(x.TestStrucCommon.Simplef); yyxt216 != nil {
16321 z.DecExtension(&x.TestStrucCommon.Simplef, yyxt216)
16322 } else {
16323 x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
16324 }
16325 yyj171++
16326 if yyhl171 {
16327 yyb171 = yyj171 > l
16328 } else {
16329 yyb171 = z.DecCheckBreak()
16330 }
16331 if yyb171 {
16332 z.DecReadArrayEnd()
16333 return
16334 }
16335 z.DecReadArrayElem()
16336 h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
16337 yyj171++
16338 if yyhl171 {
16339 yyb171 = yyj171 > l
16340 } else {
16341 yyb171 = z.DecCheckBreak()
16342 }
16343 if yyb171 {
16344 z.DecReadArrayEnd()
16345 return
16346 }
16347 z.DecReadArrayElem()
16348 h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.TestStrucCommon.MstrUi64T), d)
16349 yyj171++
16350 if yyhl171 {
16351 yyb171 = yyj171 > l
16352 } else {
16353 yyb171 = z.DecCheckBreak()
16354 }
16355 if yyb171 {
16356 z.DecReadArrayEnd()
16357 return
16358 }
16359 z.DecReadArrayElem()
16360 x.TestStrucCommon.AnonInTestStruc.AS = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
16361 yyj171++
16362 if yyhl171 {
16363 yyb171 = yyj171 > l
16364 } else {
16365 yyb171 = z.DecCheckBreak()
16366 }
16367 if yyb171 {
16368 z.DecReadArrayEnd()
16369 return
16370 }
16371 z.DecReadArrayElem()
16372 x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
16373 yyj171++
16374 if yyhl171 {
16375 yyb171 = yyj171 > l
16376 } else {
16377 yyb171 = z.DecCheckBreak()
16378 }
16379 if yyb171 {
16380 z.DecReadArrayEnd()
16381 return
16382 }
16383 z.DecReadArrayElem()
16384 x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
16385 yyj171++
16386 if yyhl171 {
16387 yyb171 = yyj171 > l
16388 } else {
16389 yyb171 = z.DecCheckBreak()
16390 }
16391 if yyb171 {
16392 z.DecReadArrayEnd()
16393 return
16394 }
16395 z.DecReadArrayElem()
16396 x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
16397 yyj171++
16398 if yyhl171 {
16399 yyb171 = yyj171 > l
16400 } else {
16401 yyb171 = z.DecCheckBreak()
16402 }
16403 if yyb171 {
16404 z.DecReadArrayEnd()
16405 return
16406 }
16407 z.DecReadArrayElem()
16408 z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
16409 yyj171++
16410 if yyhl171 {
16411 yyb171 = yyj171 > l
16412 } else {
16413 yyb171 = z.DecCheckBreak()
16414 }
16415 if yyb171 {
16416 z.DecReadArrayEnd()
16417 return
16418 }
16419 z.DecReadArrayElem()
16420 z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
16421 yyj171++
16422 if yyhl171 {
16423 yyb171 = yyj171 > l
16424 } else {
16425 yyb171 = z.DecCheckBreak()
16426 }
16427 if yyb171 {
16428 z.DecReadArrayEnd()
16429 return
16430 }
16431 z.DecReadArrayElem()
16432 z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
16433 yyj171++
16434 if yyhl171 {
16435 yyb171 = yyj171 > l
16436 } else {
16437 yyb171 = z.DecCheckBreak()
16438 }
16439 if yyb171 {
16440 z.DecReadArrayEnd()
16441 return
16442 }
16443 z.DecReadArrayElem()
16444 z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
16445 yyj171++
16446 if yyhl171 {
16447 yyb171 = yyj171 > l
16448 } else {
16449 yyb171 = z.DecCheckBreak()
16450 }
16451 if yyb171 {
16452 z.DecReadArrayEnd()
16453 return
16454 }
16455 z.DecReadArrayElem()
16456 z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
16457 yyj171++
16458 if yyhl171 {
16459 yyb171 = yyj171 > l
16460 } else {
16461 yyb171 = z.DecCheckBreak()
16462 }
16463 if yyb171 {
16464 z.DecReadArrayEnd()
16465 return
16466 }
16467 z.DecReadArrayElem()
16468 z.F.DecMapStringStringX(&x.TestStrucCommon.AnonInTestStruc.AMSS, d)
16469 yyj171++
16470 if yyhl171 {
16471 yyb171 = yyj171 > l
16472 } else {
16473 yyb171 = z.DecCheckBreak()
16474 }
16475 if yyb171 {
16476 z.DecReadArrayEnd()
16477 return
16478 }
16479 z.DecReadArrayElem()
16480 z.F.DecMapStringUint64X(&x.TestStrucCommon.AnonInTestStruc.AMSU64, d)
16481 yyj171++
16482 if yyhl171 {
16483 yyb171 = yyj171 > l
16484 } else {
16485 yyb171 = z.DecCheckBreak()
16486 }
16487 if yyb171 {
16488 z.DecReadArrayEnd()
16489 return
16490 }
16491 z.DecReadArrayElem()
16492 h.decArray8int64((*[8]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr8), d)
16493 yyj171++
16494 if yyhl171 {
16495 yyb171 = yyj171 > l
16496 } else {
16497 yyb171 = z.DecCheckBreak()
16498 }
16499 if yyb171 {
16500 z.DecReadArrayEnd()
16501 return
16502 }
16503 z.DecReadArrayElem()
16504 h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
16505 yyj171++
16506 if yyhl171 {
16507 yyb171 = yyj171 > l
16508 } else {
16509 yyb171 = z.DecCheckBreak()
16510 }
16511 if yyb171 {
16512 z.DecReadArrayEnd()
16513 return
16514 }
16515 z.DecReadArrayElem()
16516 z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice0, d)
16517 yyj171++
16518 if yyhl171 {
16519 yyb171 = yyj171 > l
16520 } else {
16521 yyb171 = z.DecCheckBreak()
16522 }
16523 if yyb171 {
16524 z.DecReadArrayEnd()
16525 return
16526 }
16527 z.DecReadArrayElem()
16528 z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
16529 yyj171++
16530 if yyhl171 {
16531 yyb171 = yyj171 > l
16532 } else {
16533 yyb171 = z.DecCheckBreak()
16534 }
16535 if yyb171 {
16536 z.DecReadArrayEnd()
16537 return
16538 }
16539 z.DecReadArrayElem()
16540 z.F.DecMapStringUint64X(&x.TestStrucCommon.AnonInTestStruc.AMSU64N, d)
16541 yyj171++
16542 if yyhl171 {
16543 yyb171 = yyj171 > l
16544 } else {
16545 yyb171 = z.DecCheckBreak()
16546 }
16547 if yyb171 {
16548 z.DecReadArrayEnd()
16549 return
16550 }
16551 z.DecReadArrayElem()
16552 z.F.DecMapStringUint64X(&x.TestStrucCommon.AnonInTestStruc.AMSU64E, d)
16553 yyj171++
16554 if yyhl171 {
16555 yyb171 = yyj171 > l
16556 } else {
16557 yyb171 = z.DecCheckBreak()
16558 }
16559 if yyb171 {
16560 z.DecReadArrayEnd()
16561 return
16562 }
16563 z.DecReadArrayElem()
16564 if yyxt252 := z.Extension(x.TestStrucCommon.NotAnon); yyxt252 != nil {
16565 z.DecExtension(&x.TestStrucCommon.NotAnon, yyxt252)
16566 } else {
16567 x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
16568 }
16569 yyj171++
16570 if yyhl171 {
16571 yyb171 = yyj171 > l
16572 } else {
16573 yyb171 = z.DecCheckBreak()
16574 }
16575 if yyb171 {
16576 z.DecReadArrayEnd()
16577 return
16578 }
16579 z.DecReadArrayElem()
16580 if r.TryNil() {
16581 if x.TestStrucCommon.AnonInTestStrucSlim != nil && x.TestStrucCommon.AnonInTestStrucSlim.P != nil { // remove the if-true
16582 x.TestStrucCommon.AnonInTestStrucSlim.P = nil
16583 }
16584 } else {
16585 if x.TestStrucCommon.AnonInTestStrucSlim == nil {
16586 x.TestStrucCommon.AnonInTestStrucSlim = new(AnonInTestStrucSlim)
16587 }
16588 if x.TestStrucCommon.AnonInTestStrucSlim.P == nil {
16589 x.TestStrucCommon.AnonInTestStrucSlim.P = new(string)
16590 }
16591 *x.TestStrucCommon.AnonInTestStrucSlim.P = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
16592 }
16593 yyj171++
16594 if yyhl171 {
16595 yyb171 = yyj171 > l
16596 } else {
16597 yyb171 = z.DecCheckBreak()
16598 }
16599 if yyb171 {
16600 z.DecReadArrayEnd()
16601 return
16602 }
16603 z.DecReadArrayElem()
16604 if r.TryNil() {
16605 if x.TestStrucCommon.NotAnonSlim != nil { // remove the if-true
16606 x.TestStrucCommon.NotAnonSlim = nil
16607 }
16608 } else {
16609 if x.TestStrucCommon.NotAnonSlim == nil {
16610 x.TestStrucCommon.NotAnonSlim = new(AnonInTestStrucSlim)
16611 }
16612 if yyxt256 := z.Extension(x.TestStrucCommon.NotAnonSlim); yyxt256 != nil {
16613 z.DecExtension(x.TestStrucCommon.NotAnonSlim, yyxt256)
16614 } else {
16615 x.TestStrucCommon.NotAnonSlim.CodecDecodeSelf(d)
16616 }
16617 }
16618 yyj171++
16619 if yyhl171 {
16620 yyb171 = yyj171 > l
16621 } else {
16622 yyb171 = z.DecCheckBreak()
16623 }
16624 if yyb171 {
16625 z.DecReadArrayEnd()
16626 return
16627 }
16628 z.DecReadArrayElem()
16629 z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
16630 yyj171++
16631 if yyhl171 {
16632 yyb171 = yyj171 > l
16633 } else {
16634 yyb171 = z.DecCheckBreak()
16635 }
16636 if yyb171 {
16637 z.DecReadArrayEnd()
16638 return
16639 }
16640 z.DecReadArrayElem()
16641 x.TestStrucCommon.Nslice = z.DecodeBytesInto(([]byte)(x.TestStrucCommon.Nslice))
16642 yyj171++
16643 if yyhl171 {
16644 yyb171 = yyj171 > l
16645 } else {
16646 yyb171 = z.DecCheckBreak()
16647 }
16648 if yyb171 {
16649 z.DecReadArrayEnd()
16650 return
16651 }
16652 z.DecReadArrayElem()
16653 if r.TryNil() {
16654 if x.TestStrucCommon.Nint64 != nil { // remove the if-true
16655 x.TestStrucCommon.Nint64 = nil
16656 }
16657 } else {
16658 if x.TestStrucCommon.Nint64 == nil {
16659 x.TestStrucCommon.Nint64 = new(int64)
16660 }
16661 *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
16662 }
16663 yyj171++
16664 if yyhl171 {
16665 yyb171 = yyj171 > l
16666 } else {
16667 yyb171 = z.DecCheckBreak()
16668 }
16669 if yyb171 {
16670 z.DecReadArrayEnd()
16671 return
16672 }
16673 z.DecReadArrayElem()
16674 h.decChanstring((*chan string)(&x.Chstr), d)
16675 yyj171++
16676 if yyhl171 {
16677 yyb171 = yyj171 > l
16678 } else {
16679 yyb171 = z.DecCheckBreak()
16680 }
16681 if yyb171 {
16682 z.DecReadArrayEnd()
16683 return
16684 }
16685 z.DecReadArrayElem()
16686 z.F.DecMapIntStringX(&x.Mis, d)
16687 yyj171++
16688 if yyhl171 {
16689 yyb171 = yyj171 > l
16690 } else {
16691 yyb171 = z.DecCheckBreak()
16692 }
16693 if yyb171 {
16694 z.DecReadArrayEnd()
16695 return
16696 }
16697 z.DecReadArrayElem()
16698 h.decMapboolc3RydWN0IHt9((*map[bool]struct{})(&x.Mbu64), d)
16699 yyj171++
16700 if yyhl171 {
16701 yyb171 = yyj171 > l
16702 } else {
16703 yyb171 = z.DecCheckBreak()
16704 }
16705 if yyb171 {
16706 z.DecReadArrayEnd()
16707 return
16708 }
16709 z.DecReadArrayElem()
16710 h.decMapuint8c3RydWN0IHt9((*map[uint8]struct{})(&x.Mu8e), d)
16711 yyj171++
16712 if yyhl171 {
16713 yyb171 = yyj171 > l
16714 } else {
16715 yyb171 = z.DecCheckBreak()
16716 }
16717 if yyb171 {
16718 z.DecReadArrayEnd()
16719 return
16720 }
16721 z.DecReadArrayElem()
16722 h.decMapuint8stringUint64T((*map[uint8]stringUint64T)(&x.Mu8u64), d)
16723 yyj171++
16724 if yyhl171 {
16725 yyb171 = yyj171 > l
16726 } else {
16727 yyb171 = z.DecCheckBreak()
16728 }
16729 if yyb171 {
16730 z.DecReadArrayEnd()
16731 return
16732 }
16733 z.DecReadArrayElem()
16734 h.decMapPtrtostringSlicestring((*map[*string][]string)(&x.Msp2ss), d)
16735 yyj171++
16736 if yyhl171 {
16737 yyb171 = yyj171 > l
16738 } else {
16739 yyb171 = z.DecCheckBreak()
16740 }
16741 if yyb171 {
16742 z.DecReadArrayEnd()
16743 return
16744 }
16745 z.DecReadArrayElem()
16746 h.decMapPtrtouint64Slicestring((*map[*uint64][]string)(&x.Mip2ss), d)
16747 yyj171++
16748 if yyhl171 {
16749 yyb171 = yyj171 > l
16750 } else {
16751 yyb171 = z.DecCheckBreak()
16752 }
16753 if yyb171 {
16754 z.DecReadArrayEnd()
16755 return
16756 }
16757 z.DecReadArrayElem()
16758 h.decMapstringMapuint64stringUint64T((*map[string]map[uint64]stringUint64T)(&x.Ms2misu), d)
16759 yyj171++
16760 if yyhl171 {
16761 yyb171 = yyj171 > l
16762 } else {
16763 yyb171 = z.DecCheckBreak()
16764 }
16765 if yyb171 {
16766 z.DecReadArrayEnd()
16767 return
16768 }
16769 z.DecReadArrayElem()
16770 h.decMapintwrapUint64Slice((*map[int]wrapUint64Slice)(&x.Miwu64s), d)
16771 yyj171++
16772 if yyhl171 {
16773 yyb171 = yyj171 > l
16774 } else {
16775 yyb171 = z.DecCheckBreak()
16776 }
16777 if yyb171 {
16778 z.DecReadArrayEnd()
16779 return
16780 }
16781 z.DecReadArrayElem()
16782 h.decMapfloat64wrapStringSlice((*map[float64]wrapStringSlice)(&x.Mfwss), d)
16783 yyj171++
16784 if yyhl171 {
16785 yyb171 = yyj171 > l
16786 } else {
16787 yyb171 = z.DecCheckBreak()
16788 }
16789 if yyb171 {
16790 z.DecReadArrayEnd()
16791 return
16792 }
16793 z.DecReadArrayElem()
16794 h.decMapfloat32wrapStringSlice((*map[float32]wrapStringSlice)(&x.Mf32wss), d)
16795 yyj171++
16796 if yyhl171 {
16797 yyb171 = yyj171 > l
16798 } else {
16799 yyb171 = z.DecCheckBreak()
16800 }
16801 if yyb171 {
16802 z.DecReadArrayEnd()
16803 return
16804 }
16805 z.DecReadArrayElem()
16806 h.decMapuint64wrapStringSlice((*map[uint64]wrapStringSlice)(&x.Mui2wss), d)
16807 yyj171++
16808 if yyhl171 {
16809 yyb171 = yyj171 > l
16810 } else {
16811 yyb171 = z.DecCheckBreak()
16812 }
16813 if yyb171 {
16814 z.DecReadArrayEnd()
16815 return
16816 }
16817 z.DecReadArrayElem()
16818 h.decMapstringUint64TwrapStringSlice((*map[stringUint64T]wrapStringSlice)(&x.Msu2wss), d)
16819 yyj171++
16820 if yyhl171 {
16821 yyb171 = yyj171 > l
16822 } else {
16823 yyb171 = z.DecCheckBreak()
16824 }
16825 if yyb171 {
16826 z.DecReadArrayEnd()
16827 return
16828 }
16829 z.DecReadArrayElem()
16830 if yyxt290 := z.Extension(x.Ci64); yyxt290 != nil {
16831 z.DecExtension(&x.Ci64, yyxt290)
16832 } else {
16833 x.Ci64.CodecDecodeSelf(d)
16834 }
16835 yyj171++
16836 if yyhl171 {
16837 yyb171 = yyj171 > l
16838 } else {
16839 yyb171 = z.DecCheckBreak()
16840 }
16841 if yyb171 {
16842 z.DecReadArrayEnd()
16843 return
16844 }
16845 z.DecReadArrayElem()
16846 h.decSlicewrapBytes((*[]wrapBytes)(&x.Swrapbytes), d)
16847 yyj171++
16848 if yyhl171 {
16849 yyb171 = yyj171 > l
16850 } else {
16851 yyb171 = z.DecCheckBreak()
16852 }
16853 if yyb171 {
16854 z.DecReadArrayEnd()
16855 return
16856 }
16857 z.DecReadArrayElem()
16858 h.decSlicewrapUint8((*[]wrapUint8)(&x.Swrapuint8), d)
16859 yyj171++
16860 if yyhl171 {
16861 yyb171 = yyj171 > l
16862 } else {
16863 yyb171 = z.DecCheckBreak()
16864 }
16865 if yyb171 {
16866 z.DecReadArrayEnd()
16867 return
16868 }
16869 z.DecReadArrayElem()
16870 h.decArray4stringUint64T((*[4]stringUint64T)(&x.ArrStrUi64T), d)
16871 yyj171++
16872 if yyhl171 {
16873 yyb171 = yyj171 > l
16874 } else {
16875 yyb171 = z.DecCheckBreak()
16876 }
16877 if yyb171 {
16878 z.DecReadArrayEnd()
16879 return
16880 }
16881 z.DecReadArrayElem()
16882 h.decArray4uint64((*[4]uint64)(&x.Ui64array), d)
16883 yyj171++
16884 if yyhl171 {
16885 yyb171 = yyj171 > l
16886 } else {
16887 yyb171 = z.DecCheckBreak()
16888 }
16889 if yyb171 {
16890 z.DecReadArrayEnd()
16891 return
16892 }
16893 z.DecReadArrayElem()
16894 h.decSlicePtrtoArray4uint64((*[]*[4]uint64)(&x.Ui64slicearray), d)
16895 yyj171++
16896 if yyhl171 {
16897 yyb171 = yyj171 > l
16898 } else {
16899 yyb171 = z.DecCheckBreak()
16900 }
16901 if yyb171 {
16902 z.DecReadArrayEnd()
16903 return
16904 }
16905 z.DecReadArrayElem()
16906 z.F.DecSliceIntfX(&x.SintfAarray, d)
16907 yyj171++
16908 if yyhl171 {
16909 yyb171 = yyj171 > l
16910 } else {
16911 yyb171 = z.DecCheckBreak()
16912 }
16913 if yyb171 {
16914 z.DecReadArrayEnd()
16915 return
16916 }
16917 z.DecReadArrayElem()
16918 h.decMapstringUint64TPtrtostringUint64T((*map[stringUint64T]*stringUint64T)(&x.MstrUi64TSelf), d)
16919 yyj171++
16920 if yyhl171 {
16921 yyb171 = yyj171 > l
16922 } else {
16923 yyb171 = z.DecCheckBreak()
16924 }
16925 if yyb171 {
16926 z.DecReadArrayEnd()
16927 return
16928 }
16929 z.DecReadArrayElem()
16930 if z.DecBasicHandle().TimeBuiltin() {
16931 x.Ttime = r.DecodeTime()
16932 } else if yyxt306 := z.Extension(x.Ttime); yyxt306 != nil {
16933 z.DecExtension(&x.Ttime, yyxt306)
16934 } else if z.DecBinary() {
16935 z.DecBinaryUnmarshal(&x.Ttime)
16936 } else if !z.DecBinary() && z.IsJSONHandle() {
16937 z.DecJSONUnmarshal(&x.Ttime)
16938 } else {
16939 z.DecFallback(&x.Ttime, false)
16940 }
16941 yyj171++
16942 if yyhl171 {
16943 yyb171 = yyj171 > l
16944 } else {
16945 yyb171 = z.DecCheckBreak()
16946 }
16947 if yyb171 {
16948 z.DecReadArrayEnd()
16949 return
16950 }
16951 z.DecReadArrayElem()
16952 if r.TryNil() {
16953 if x.Ttimeptr != nil { // remove the if-true
16954 x.Ttimeptr = nil
16955 }
16956 } else {
16957 if x.Ttimeptr == nil {
16958 x.Ttimeptr = new(time.Time)
16959 }
16960 if z.DecBasicHandle().TimeBuiltin() {
16961 *x.Ttimeptr = r.DecodeTime()
16962 } else if yyxt308 := z.Extension(x.Ttimeptr); yyxt308 != nil {
16963 z.DecExtension(x.Ttimeptr, yyxt308)
16964 } else if z.DecBinary() {
16965 z.DecBinaryUnmarshal(x.Ttimeptr)
16966 } else if !z.DecBinary() && z.IsJSONHandle() {
16967 z.DecJSONUnmarshal(x.Ttimeptr)
16968 } else {
16969 z.DecFallback(x.Ttimeptr, false)
16970 }
16971 }
16972 yyj171++
16973 if yyhl171 {
16974 yyb171 = yyj171 > l
16975 } else {
16976 yyb171 = z.DecCheckBreak()
16977 }
16978 if yyb171 {
16979 z.DecReadArrayEnd()
16980 return
16981 }
16982 z.DecReadArrayElem()
16983 if r.TryNil() {
16984 if x.AnonInTestStrucIntf != nil { // remove the if-true
16985 x.AnonInTestStrucIntf.Islice = nil
16986 }
16987 } else {
16988 if x.AnonInTestStrucIntf == nil {
16989 x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
16990 }
16991 z.F.DecSliceIntfX(&x.AnonInTestStrucIntf.Islice, d)
16992 }
16993 yyj171++
16994 if yyhl171 {
16995 yyb171 = yyj171 > l
16996 } else {
16997 yyb171 = z.DecCheckBreak()
16998 }
16999 if yyb171 {
17000 z.DecReadArrayEnd()
17001 return
17002 }
17003 z.DecReadArrayElem()
17004 if r.TryNil() {
17005 if x.AnonInTestStrucIntf != nil { // remove the if-true
17006 x.AnonInTestStrucIntf.Ms = nil
17007 }
17008 } else {
17009 if x.AnonInTestStrucIntf == nil {
17010 x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
17011 }
17012 z.F.DecMapStringIntfX(&x.AnonInTestStrucIntf.Ms, d)
17013 }
17014 yyj171++
17015 if yyhl171 {
17016 yyb171 = yyj171 > l
17017 } else {
17018 yyb171 = z.DecCheckBreak()
17019 }
17020 if yyb171 {
17021 z.DecReadArrayEnd()
17022 return
17023 }
17024 z.DecReadArrayElem()
17025 if r.TryNil() {
17026 if x.AnonInTestStrucIntf != nil { // remove the if-true
17027 x.AnonInTestStrucIntf.Nintf = nil
17028 }
17029 } else {
17030 if x.AnonInTestStrucIntf == nil {
17031 x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
17032 }
17033 z.DecFallback(&x.AnonInTestStrucIntf.Nintf, true)
17034 }
17035 yyj171++
17036 if yyhl171 {
17037 yyb171 = yyj171 > l
17038 } else {
17039 yyb171 = z.DecCheckBreak()
17040 }
17041 if yyb171 {
17042 z.DecReadArrayEnd()
17043 return
17044 }
17045 z.DecReadArrayElem()
17046 if r.TryNil() {
17047 if x.AnonInTestStrucIntf != nil { // remove the if-true
17048 x.AnonInTestStrucIntf.T = time.Time{}
17049 }
17050 } else {
17051 if x.AnonInTestStrucIntf == nil {
17052 x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
17053 }
17054 if z.DecBasicHandle().TimeBuiltin() {
17055 x.AnonInTestStrucIntf.T = r.DecodeTime()
17056 } else if yyxt316 := z.Extension(x.AnonInTestStrucIntf.T); yyxt316 != nil {
17057 z.DecExtension(&x.AnonInTestStrucIntf.T, yyxt316)
17058 } else if z.DecBinary() {
17059 z.DecBinaryUnmarshal(&x.AnonInTestStrucIntf.T)
17060 } else if !z.DecBinary() && z.IsJSONHandle() {
17061 z.DecJSONUnmarshal(&x.AnonInTestStrucIntf.T)
17062 } else {
17063 z.DecFallback(&x.AnonInTestStrucIntf.T, false)
17064 }
17065 }
17066 yyj171++
17067 if yyhl171 {
17068 yyb171 = yyj171 > l
17069 } else {
17070 yyb171 = z.DecCheckBreak()
17071 }
17072 if yyb171 {
17073 z.DecReadArrayEnd()
17074 return
17075 }
17076 z.DecReadArrayElem()
17077 if r.TryNil() {
17078 if x.AnonInTestStrucIntf != nil && x.AnonInTestStrucIntf.Tptr != nil { // remove the if-true
17079 x.AnonInTestStrucIntf.Tptr = nil
17080 }
17081 } else {
17082 if x.AnonInTestStrucIntf == nil {
17083 x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
17084 }
17085 if x.AnonInTestStrucIntf.Tptr == nil {
17086 x.AnonInTestStrucIntf.Tptr = new(time.Time)
17087 }
17088 if z.DecBasicHandle().TimeBuiltin() {
17089 *x.AnonInTestStrucIntf.Tptr = r.DecodeTime()
17090 } else if yyxt318 := z.Extension(x.AnonInTestStrucIntf.Tptr); yyxt318 != nil {
17091 z.DecExtension(x.AnonInTestStrucIntf.Tptr, yyxt318)
17092 } else if z.DecBinary() {
17093 z.DecBinaryUnmarshal(x.AnonInTestStrucIntf.Tptr)
17094 } else if !z.DecBinary() && z.IsJSONHandle() {
17095 z.DecJSONUnmarshal(x.AnonInTestStrucIntf.Tptr)
17096 } else {
17097 z.DecFallback(x.AnonInTestStrucIntf.Tptr, false)
17098 }
17099 }
17100 yyj171++
17101 if yyhl171 {
17102 yyb171 = yyj171 > l
17103 } else {
17104 yyb171 = z.DecCheckBreak()
17105 }
17106 if yyb171 {
17107 z.DecReadArrayEnd()
17108 return
17109 }
17110 z.DecReadArrayElem()
17111 h.decMapwrapStringInterface((*map[wrapString]interface{})(&x.Msu), d)
17112 yyj171++
17113 if yyhl171 {
17114 yyb171 = yyj171 > l
17115 } else {
17116 yyb171 = z.DecCheckBreak()
17117 }
17118 if yyb171 {
17119 z.DecReadArrayEnd()
17120 return
17121 }
17122 z.DecReadArrayElem()
17123 h.decMapstringPtrtoTestStrucFlex((*map[string]*TestStrucFlex)(&x.Mtsptr), d)
17124 yyj171++
17125 if yyhl171 {
17126 yyb171 = yyj171 > l
17127 } else {
17128 yyb171 = z.DecCheckBreak()
17129 }
17130 if yyb171 {
17131 z.DecReadArrayEnd()
17132 return
17133 }
17134 z.DecReadArrayElem()
17135 h.decMapstringTestStrucFlex((*map[string]TestStrucFlex)(&x.Mts), d)
17136 yyj171++
17137 if yyhl171 {
17138 yyb171 = yyj171 > l
17139 } else {
17140 yyb171 = z.DecCheckBreak()
17141 }
17142 if yyb171 {
17143 z.DecReadArrayEnd()
17144 return
17145 }
17146 z.DecReadArrayElem()
17147 h.decSlicePtrtoTestStrucFlex((*[]*TestStrucFlex)(&x.Its), d)
17148 yyj171++
17149 if yyhl171 {
17150 yyb171 = yyj171 > l
17151 } else {
17152 yyb171 = z.DecCheckBreak()
17153 }
17154 if yyb171 {
17155 z.DecReadArrayEnd()
17156 return
17157 }
17158 z.DecReadArrayElem()
17159 if r.TryNil() {
17160 if x.Nteststruc != nil { // remove the if-true
17161 x.Nteststruc = nil
17162 }
17163 } else {
17164 if x.Nteststruc == nil {
17165 x.Nteststruc = new(TestStrucFlex)
17166 }
17167 if yyxt328 := z.Extension(x.Nteststruc); yyxt328 != nil {
17168 z.DecExtension(x.Nteststruc, yyxt328)
17169 } else {
17170 x.Nteststruc.CodecDecodeSelf(d)
17171 }
17172 }
17173 yyj171++
17174 if yyhl171 {
17175 yyb171 = yyj171 > l
17176 } else {
17177 yyb171 = z.DecCheckBreak()
17178 }
17179 if yyb171 {
17180 z.DecReadArrayEnd()
17181 return
17182 }
17183 z.DecReadArrayElem()
17184 if yyxt330 := z.Extension(x.MarJ); yyxt330 != nil {
17185 z.DecExtension(&x.MarJ, yyxt330)
17186 } else {
17187 x.MarJ.CodecDecodeSelf(d)
17188 }
17189 yyj171++
17190 if yyhl171 {
17191 yyb171 = yyj171 > l
17192 } else {
17193 yyb171 = z.DecCheckBreak()
17194 }
17195 if yyb171 {
17196 z.DecReadArrayEnd()
17197 return
17198 }
17199 z.DecReadArrayElem()
17200 if yyxt332 := z.Extension(x.MarT); yyxt332 != nil {
17201 z.DecExtension(&x.MarT, yyxt332)
17202 } else {
17203 x.MarT.CodecDecodeSelf(d)
17204 }
17205 yyj171++
17206 if yyhl171 {
17207 yyb171 = yyj171 > l
17208 } else {
17209 yyb171 = z.DecCheckBreak()
17210 }
17211 if yyb171 {
17212 z.DecReadArrayEnd()
17213 return
17214 }
17215 z.DecReadArrayElem()
17216 if yyxt334 := z.Extension(x.MarB); yyxt334 != nil {
17217 z.DecExtension(&x.MarB, yyxt334)
17218 } else {
17219 x.MarB.CodecDecodeSelf(d)
17220 }
17221 yyj171++
17222 if yyhl171 {
17223 yyb171 = yyj171 > l
17224 } else {
17225 yyb171 = z.DecCheckBreak()
17226 }
17227 if yyb171 {
17228 z.DecReadArrayEnd()
17229 return
17230 }
17231 z.DecReadArrayElem()
17232 if yyxt336 := z.Extension(x.XuintToBytes); yyxt336 != nil {
17233 z.DecExtension(&x.XuintToBytes, yyxt336)
17234 } else {
17235 x.XuintToBytes.CodecDecodeSelf(d)
17236 }
17237 yyj171++
17238 if yyhl171 {
17239 yyb171 = yyj171 > l
17240 } else {
17241 yyb171 = z.DecCheckBreak()
17242 }
17243 if yyb171 {
17244 z.DecReadArrayEnd()
17245 return
17246 }
17247 z.DecReadArrayElem()
17248 x.Cmplx64 = (complex64)(complex(z.DecDecodeFloat32(), 0))
17249 yyj171++
17250 if yyhl171 {
17251 yyb171 = yyj171 > l
17252 } else {
17253 yyb171 = z.DecCheckBreak()
17254 }
17255 if yyb171 {
17256 z.DecReadArrayEnd()
17257 return
17258 }
17259 z.DecReadArrayElem()
17260 x.Cmplx128 = (complex128)(complex(r.DecodeFloat64(), 0))
17261 for {
17262 yyj171++
17263 if yyhl171 {
17264 yyb171 = yyj171 > l
17265 } else {
17266 yyb171 = z.DecCheckBreak()
17267 }
17268 if yyb171 {
17269 break
17270 }
17271 z.DecReadArrayElem()
17272 z.DecStructFieldNotFound(yyj171-1, "")
17273 }
17274 }
17275
17276 func (x *TestStrucFlex) IsCodecEmpty() bool {
17277 return !(!(x.TestStrucCommon.IsCodecEmpty()) || len(x.Chstr) != 0 || len(x.Mis) != 0 || len(x.Mbu64) != 0 || len(x.Mu8e) != 0 || len(x.Mu8u64) != 0 || len(x.Msp2ss) != 0 || len(x.Mip2ss) != 0 || len(x.Ms2misu) != 0 || len(x.Miwu64s) != 0 || len(x.Mfwss) != 0 || len(x.Mf32wss) != 0 || len(x.Mui2wss) != 0 || len(x.Msu2wss) != 0 || x.Ci64 != 0 || len(x.Swrapbytes) != 0 || len(x.Swrapuint8) != 0 || x.ArrStrUi64T != [4]stringUint64T{} || x.Ui64array != [4]uint64{} || len(x.Ui64slicearray) != 0 || len(x.SintfAarray) != 0 || len(x.MstrUi64TSelf) != 0 || !(x.Ttime.IsZero()) || x.AnonInTestStrucIntf != nil && len(x.Msu) != 0 || len(x.Mtsptr) != 0 || len(x.Mts) != 0 || len(x.Its) != 0 || bool(x.MarJ) || x.MarT != "" || len(x.MarB) != 0 || x.XuintToBytes != 0 || x.Cmplx64 != 0 || x.Cmplx128 != 0 || false)
17278 }
17279
17280 func (x codecSelfer19780) encwrapUint64Slice(v wrapUint64Slice, e *Encoder) {
17281 var h codecSelfer19780
17282 z, r := GenHelper().Encoder(e)
17283 _, _, _ = h, z, r
17284 if v == nil {
17285 r.EncodeNil()
17286 return
17287 }
17288 z.EncWriteArrayStart(len(v))
17289 for yyv1 := range v {
17290 z.EncWriteArrayElem()
17291 if yyxt2 := z.Extension(v[yyv1]); yyxt2 != nil {
17292 z.EncExtension(v[yyv1], yyxt2)
17293 } else {
17294 v[yyv1].CodecEncodeSelf(e)
17295 }
17296 }
17297 z.EncWriteArrayEnd()
17298 }
17299
17300 func (x codecSelfer19780) decwrapUint64Slice(v *wrapUint64Slice, d *Decoder) {
17301 var h codecSelfer19780
17302 z, r := GenHelper().Decoder(d)
17303 _, _, _ = h, z, r
17304
17305 yyv1 := *v
17306 yyh1, yyl1 := z.DecSliceHelperStart()
17307 var yyc1 bool
17308 _ = yyc1
17309 if yyh1.IsNil {
17310 if yyv1 != nil {
17311 yyv1 = nil
17312 yyc1 = true
17313 }
17314 } else if yyl1 == 0 {
17315 if yyv1 == nil {
17316 yyv1 = []wrapUint64{}
17317 yyc1 = true
17318 } else if len(yyv1) != 0 {
17319 yyv1 = yyv1[:0]
17320 yyc1 = true
17321 }
17322 } else {
17323 yyhl1 := yyl1 > 0
17324 var yyrl1 int
17325 _ = yyrl1
17326 if yyhl1 {
17327 if yyl1 > cap(yyv1) {
17328 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
17329 if yyrl1 <= cap(yyv1) {
17330 yyv1 = yyv1[:yyrl1]
17331 } else {
17332 yyv1 = make([]wrapUint64, yyrl1)
17333 }
17334 yyc1 = true
17335 } else if yyl1 != len(yyv1) {
17336 yyv1 = yyv1[:yyl1]
17337 yyc1 = true
17338 }
17339 }
17340 var yyj1 int
17341 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination
17342 if yyj1 == 0 && yyv1 == nil {
17343 if yyhl1 {
17344 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
17345 } else {
17346 yyrl1 = 8
17347 }
17348 yyv1 = make([]wrapUint64, yyrl1)
17349 yyc1 = true
17350 }
17351 yyh1.ElemContainerState(yyj1)
17352 var yydb1 bool
17353 if yyj1 >= len(yyv1) {
17354 yyv1 = append(yyv1, 0)
17355 yyc1 = true
17356 }
17357 if yydb1 {
17358 z.DecSwallow()
17359 } else {
17360 if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil {
17361 z.DecExtension(&yyv1[yyj1], yyxt3)
17362 } else {
17363 yyv1[yyj1].CodecDecodeSelf(d)
17364 }
17365 }
17366 }
17367 if yyj1 < len(yyv1) {
17368 yyv1 = yyv1[:yyj1]
17369 yyc1 = true
17370 } else if yyj1 == 0 && yyv1 == nil {
17371 yyv1 = []wrapUint64{}
17372 yyc1 = true
17373 }
17374 }
17375 yyh1.End()
17376 if yyc1 {
17377 *v = yyv1
17378 }
17379 }
17380
17381 func (x codecSelfer19780) encwrapStringSlice(v wrapStringSlice, e *Encoder) {
17382 var h codecSelfer19780
17383 z, r := GenHelper().Encoder(e)
17384 _, _, _ = h, z, r
17385 if v == nil {
17386 r.EncodeNil()
17387 return
17388 }
17389 z.EncWriteArrayStart(len(v))
17390 for yyv1 := range v {
17391 z.EncWriteArrayElem()
17392 if yyxt2 := z.Extension(v[yyv1]); yyxt2 != nil {
17393 z.EncExtension(v[yyv1], yyxt2)
17394 } else {
17395 v[yyv1].CodecEncodeSelf(e)
17396 }
17397 }
17398 z.EncWriteArrayEnd()
17399 }
17400
17401 func (x codecSelfer19780) decwrapStringSlice(v *wrapStringSlice, d *Decoder) {
17402 var h codecSelfer19780
17403 z, r := GenHelper().Decoder(d)
17404 _, _, _ = h, z, r
17405
17406 yyv1 := *v
17407 yyh1, yyl1 := z.DecSliceHelperStart()
17408 var yyc1 bool
17409 _ = yyc1
17410 if yyh1.IsNil {
17411 if yyv1 != nil {
17412 yyv1 = nil
17413 yyc1 = true
17414 }
17415 } else if yyl1 == 0 {
17416 if yyv1 == nil {
17417 yyv1 = []wrapString{}
17418 yyc1 = true
17419 } else if len(yyv1) != 0 {
17420 yyv1 = yyv1[:0]
17421 yyc1 = true
17422 }
17423 } else {
17424 yyhl1 := yyl1 > 0
17425 var yyrl1 int
17426 _ = yyrl1
17427 if yyhl1 {
17428 if yyl1 > cap(yyv1) {
17429 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
17430 if yyrl1 <= cap(yyv1) {
17431 yyv1 = yyv1[:yyrl1]
17432 } else {
17433 yyv1 = make([]wrapString, yyrl1)
17434 }
17435 yyc1 = true
17436 } else if yyl1 != len(yyv1) {
17437 yyv1 = yyv1[:yyl1]
17438 yyc1 = true
17439 }
17440 }
17441 var yyj1 int
17442 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination
17443 if yyj1 == 0 && yyv1 == nil {
17444 if yyhl1 {
17445 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
17446 } else {
17447 yyrl1 = 8
17448 }
17449 yyv1 = make([]wrapString, yyrl1)
17450 yyc1 = true
17451 }
17452 yyh1.ElemContainerState(yyj1)
17453 var yydb1 bool
17454 if yyj1 >= len(yyv1) {
17455 yyv1 = append(yyv1, "")
17456 yyc1 = true
17457 }
17458 if yydb1 {
17459 z.DecSwallow()
17460 } else {
17461 if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil {
17462 z.DecExtension(&yyv1[yyj1], yyxt3)
17463 } else {
17464 yyv1[yyj1].CodecDecodeSelf(d)
17465 }
17466 }
17467 }
17468 if yyj1 < len(yyv1) {
17469 yyv1 = yyv1[:yyj1]
17470 yyc1 = true
17471 } else if yyj1 == 0 && yyv1 == nil {
17472 yyv1 = []wrapString{}
17473 yyc1 = true
17474 }
17475 }
17476 yyh1.End()
17477 if yyc1 {
17478 *v = yyv1
17479 }
17480 }
17481
17482 func (x codecSelfer19780) encArray8int64(v *[8]int64, e *Encoder) {
17483 var h codecSelfer19780
17484 z, r := GenHelper().Encoder(e)
17485 _, _, _ = h, z, r
17486 if v == nil {
17487 r.EncodeNil()
17488 return
17489 }
17490 z.EncWriteArrayStart(len(v))
17491 for yyv1 := range v {
17492 z.EncWriteArrayElem()
17493 r.EncodeInt(int64(v[yyv1]))
17494 }
17495 z.EncWriteArrayEnd()
17496 }
17497
17498 func (x codecSelfer19780) decArray8int64(v *[8]int64, d *Decoder) {
17499 var h codecSelfer19780
17500 z, r := GenHelper().Decoder(d)
17501 _, _, _ = h, z, r
17502
17503 yyv1 := v
17504 yyh1, yyl1 := z.DecSliceHelperStart()
17505 if yyl1 == 0 {
17506 } else {
17507 yyhl1 := yyl1 > 0
17508 var yyrl1 int
17509 _ = yyrl1
17510 var yyj1 int
17511 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination
17512 yyh1.ElemContainerState(yyj1)
17513 var yydb1 bool
17514 if yyj1 >= len(yyv1) {
17515 z.DecArrayCannotExpand(len(v), yyj1+1)
17516 yydb1 = true
17517 }
17518 if yydb1 {
17519 z.DecSwallow()
17520 } else {
17521 yyv1[yyj1] = (int64)(r.DecodeInt64())
17522 }
17523 }
17524 }
17525 yyh1.End()
17526 }
17527
17528 func (x codecSelfer19780) encArray0int64(v *[0]int64, e *Encoder) {
17529 var h codecSelfer19780
17530 z, r := GenHelper().Encoder(e)
17531 _, _, _ = h, z, r
17532 if v == nil {
17533 r.EncodeNil()
17534 return
17535 }
17536 z.EncWriteArrayStart(len(v))
17537 for yyv1 := range v {
17538 z.EncWriteArrayElem()
17539 r.EncodeInt(int64(v[yyv1]))
17540 }
17541 z.EncWriteArrayEnd()
17542 }
17543
17544 func (x codecSelfer19780) decArray0int64(v *[0]int64, d *Decoder) {
17545 var h codecSelfer19780
17546 z, r := GenHelper().Decoder(d)
17547 _, _, _ = h, z, r
17548
17549 yyv1 := v
17550 yyh1, yyl1 := z.DecSliceHelperStart()
17551 if yyl1 == 0 {
17552 } else {
17553 yyhl1 := yyl1 > 0
17554 var yyrl1 int
17555 _ = yyrl1
17556 var yyj1 int
17557 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination
17558 yyh1.ElemContainerState(yyj1)
17559 var yydb1 bool
17560 if yyj1 >= len(yyv1) {
17561 z.DecArrayCannotExpand(len(v), yyj1+1)
17562 yydb1 = true
17563 }
17564 if yydb1 {
17565 z.DecSwallow()
17566 } else {
17567 yyv1[yyj1] = (int64)(r.DecodeInt64())
17568 }
17569 }
17570 }
17571 yyh1.End()
17572 }
17573
17574 func (x codecSelfer19780) encSlicePtrtoint64(v []*int64, e *Encoder) {
17575 var h codecSelfer19780
17576 z, r := GenHelper().Encoder(e)
17577 _, _, _ = h, z, r
17578 if v == nil {
17579 r.EncodeNil()
17580 return
17581 }
17582 z.EncWriteArrayStart(len(v))
17583 for yyv1 := range v {
17584 z.EncWriteArrayElem()
17585 if v[yyv1] == nil {
17586 r.EncodeNil()
17587 } else {
17588 yy2 := *v[yyv1]
17589 r.EncodeInt(int64(yy2))
17590 }
17591 }
17592 z.EncWriteArrayEnd()
17593 }
17594
17595 func (x codecSelfer19780) decSlicePtrtoint64(v *[]*int64, d *Decoder) {
17596 var h codecSelfer19780
17597 z, r := GenHelper().Decoder(d)
17598 _, _, _ = h, z, r
17599
17600 yyv1 := *v
17601 yyh1, yyl1 := z.DecSliceHelperStart()
17602 var yyc1 bool
17603 _ = yyc1
17604 if yyh1.IsNil {
17605 if yyv1 != nil {
17606 yyv1 = nil
17607 yyc1 = true
17608 }
17609 } else if yyl1 == 0 {
17610 if yyv1 == nil {
17611 yyv1 = []*int64{}
17612 yyc1 = true
17613 } else if len(yyv1) != 0 {
17614 yyv1 = yyv1[:0]
17615 yyc1 = true
17616 }
17617 } else {
17618 yyhl1 := yyl1 > 0
17619 var yyrl1 int
17620 _ = yyrl1
17621 if yyhl1 {
17622 if yyl1 > cap(yyv1) {
17623 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
17624 if yyrl1 <= cap(yyv1) {
17625 yyv1 = yyv1[:yyrl1]
17626 } else {
17627 yyv1 = make([]*int64, yyrl1)
17628 }
17629 yyc1 = true
17630 } else if yyl1 != len(yyv1) {
17631 yyv1 = yyv1[:yyl1]
17632 yyc1 = true
17633 }
17634 }
17635 var yyj1 int
17636 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination
17637 if yyj1 == 0 && yyv1 == nil {
17638 if yyhl1 {
17639 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
17640 } else {
17641 yyrl1 = 8
17642 }
17643 yyv1 = make([]*int64, yyrl1)
17644 yyc1 = true
17645 }
17646 yyh1.ElemContainerState(yyj1)
17647 var yydb1 bool
17648 if yyj1 >= len(yyv1) {
17649 yyv1 = append(yyv1, nil)
17650 yyc1 = true
17651 }
17652 if yydb1 {
17653 z.DecSwallow()
17654 } else {
17655 if r.TryNil() {
17656 yyv1[yyj1] = nil
17657 } else {
17658 if yyv1[yyj1] == nil {
17659 yyv1[yyj1] = new(int64)
17660 }
17661 *yyv1[yyj1] = (int64)(r.DecodeInt64())
17662 }
17663 }
17664 }
17665 if yyj1 < len(yyv1) {
17666 yyv1 = yyv1[:yyj1]
17667 yyc1 = true
17668 } else if yyj1 == 0 && yyv1 == nil {
17669 yyv1 = []*int64{}
17670 yyc1 = true
17671 }
17672 }
17673 yyh1.End()
17674 if yyc1 {
17675 *v = yyv1
17676 }
17677 }
17678
17679 func (x codecSelfer19780) encSlicestringUint64T(v []stringUint64T, e *Encoder) {
17680 var h codecSelfer19780
17681 z, r := GenHelper().Encoder(e)
17682 _, _, _ = h, z, r
17683 if v == nil {
17684 r.EncodeNil()
17685 return
17686 }
17687 z.EncWriteArrayStart(len(v))
17688 for yyv1 := range v {
17689 z.EncWriteArrayElem()
17690 yy2 := &v[yyv1]
17691 if yyxt3 := z.Extension(yy2); yyxt3 != nil {
17692 z.EncExtension(yy2, yyxt3)
17693 } else {
17694 yy2.CodecEncodeSelf(e)
17695 }
17696 }
17697 z.EncWriteArrayEnd()
17698 }
17699
17700 func (x codecSelfer19780) decSlicestringUint64T(v *[]stringUint64T, d *Decoder) {
17701 var h codecSelfer19780
17702 z, r := GenHelper().Decoder(d)
17703 _, _, _ = h, z, r
17704
17705 yyv1 := *v
17706 yyh1, yyl1 := z.DecSliceHelperStart()
17707 var yyc1 bool
17708 _ = yyc1
17709 if yyh1.IsNil {
17710 if yyv1 != nil {
17711 yyv1 = nil
17712 yyc1 = true
17713 }
17714 } else if yyl1 == 0 {
17715 if yyv1 == nil {
17716 yyv1 = []stringUint64T{}
17717 yyc1 = true
17718 } else if len(yyv1) != 0 {
17719 yyv1 = yyv1[:0]
17720 yyc1 = true
17721 }
17722 } else {
17723 yyhl1 := yyl1 > 0
17724 var yyrl1 int
17725 _ = yyrl1
17726 if yyhl1 {
17727 if yyl1 > cap(yyv1) {
17728 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
17729 if yyrl1 <= cap(yyv1) {
17730 yyv1 = yyv1[:yyrl1]
17731 } else {
17732 yyv1 = make([]stringUint64T, yyrl1)
17733 }
17734 yyc1 = true
17735 } else if yyl1 != len(yyv1) {
17736 yyv1 = yyv1[:yyl1]
17737 yyc1 = true
17738 }
17739 }
17740 var yyj1 int
17741 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination
17742 if yyj1 == 0 && yyv1 == nil {
17743 if yyhl1 {
17744 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
17745 } else {
17746 yyrl1 = 8
17747 }
17748 yyv1 = make([]stringUint64T, yyrl1)
17749 yyc1 = true
17750 }
17751 yyh1.ElemContainerState(yyj1)
17752 var yydb1 bool
17753 if yyj1 >= len(yyv1) {
17754 yyv1 = append(yyv1, stringUint64T{})
17755 yyc1 = true
17756 }
17757 if yydb1 {
17758 z.DecSwallow()
17759 } else {
17760 if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil {
17761 z.DecExtension(&yyv1[yyj1], yyxt3)
17762 } else {
17763 yyv1[yyj1].CodecDecodeSelf(d)
17764 }
17765 }
17766 }
17767 if yyj1 < len(yyv1) {
17768 yyv1 = yyv1[:yyj1]
17769 yyc1 = true
17770 } else if yyj1 == 0 && yyv1 == nil {
17771 yyv1 = []stringUint64T{}
17772 yyc1 = true
17773 }
17774 }
17775 yyh1.End()
17776 if yyc1 {
17777 *v = yyv1
17778 }
17779 }
17780
17781 func (x codecSelfer19780) encMapstringPtrtostringUint64T(v map[string]*stringUint64T, e *Encoder) {
17782 var h codecSelfer19780
17783 z, r := GenHelper().Encoder(e)
17784 _, _, _ = h, z, r
17785 if v == nil {
17786 r.EncodeNil()
17787 } else if z.EncBasicHandle().Canonical {
17788 yys1 := make([]string, 0, len(v))
17789 for k, _ := range v {
17790 yys1 = append(yys1, string(k))
17791 }
17792 sort.Sort(codecSelfer19780stringSlice(yys1))
17793 z.EncWriteMapStart(len(v))
17794 for _, yyv1 := range yys1 {
17795 z.EncWriteMapElemKey()
17796 r.EncodeString(yyv1)
17797 z.EncWriteMapElemValue()
17798 yye1 := v[string(yyv1)]
17799 if yye1 == nil {
17800 r.EncodeNil()
17801 } else {
17802 if yyxt2 := z.Extension(yye1); yyxt2 != nil {
17803 z.EncExtension(yye1, yyxt2)
17804 } else {
17805 yye1.CodecEncodeSelf(e)
17806 }
17807 }
17808 }
17809 z.EncWriteMapEnd()
17810 } else {
17811 z.EncWriteMapStart(len(v))
17812 for yyk1, yyv1 := range v {
17813 z.EncWriteMapElemKey()
17814 r.EncodeString(string(yyk1))
17815 z.EncWriteMapElemValue()
17816 if yyv1 == nil {
17817 r.EncodeNil()
17818 } else {
17819 if yyxt4 := z.Extension(yyv1); yyxt4 != nil {
17820 z.EncExtension(yyv1, yyxt4)
17821 } else {
17822 yyv1.CodecEncodeSelf(e)
17823 }
17824 }
17825 }
17826 z.EncWriteMapEnd()
17827 }
17828 }
17829
17830 func (x codecSelfer19780) decMapstringPtrtostringUint64T(v *map[string]*stringUint64T, d *Decoder) {
17831 var h codecSelfer19780
17832 z, r := GenHelper().Decoder(d)
17833 _, _, _ = h, z, r
17834
17835 yyv1 := *v
17836 yyl1 := z.DecReadMapStart()
17837 if yyl1 == codecSelferDecContainerLenNil19780 {
17838 *v = nil
17839 } else {
17840 if yyv1 == nil {
17841 yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
17842 yyv1 = make(map[string]*stringUint64T, yyrl1)
17843 *v = yyv1
17844 }
17845 var yymk1 string
17846 var yymv1 *stringUint64T
17847 var yymg1, yymdn1, yyms1, yymok1 bool
17848 if z.DecBasicHandle().MapValueReset {
17849 yymg1 = true
17850 }
17851 if yyl1 != 0 {
17852 yyhl1 := yyl1 > 0
17853 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ {
17854 z.DecReadMapElemKey()
17855 yymk1 = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
17856 yyms1 = true
17857 if yymg1 {
17858 yymv1, yymok1 = yyv1[yymk1]
17859 if yymok1 {
17860 yyms1 = false
17861 }
17862 } else {
17863 yymv1 = nil
17864 }
17865 z.DecReadMapElemValue()
17866 yymdn1 = false
17867 if r.TryNil() {
17868 yymdn1 = true
17869 } else {
17870 if yymv1 == nil {
17871 yymv1 = new(stringUint64T)
17872 }
17873 if yyxt4 := z.Extension(yymv1); yyxt4 != nil {
17874 z.DecExtension(yymv1, yyxt4)
17875 } else {
17876 yymv1.CodecDecodeSelf(d)
17877 }
17878 }
17879 if yymdn1 {
17880 yyv1[yymk1] = nil
17881 } else if yyms1 {
17882 yyv1[yymk1] = yymv1
17883 }
17884 }
17885 } // else len==0: leave as-is (do not clear map entries)
17886 z.DecReadMapEnd()
17887 }
17888 }
17889
17890 func (x codecSelfer19780) encMapstringPtrtoTestStruc(v map[string]*TestStruc, e *Encoder) {
17891 var h codecSelfer19780
17892 z, r := GenHelper().Encoder(e)
17893 _, _, _ = h, z, r
17894 if v == nil {
17895 r.EncodeNil()
17896 } else if z.EncBasicHandle().Canonical {
17897 yys1 := make([]string, 0, len(v))
17898 for k, _ := range v {
17899 yys1 = append(yys1, string(k))
17900 }
17901 sort.Sort(codecSelfer19780stringSlice(yys1))
17902 z.EncWriteMapStart(len(v))
17903 for _, yyv1 := range yys1 {
17904 z.EncWriteMapElemKey()
17905 r.EncodeString(yyv1)
17906 z.EncWriteMapElemValue()
17907 yye1 := v[string(yyv1)]
17908 if yye1 == nil {
17909 r.EncodeNil()
17910 } else {
17911 if yyxt2 := z.Extension(yye1); yyxt2 != nil {
17912 z.EncExtension(yye1, yyxt2)
17913 } else {
17914 yye1.CodecEncodeSelf(e)
17915 }
17916 }
17917 }
17918 z.EncWriteMapEnd()
17919 } else {
17920 z.EncWriteMapStart(len(v))
17921 for yyk1, yyv1 := range v {
17922 z.EncWriteMapElemKey()
17923 r.EncodeString(string(yyk1))
17924 z.EncWriteMapElemValue()
17925 if yyv1 == nil {
17926 r.EncodeNil()
17927 } else {
17928 if yyxt4 := z.Extension(yyv1); yyxt4 != nil {
17929 z.EncExtension(yyv1, yyxt4)
17930 } else {
17931 yyv1.CodecEncodeSelf(e)
17932 }
17933 }
17934 }
17935 z.EncWriteMapEnd()
17936 }
17937 }
17938
17939 func (x codecSelfer19780) decMapstringPtrtoTestStruc(v *map[string]*TestStruc, d *Decoder) {
17940 var h codecSelfer19780
17941 z, r := GenHelper().Decoder(d)
17942 _, _, _ = h, z, r
17943
17944 yyv1 := *v
17945 yyl1 := z.DecReadMapStart()
17946 if yyl1 == codecSelferDecContainerLenNil19780 {
17947 *v = nil
17948 } else {
17949 if yyv1 == nil {
17950 yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
17951 yyv1 = make(map[string]*TestStruc, yyrl1)
17952 *v = yyv1
17953 }
17954 var yymk1 string
17955 var yymv1 *TestStruc
17956 var yymg1, yymdn1, yyms1, yymok1 bool
17957 if z.DecBasicHandle().MapValueReset {
17958 yymg1 = true
17959 }
17960 if yyl1 != 0 {
17961 yyhl1 := yyl1 > 0
17962 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ {
17963 z.DecReadMapElemKey()
17964 yymk1 = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
17965 yyms1 = true
17966 if yymg1 {
17967 yymv1, yymok1 = yyv1[yymk1]
17968 if yymok1 {
17969 yyms1 = false
17970 }
17971 } else {
17972 yymv1 = nil
17973 }
17974 z.DecReadMapElemValue()
17975 yymdn1 = false
17976 if r.TryNil() {
17977 yymdn1 = true
17978 } else {
17979 if yymv1 == nil {
17980 yymv1 = new(TestStruc)
17981 }
17982 if yyxt4 := z.Extension(yymv1); yyxt4 != nil {
17983 z.DecExtension(yymv1, yyxt4)
17984 } else {
17985 yymv1.CodecDecodeSelf(d)
17986 }
17987 }
17988 if yymdn1 {
17989 yyv1[yymk1] = nil
17990 } else if yyms1 {
17991 yyv1[yymk1] = yymv1
17992 }
17993 }
17994 } // else len==0: leave as-is (do not clear map entries)
17995 z.DecReadMapEnd()
17996 }
17997 }
17998
17999 func (x codecSelfer19780) encMapstringTestStruc(v map[string]TestStruc, e *Encoder) {
18000 var h codecSelfer19780
18001 z, r := GenHelper().Encoder(e)
18002 _, _, _ = h, z, r
18003 if v == nil {
18004 r.EncodeNil()
18005 } else if z.EncBasicHandle().Canonical {
18006 yys1 := make([]string, 0, len(v))
18007 for k, _ := range v {
18008 yys1 = append(yys1, string(k))
18009 }
18010 sort.Sort(codecSelfer19780stringSlice(yys1))
18011 z.EncWriteMapStart(len(v))
18012 for _, yyv1 := range yys1 {
18013 z.EncWriteMapElemKey()
18014 r.EncodeString(yyv1)
18015 z.EncWriteMapElemValue()
18016 yye1 := v[string(yyv1)]
18017 yy2 := &yye1
18018 if yyxt3 := z.Extension(yy2); yyxt3 != nil {
18019 z.EncExtension(yy2, yyxt3)
18020 } else {
18021 yy2.CodecEncodeSelf(e)
18022 }
18023 }
18024 z.EncWriteMapEnd()
18025 } else {
18026 z.EncWriteMapStart(len(v))
18027 for yyk1, yyv1 := range v {
18028 z.EncWriteMapElemKey()
18029 r.EncodeString(string(yyk1))
18030 z.EncWriteMapElemValue()
18031 yy5 := &yyv1
18032 if yyxt6 := z.Extension(yy5); yyxt6 != nil {
18033 z.EncExtension(yy5, yyxt6)
18034 } else {
18035 yy5.CodecEncodeSelf(e)
18036 }
18037 }
18038 z.EncWriteMapEnd()
18039 }
18040 }
18041
18042 func (x codecSelfer19780) decMapstringTestStruc(v *map[string]TestStruc, d *Decoder) {
18043 var h codecSelfer19780
18044 z, r := GenHelper().Decoder(d)
18045 _, _, _ = h, z, r
18046
18047 yyv1 := *v
18048 yyl1 := z.DecReadMapStart()
18049 if yyl1 == codecSelferDecContainerLenNil19780 {
18050 *v = nil
18051 } else {
18052 if yyv1 == nil {
18053 yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1384)
18054 yyv1 = make(map[string]TestStruc, yyrl1)
18055 *v = yyv1
18056 }
18057 var yymk1 string
18058 var yymv1 TestStruc
18059 var yymg1, yymdn1 bool
18060 if z.DecBasicHandle().MapValueReset {
18061 yymg1 = true
18062 }
18063 if yyl1 != 0 {
18064 yyhl1 := yyl1 > 0
18065 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ {
18066 z.DecReadMapElemKey()
18067 yymk1 = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
18068 if yymg1 {
18069 yymv1 = yyv1[yymk1]
18070 } else {
18071 yymv1 = TestStruc{}
18072 }
18073 z.DecReadMapElemValue()
18074 yymdn1 = false
18075 if yyxt4 := z.Extension(yymv1); yyxt4 != nil {
18076 z.DecExtension(&yymv1, yyxt4)
18077 } else {
18078 yymv1.CodecDecodeSelf(d)
18079 }
18080 if yymdn1 {
18081 yyv1[yymk1] = TestStruc{}
18082 } else {
18083 yyv1[yymk1] = yymv1
18084 }
18085 }
18086 } // else len==0: leave as-is (do not clear map entries)
18087 z.DecReadMapEnd()
18088 }
18089 }
18090
18091 func (x codecSelfer19780) encSlicePtrtoTestStruc(v []*TestStruc, e *Encoder) {
18092 var h codecSelfer19780
18093 z, r := GenHelper().Encoder(e)
18094 _, _, _ = h, z, r
18095 if v == nil {
18096 r.EncodeNil()
18097 return
18098 }
18099 z.EncWriteArrayStart(len(v))
18100 for yyv1 := range v {
18101 z.EncWriteArrayElem()
18102 if v[yyv1] == nil {
18103 r.EncodeNil()
18104 } else {
18105 if yyxt2 := z.Extension(v[yyv1]); yyxt2 != nil {
18106 z.EncExtension(v[yyv1], yyxt2)
18107 } else {
18108 v[yyv1].CodecEncodeSelf(e)
18109 }
18110 }
18111 }
18112 z.EncWriteArrayEnd()
18113 }
18114
18115 func (x codecSelfer19780) decSlicePtrtoTestStruc(v *[]*TestStruc, d *Decoder) {
18116 var h codecSelfer19780
18117 z, r := GenHelper().Decoder(d)
18118 _, _, _ = h, z, r
18119
18120 yyv1 := *v
18121 yyh1, yyl1 := z.DecSliceHelperStart()
18122 var yyc1 bool
18123 _ = yyc1
18124 if yyh1.IsNil {
18125 if yyv1 != nil {
18126 yyv1 = nil
18127 yyc1 = true
18128 }
18129 } else if yyl1 == 0 {
18130 if yyv1 == nil {
18131 yyv1 = []*TestStruc{}
18132 yyc1 = true
18133 } else if len(yyv1) != 0 {
18134 yyv1 = yyv1[:0]
18135 yyc1 = true
18136 }
18137 } else {
18138 yyhl1 := yyl1 > 0
18139 var yyrl1 int
18140 _ = yyrl1
18141 if yyhl1 {
18142 if yyl1 > cap(yyv1) {
18143 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
18144 if yyrl1 <= cap(yyv1) {
18145 yyv1 = yyv1[:yyrl1]
18146 } else {
18147 yyv1 = make([]*TestStruc, yyrl1)
18148 }
18149 yyc1 = true
18150 } else if yyl1 != len(yyv1) {
18151 yyv1 = yyv1[:yyl1]
18152 yyc1 = true
18153 }
18154 }
18155 var yyj1 int
18156 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination
18157 if yyj1 == 0 && yyv1 == nil {
18158 if yyhl1 {
18159 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
18160 } else {
18161 yyrl1 = 8
18162 }
18163 yyv1 = make([]*TestStruc, yyrl1)
18164 yyc1 = true
18165 }
18166 yyh1.ElemContainerState(yyj1)
18167 var yydb1 bool
18168 if yyj1 >= len(yyv1) {
18169 yyv1 = append(yyv1, nil)
18170 yyc1 = true
18171 }
18172 if yydb1 {
18173 z.DecSwallow()
18174 } else {
18175 if r.TryNil() {
18176 yyv1[yyj1] = nil
18177 } else {
18178 if yyv1[yyj1] == nil {
18179 yyv1[yyj1] = new(TestStruc)
18180 }
18181 if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil {
18182 z.DecExtension(yyv1[yyj1], yyxt3)
18183 } else {
18184 yyv1[yyj1].CodecDecodeSelf(d)
18185 }
18186 }
18187 }
18188 }
18189 if yyj1 < len(yyv1) {
18190 yyv1 = yyv1[:yyj1]
18191 yyc1 = true
18192 } else if yyj1 == 0 && yyv1 == nil {
18193 yyv1 = []*TestStruc{}
18194 yyc1 = true
18195 }
18196 }
18197 yyh1.End()
18198 if yyc1 {
18199 *v = yyv1
18200 }
18201 }
18202
18203 func (x codecSelfer19780) encChanstring(v chan string, e *Encoder) {
18204 var h codecSelfer19780
18205 z, r := GenHelper().Encoder(e)
18206 _, _, _ = h, z, r
18207 if v == nil {
18208 r.EncodeNil()
18209 return
18210 }
18211 if v == nil {
18212 r.EncodeNil()
18213 } else {
18214 var sch1 []string
18215
18216 Lsch1:
18217 switch timeout1 := z.EncBasicHandle().ChanRecvTimeout; {
18218 case timeout1 == 0: // only consume available
18219 for {
18220 select {
18221 case b1 := <-v:
18222 sch1 = append(sch1, b1)
18223 default:
18224 break Lsch1
18225 }
18226 }
18227 case timeout1 > 0: // consume until timeout
18228 tt1 := time.NewTimer(timeout1)
18229 for {
18230 select {
18231 case b1 := <-v:
18232 sch1 = append(sch1, b1)
18233 case <-tt1.C:
18234 // close(tt.C)
18235 break Lsch1
18236 }
18237 }
18238 default: // consume until close
18239 for b1 := range v {
18240 sch1 = append(sch1, b1)
18241 }
18242 }
18243 z.EncWriteArrayStart(len(sch1))
18244 for yyv1 := range sch1 {
18245 z.EncWriteArrayElem()
18246 r.EncodeString(string(sch1[yyv1]))
18247 }
18248 z.EncWriteArrayEnd()
18249 }
18250 }
18251
18252 func (x codecSelfer19780) decChanstring(v *chan string, d *Decoder) {
18253 var h codecSelfer19780
18254 z, r := GenHelper().Decoder(d)
18255 _, _, _ = h, z, r
18256
18257 yyv1 := *v
18258 yyh1, yyl1 := z.DecSliceHelperStart()
18259 var yyc1 bool
18260 _ = yyc1
18261 if yyh1.IsNil {
18262 if yyv1 != nil {
18263 yyv1 = nil
18264 yyc1 = true
18265 }
18266 } else if yyl1 == 0 {
18267 if yyv1 == nil {
18268 yyv1 = make(chan string, 0)
18269 yyc1 = true
18270 }
18271 } else {
18272 yyhl1 := yyl1 > 0
18273 var yyrl1 int
18274 _ = yyrl1
18275 var yyj1 int
18276 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination
18277 if yyj1 == 0 && yyv1 == nil {
18278 if yyhl1 {
18279 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
18280 } else {
18281 yyrl1 = 64
18282 }
18283 yyv1 = make(chan string, yyrl1)
18284 yyc1 = true
18285 }
18286 yyh1.ElemContainerState(yyj1)
18287 var yyvcx1 string
18288 yyvcx1 = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
18289 yyv1 <- yyvcx1
18290 }
18291 }
18292 yyh1.End()
18293 if yyc1 {
18294 *v = yyv1
18295 }
18296 }
18297
18298 func (x codecSelfer19780) encMapboolc3RydWN0IHt9(v map[bool]struct{}, e *Encoder) {
18299 var h codecSelfer19780
18300 z, r := GenHelper().Encoder(e)
18301 _, _, _ = h, z, r
18302 if v == nil {
18303 r.EncodeNil()
18304 } else if z.EncBasicHandle().Canonical {
18305 z.EncEncodeMapNonNil(v)
18306 } else {
18307 z.EncWriteMapStart(len(v))
18308 for yyk1, yyv1 := range v {
18309 z.EncWriteMapElemKey()
18310 r.EncodeBool(bool(yyk1))
18311 z.EncWriteMapElemValue()
18312 yy3 := &yyv1
18313 z.EncFallback(yy3)
18314 }
18315 z.EncWriteMapEnd()
18316 }
18317 }
18318
18319 func (x codecSelfer19780) decMapboolc3RydWN0IHt9(v *map[bool]struct{}, d *Decoder) {
18320 var h codecSelfer19780
18321 z, r := GenHelper().Decoder(d)
18322 _, _, _ = h, z, r
18323
18324 yyv1 := *v
18325 yyl1 := z.DecReadMapStart()
18326 if yyl1 == codecSelferDecContainerLenNil19780 {
18327 *v = nil
18328 } else {
18329 if yyv1 == nil {
18330 yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
18331 yyv1 = make(map[bool]struct{}, yyrl1)
18332 *v = yyv1
18333 }
18334 var yymk1 bool
18335 var yymv1 struct{}
18336 var yymg1, yymdn1 bool
18337 if z.DecBasicHandle().MapValueReset {
18338 yymg1 = true
18339 }
18340 if yyl1 != 0 {
18341 yyhl1 := yyl1 > 0
18342 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ {
18343 z.DecReadMapElemKey()
18344 yymk1 = (bool)(r.DecodeBool())
18345 if yymg1 {
18346 yymv1 = yyv1[yymk1]
18347 } else {
18348 yymv1 = struct{}{}
18349 }
18350 z.DecReadMapElemValue()
18351 yymdn1 = false
18352 z.DecFallback(&yymv1, false)
18353 if yymdn1 {
18354 yyv1[yymk1] = struct{}{}
18355 } else {
18356 yyv1[yymk1] = yymv1
18357 }
18358 }
18359 } // else len==0: leave as-is (do not clear map entries)
18360 z.DecReadMapEnd()
18361 }
18362 }
18363
18364 func (x codecSelfer19780) encMapuint8c3RydWN0IHt9(v map[uint8]struct{}, e *Encoder) {
18365 var h codecSelfer19780
18366 z, r := GenHelper().Encoder(e)
18367 _, _, _ = h, z, r
18368 if v == nil {
18369 r.EncodeNil()
18370 } else if z.EncBasicHandle().Canonical {
18371 yys1 := make([]uint64, 0, len(v))
18372 for k, _ := range v {
18373 yys1 = append(yys1, uint64(k))
18374 }
18375 sort.Sort(codecSelfer19780uint64Slice(yys1))
18376 z.EncWriteMapStart(len(v))
18377 for _, yyv1 := range yys1 {
18378 z.EncWriteMapElemKey()
18379 r.EncodeUint(yyv1)
18380 z.EncWriteMapElemValue()
18381 yye1 := v[uint8(yyv1)]
18382 yy2 := &yye1
18383 z.EncFallback(yy2)
18384 }
18385 z.EncWriteMapEnd()
18386 } else {
18387 z.EncWriteMapStart(len(v))
18388 for yyk1, yyv1 := range v {
18389 z.EncWriteMapElemKey()
18390 r.EncodeUint(uint64(yyk1))
18391 z.EncWriteMapElemValue()
18392 yy5 := &yyv1
18393 z.EncFallback(yy5)
18394 }
18395 z.EncWriteMapEnd()
18396 }
18397 }
18398
18399 func (x codecSelfer19780) decMapuint8c3RydWN0IHt9(v *map[uint8]struct{}, d *Decoder) {
18400 var h codecSelfer19780
18401 z, r := GenHelper().Decoder(d)
18402 _, _, _ = h, z, r
18403
18404 yyv1 := *v
18405 yyl1 := z.DecReadMapStart()
18406 if yyl1 == codecSelferDecContainerLenNil19780 {
18407 *v = nil
18408 } else {
18409 if yyv1 == nil {
18410 yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
18411 yyv1 = make(map[uint8]struct{}, yyrl1)
18412 *v = yyv1
18413 }
18414 var yymk1 uint8
18415 var yymv1 struct{}
18416 var yymg1, yymdn1 bool
18417 if z.DecBasicHandle().MapValueReset {
18418 yymg1 = true
18419 }
18420 if yyl1 != 0 {
18421 yyhl1 := yyl1 > 0
18422 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ {
18423 z.DecReadMapElemKey()
18424 yymk1 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
18425 if yymg1 {
18426 yymv1 = yyv1[yymk1]
18427 } else {
18428 yymv1 = struct{}{}
18429 }
18430 z.DecReadMapElemValue()
18431 yymdn1 = false
18432 z.DecFallback(&yymv1, false)
18433 if yymdn1 {
18434 yyv1[yymk1] = struct{}{}
18435 } else {
18436 yyv1[yymk1] = yymv1
18437 }
18438 }
18439 } // else len==0: leave as-is (do not clear map entries)
18440 z.DecReadMapEnd()
18441 }
18442 }
18443
18444 func (x codecSelfer19780) encMapuint8stringUint64T(v map[uint8]stringUint64T, e *Encoder) {
18445 var h codecSelfer19780
18446 z, r := GenHelper().Encoder(e)
18447 _, _, _ = h, z, r
18448 if v == nil {
18449 r.EncodeNil()
18450 } else if z.EncBasicHandle().Canonical {
18451 yys1 := make([]uint64, 0, len(v))
18452 for k, _ := range v {
18453 yys1 = append(yys1, uint64(k))
18454 }
18455 sort.Sort(codecSelfer19780uint64Slice(yys1))
18456 z.EncWriteMapStart(len(v))
18457 for _, yyv1 := range yys1 {
18458 z.EncWriteMapElemKey()
18459 r.EncodeUint(yyv1)
18460 z.EncWriteMapElemValue()
18461 yye1 := v[uint8(yyv1)]
18462 yy2 := &yye1
18463 if yyxt3 := z.Extension(yy2); yyxt3 != nil {
18464 z.EncExtension(yy2, yyxt3)
18465 } else {
18466 yy2.CodecEncodeSelf(e)
18467 }
18468 }
18469 z.EncWriteMapEnd()
18470 } else {
18471 z.EncWriteMapStart(len(v))
18472 for yyk1, yyv1 := range v {
18473 z.EncWriteMapElemKey()
18474 r.EncodeUint(uint64(yyk1))
18475 z.EncWriteMapElemValue()
18476 yy5 := &yyv1
18477 if yyxt6 := z.Extension(yy5); yyxt6 != nil {
18478 z.EncExtension(yy5, yyxt6)
18479 } else {
18480 yy5.CodecEncodeSelf(e)
18481 }
18482 }
18483 z.EncWriteMapEnd()
18484 }
18485 }
18486
18487 func (x codecSelfer19780) decMapuint8stringUint64T(v *map[uint8]stringUint64T, d *Decoder) {
18488 var h codecSelfer19780
18489 z, r := GenHelper().Decoder(d)
18490 _, _, _ = h, z, r
18491
18492 yyv1 := *v
18493 yyl1 := z.DecReadMapStart()
18494 if yyl1 == codecSelferDecContainerLenNil19780 {
18495 *v = nil
18496 } else {
18497 if yyv1 == nil {
18498 yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 25)
18499 yyv1 = make(map[uint8]stringUint64T, yyrl1)
18500 *v = yyv1
18501 }
18502 var yymk1 uint8
18503 var yymv1 stringUint64T
18504 var yymg1, yymdn1 bool
18505 if z.DecBasicHandle().MapValueReset {
18506 yymg1 = true
18507 }
18508 if yyl1 != 0 {
18509 yyhl1 := yyl1 > 0
18510 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ {
18511 z.DecReadMapElemKey()
18512 yymk1 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
18513 if yymg1 {
18514 yymv1 = yyv1[yymk1]
18515 } else {
18516 yymv1 = stringUint64T{}
18517 }
18518 z.DecReadMapElemValue()
18519 yymdn1 = false
18520 if yyxt4 := z.Extension(yymv1); yyxt4 != nil {
18521 z.DecExtension(&yymv1, yyxt4)
18522 } else {
18523 yymv1.CodecDecodeSelf(d)
18524 }
18525 if yymdn1 {
18526 yyv1[yymk1] = stringUint64T{}
18527 } else {
18528 yyv1[yymk1] = yymv1
18529 }
18530 }
18531 } // else len==0: leave as-is (do not clear map entries)
18532 z.DecReadMapEnd()
18533 }
18534 }
18535
18536 func (x codecSelfer19780) encMapPtrtostringSlicestring(v map[*string][]string, e *Encoder) {
18537 var h codecSelfer19780
18538 z, r := GenHelper().Encoder(e)
18539 _, _, _ = h, z, r
18540 if v == nil {
18541 r.EncodeNil()
18542 } else if z.EncBasicHandle().Canonical {
18543 z.EncEncodeMapNonNil(v)
18544 } else {
18545 z.EncWriteMapStart(len(v))
18546 for yyk1, yyv1 := range v {
18547 z.EncWriteMapElemKey()
18548 if yyk1 == nil {
18549 r.EncodeNil()
18550 } else {
18551 yy2 := *yyk1
18552 r.EncodeString(string(yy2))
18553 }
18554 z.EncWriteMapElemValue()
18555 if yyv1 == nil {
18556 r.EncodeNil()
18557 } else {
18558 z.F.EncSliceStringV(yyv1, e)
18559 } // end block: if yyv1 slice == nil
18560 }
18561 z.EncWriteMapEnd()
18562 }
18563 }
18564
18565 func (x codecSelfer19780) decMapPtrtostringSlicestring(v *map[*string][]string, d *Decoder) {
18566 var h codecSelfer19780
18567 z, r := GenHelper().Decoder(d)
18568 _, _, _ = h, z, r
18569
18570 yyv1 := *v
18571 yyl1 := z.DecReadMapStart()
18572 if yyl1 == codecSelferDecContainerLenNil19780 {
18573 *v = nil
18574 } else {
18575 if yyv1 == nil {
18576 yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
18577 yyv1 = make(map[*string][]string, yyrl1)
18578 *v = yyv1
18579 }
18580 var yymk1 *string
18581 var yymv1 []string
18582 var yymg1, yymdn1 bool
18583 if z.DecBasicHandle().MapValueReset {
18584 yymg1 = true
18585 }
18586 if yyl1 != 0 {
18587 yyhl1 := yyl1 > 0
18588 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ {
18589 z.DecReadMapElemKey()
18590 if r.TryNil() {
18591 *yymk1 = ""
18592 } else {
18593 if yymk1 == nil {
18594 yymk1 = new(string)
18595 }
18596 *yymk1 = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
18597 }
18598 if yymg1 {
18599 yymv1 = yyv1[yymk1]
18600 } else {
18601 yymv1 = nil
18602 }
18603 z.DecReadMapElemValue()
18604 yymdn1 = false
18605 z.F.DecSliceStringX(&yymv1, d)
18606 if yymdn1 {
18607 yyv1[yymk1] = nil
18608 } else {
18609 yyv1[yymk1] = yymv1
18610 }
18611 }
18612 } // else len==0: leave as-is (do not clear map entries)
18613 z.DecReadMapEnd()
18614 }
18615 }
18616
18617 func (x codecSelfer19780) encMapPtrtouint64Slicestring(v map[*uint64][]string, e *Encoder) {
18618 var h codecSelfer19780
18619 z, r := GenHelper().Encoder(e)
18620 _, _, _ = h, z, r
18621 if v == nil {
18622 r.EncodeNil()
18623 } else if z.EncBasicHandle().Canonical {
18624 z.EncEncodeMapNonNil(v)
18625 } else {
18626 z.EncWriteMapStart(len(v))
18627 for yyk1, yyv1 := range v {
18628 z.EncWriteMapElemKey()
18629 if yyk1 == nil {
18630 r.EncodeNil()
18631 } else {
18632 yy2 := *yyk1
18633 r.EncodeUint(uint64(yy2))
18634 }
18635 z.EncWriteMapElemValue()
18636 if yyv1 == nil {
18637 r.EncodeNil()
18638 } else {
18639 z.F.EncSliceStringV(yyv1, e)
18640 } // end block: if yyv1 slice == nil
18641 }
18642 z.EncWriteMapEnd()
18643 }
18644 }
18645
18646 func (x codecSelfer19780) decMapPtrtouint64Slicestring(v *map[*uint64][]string, d *Decoder) {
18647 var h codecSelfer19780
18648 z, r := GenHelper().Decoder(d)
18649 _, _, _ = h, z, r
18650
18651 yyv1 := *v
18652 yyl1 := z.DecReadMapStart()
18653 if yyl1 == codecSelferDecContainerLenNil19780 {
18654 *v = nil
18655 } else {
18656 if yyv1 == nil {
18657 yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
18658 yyv1 = make(map[*uint64][]string, yyrl1)
18659 *v = yyv1
18660 }
18661 var yymk1 *uint64
18662 var yymv1 []string
18663 var yymg1, yymdn1 bool
18664 if z.DecBasicHandle().MapValueReset {
18665 yymg1 = true
18666 }
18667 if yyl1 != 0 {
18668 yyhl1 := yyl1 > 0
18669 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ {
18670 z.DecReadMapElemKey()
18671 if r.TryNil() {
18672 *yymk1 = 0
18673 } else {
18674 if yymk1 == nil {
18675 yymk1 = new(uint64)
18676 }
18677 *yymk1 = (uint64)(r.DecodeUint64())
18678 }
18679 if yymg1 {
18680 yymv1 = yyv1[yymk1]
18681 } else {
18682 yymv1 = nil
18683 }
18684 z.DecReadMapElemValue()
18685 yymdn1 = false
18686 z.F.DecSliceStringX(&yymv1, d)
18687 if yymdn1 {
18688 yyv1[yymk1] = nil
18689 } else {
18690 yyv1[yymk1] = yymv1
18691 }
18692 }
18693 } // else len==0: leave as-is (do not clear map entries)
18694 z.DecReadMapEnd()
18695 }
18696 }
18697
18698 func (x codecSelfer19780) encMapstringMapuint64stringUint64T(v map[string]map[uint64]stringUint64T, e *Encoder) {
18699 var h codecSelfer19780
18700 z, r := GenHelper().Encoder(e)
18701 _, _, _ = h, z, r
18702 if v == nil {
18703 r.EncodeNil()
18704 } else if z.EncBasicHandle().Canonical {
18705 yys1 := make([]string, 0, len(v))
18706 for k, _ := range v {
18707 yys1 = append(yys1, string(k))
18708 }
18709 sort.Sort(codecSelfer19780stringSlice(yys1))
18710 z.EncWriteMapStart(len(v))
18711 for _, yyv1 := range yys1 {
18712 z.EncWriteMapElemKey()
18713 r.EncodeString(yyv1)
18714 z.EncWriteMapElemValue()
18715 yye1 := v[string(yyv1)]
18716 if yye1 == nil {
18717 r.EncodeNil()
18718 } else {
18719 h.encMapuint64stringUint64T((map[uint64]stringUint64T)(yye1), e)
18720 } // end block: if yye1 map == nil
18721 }
18722 z.EncWriteMapEnd()
18723 } else {
18724 z.EncWriteMapStart(len(v))
18725 for yyk1, yyv1 := range v {
18726 z.EncWriteMapElemKey()
18727 r.EncodeString(string(yyk1))
18728 z.EncWriteMapElemValue()
18729 if yyv1 == nil {
18730 r.EncodeNil()
18731 } else {
18732 h.encMapuint64stringUint64T((map[uint64]stringUint64T)(yyv1), e)
18733 } // end block: if yyv1 map == nil
18734 }
18735 z.EncWriteMapEnd()
18736 }
18737 }
18738
18739 func (x codecSelfer19780) decMapstringMapuint64stringUint64T(v *map[string]map[uint64]stringUint64T, d *Decoder) {
18740 var h codecSelfer19780
18741 z, r := GenHelper().Decoder(d)
18742 _, _, _ = h, z, r
18743
18744 yyv1 := *v
18745 yyl1 := z.DecReadMapStart()
18746 if yyl1 == codecSelferDecContainerLenNil19780 {
18747 *v = nil
18748 } else {
18749 if yyv1 == nil {
18750 yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
18751 yyv1 = make(map[string]map[uint64]stringUint64T, yyrl1)
18752 *v = yyv1
18753 }
18754 var yymk1 string
18755 var yymv1 map[uint64]stringUint64T
18756 var yymg1, yymdn1 bool
18757 if z.DecBasicHandle().MapValueReset {
18758 yymg1 = true
18759 }
18760 if yyl1 != 0 {
18761 yyhl1 := yyl1 > 0
18762 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ {
18763 z.DecReadMapElemKey()
18764 yymk1 = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
18765 if yymg1 {
18766 yymv1 = yyv1[yymk1]
18767 } else {
18768 yymv1 = nil
18769 }
18770 z.DecReadMapElemValue()
18771 yymdn1 = false
18772 h.decMapuint64stringUint64T((*map[uint64]stringUint64T)(&yymv1), d)
18773 if yymdn1 {
18774 yyv1[yymk1] = nil
18775 } else {
18776 yyv1[yymk1] = yymv1
18777 }
18778 }
18779 } // else len==0: leave as-is (do not clear map entries)
18780 z.DecReadMapEnd()
18781 }
18782 }
18783
18784 func (x codecSelfer19780) encMapuint64stringUint64T(v map[uint64]stringUint64T, e *Encoder) {
18785 var h codecSelfer19780
18786 z, r := GenHelper().Encoder(e)
18787 _, _, _ = h, z, r
18788 if v == nil {
18789 r.EncodeNil()
18790 } else if z.EncBasicHandle().Canonical {
18791 yys1 := make([]uint64, 0, len(v))
18792 for k, _ := range v {
18793 yys1 = append(yys1, uint64(k))
18794 }
18795 sort.Sort(codecSelfer19780uint64Slice(yys1))
18796 z.EncWriteMapStart(len(v))
18797 for _, yyv1 := range yys1 {
18798 z.EncWriteMapElemKey()
18799 r.EncodeUint(uint64(yyv1))
18800 z.EncWriteMapElemValue()
18801 yye1 := v[uint64(yyv1)]
18802 yy2 := &yye1
18803 if yyxt3 := z.Extension(yy2); yyxt3 != nil {
18804 z.EncExtension(yy2, yyxt3)
18805 } else {
18806 yy2.CodecEncodeSelf(e)
18807 }
18808 }
18809 z.EncWriteMapEnd()
18810 } else {
18811 z.EncWriteMapStart(len(v))
18812 for yyk1, yyv1 := range v {
18813 z.EncWriteMapElemKey()
18814 r.EncodeUint(uint64(yyk1))
18815 z.EncWriteMapElemValue()
18816 yy5 := &yyv1
18817 if yyxt6 := z.Extension(yy5); yyxt6 != nil {
18818 z.EncExtension(yy5, yyxt6)
18819 } else {
18820 yy5.CodecEncodeSelf(e)
18821 }
18822 }
18823 z.EncWriteMapEnd()
18824 }
18825 }
18826
18827 func (x codecSelfer19780) decMapuint64stringUint64T(v *map[uint64]stringUint64T, d *Decoder) {
18828 var h codecSelfer19780
18829 z, r := GenHelper().Decoder(d)
18830 _, _, _ = h, z, r
18831
18832 yyv1 := *v
18833 yyl1 := z.DecReadMapStart()
18834 if yyl1 == codecSelferDecContainerLenNil19780 {
18835 *v = nil
18836 } else {
18837 if yyv1 == nil {
18838 yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
18839 yyv1 = make(map[uint64]stringUint64T, yyrl1)
18840 *v = yyv1
18841 }
18842 var yymk1 uint64
18843 var yymv1 stringUint64T
18844 var yymg1, yymdn1 bool
18845 if z.DecBasicHandle().MapValueReset {
18846 yymg1 = true
18847 }
18848 if yyl1 != 0 {
18849 yyhl1 := yyl1 > 0
18850 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ {
18851 z.DecReadMapElemKey()
18852 yymk1 = (uint64)(r.DecodeUint64())
18853 if yymg1 {
18854 yymv1 = yyv1[yymk1]
18855 } else {
18856 yymv1 = stringUint64T{}
18857 }
18858 z.DecReadMapElemValue()
18859 yymdn1 = false
18860 if yyxt4 := z.Extension(yymv1); yyxt4 != nil {
18861 z.DecExtension(&yymv1, yyxt4)
18862 } else {
18863 yymv1.CodecDecodeSelf(d)
18864 }
18865 if yymdn1 {
18866 yyv1[yymk1] = stringUint64T{}
18867 } else {
18868 yyv1[yymk1] = yymv1
18869 }
18870 }
18871 } // else len==0: leave as-is (do not clear map entries)
18872 z.DecReadMapEnd()
18873 }
18874 }
18875
18876 func (x codecSelfer19780) encMapintwrapUint64Slice(v map[int]wrapUint64Slice, e *Encoder) {
18877 var h codecSelfer19780
18878 z, r := GenHelper().Encoder(e)
18879 _, _, _ = h, z, r
18880 if v == nil {
18881 r.EncodeNil()
18882 } else if z.EncBasicHandle().Canonical {
18883 yys1 := make([]int64, 0, len(v))
18884 for k, _ := range v {
18885 yys1 = append(yys1, int64(k))
18886 }
18887 sort.Sort(codecSelfer19780int64Slice(yys1))
18888 z.EncWriteMapStart(len(v))
18889 for _, yyv1 := range yys1 {
18890 z.EncWriteMapElemKey()
18891 r.EncodeInt(int64(yyv1))
18892 z.EncWriteMapElemValue()
18893 yye1 := v[int(yyv1)]
18894 if yyxt2 := z.Extension(yye1); yyxt2 != nil {
18895 z.EncExtension(yye1, yyxt2)
18896 } else {
18897 yye1.CodecEncodeSelf(e)
18898 }
18899 }
18900 z.EncWriteMapEnd()
18901 } else {
18902 z.EncWriteMapStart(len(v))
18903 for yyk1, yyv1 := range v {
18904 z.EncWriteMapElemKey()
18905 r.EncodeInt(int64(yyk1))
18906 z.EncWriteMapElemValue()
18907 if yyxt4 := z.Extension(yyv1); yyxt4 != nil {
18908 z.EncExtension(yyv1, yyxt4)
18909 } else {
18910 yyv1.CodecEncodeSelf(e)
18911 }
18912 }
18913 z.EncWriteMapEnd()
18914 }
18915 }
18916
18917 func (x codecSelfer19780) decMapintwrapUint64Slice(v *map[int]wrapUint64Slice, d *Decoder) {
18918 var h codecSelfer19780
18919 z, r := GenHelper().Decoder(d)
18920 _, _, _ = h, z, r
18921
18922 yyv1 := *v
18923 yyl1 := z.DecReadMapStart()
18924 if yyl1 == codecSelferDecContainerLenNil19780 {
18925 *v = nil
18926 } else {
18927 if yyv1 == nil {
18928 yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
18929 yyv1 = make(map[int]wrapUint64Slice, yyrl1)
18930 *v = yyv1
18931 }
18932 var yymk1 int
18933 var yymv1 wrapUint64Slice
18934 var yymg1, yymdn1 bool
18935 if z.DecBasicHandle().MapValueReset {
18936 yymg1 = true
18937 }
18938 if yyl1 != 0 {
18939 yyhl1 := yyl1 > 0
18940 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ {
18941 z.DecReadMapElemKey()
18942 yymk1 = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
18943 if yymg1 {
18944 yymv1 = yyv1[yymk1]
18945 } else {
18946 yymv1 = nil
18947 }
18948 z.DecReadMapElemValue()
18949 yymdn1 = false
18950 if yyxt4 := z.Extension(yymv1); yyxt4 != nil {
18951 z.DecExtension(&yymv1, yyxt4)
18952 } else {
18953 yymv1.CodecDecodeSelf(d)
18954 }
18955 if yymdn1 {
18956 yyv1[yymk1] = nil
18957 } else {
18958 yyv1[yymk1] = yymv1
18959 }
18960 }
18961 } // else len==0: leave as-is (do not clear map entries)
18962 z.DecReadMapEnd()
18963 }
18964 }
18965
18966 func (x codecSelfer19780) encMapfloat64wrapStringSlice(v map[float64]wrapStringSlice, e *Encoder) {
18967 var h codecSelfer19780
18968 z, r := GenHelper().Encoder(e)
18969 _, _, _ = h, z, r
18970 if v == nil {
18971 r.EncodeNil()
18972 } else if z.EncBasicHandle().Canonical {
18973 yys1 := make([]float64, 0, len(v))
18974 for k, _ := range v {
18975 yys1 = append(yys1, float64(k))
18976 }
18977 sort.Sort(codecSelfer19780float64Slice(yys1))
18978 z.EncWriteMapStart(len(v))
18979 for _, yyv1 := range yys1 {
18980 z.EncWriteMapElemKey()
18981 r.EncodeFloat64(yyv1)
18982 z.EncWriteMapElemValue()
18983 yye1 := v[float64(yyv1)]
18984 if yyxt2 := z.Extension(yye1); yyxt2 != nil {
18985 z.EncExtension(yye1, yyxt2)
18986 } else {
18987 yye1.CodecEncodeSelf(e)
18988 }
18989 }
18990 z.EncWriteMapEnd()
18991 } else {
18992 z.EncWriteMapStart(len(v))
18993 for yyk1, yyv1 := range v {
18994 z.EncWriteMapElemKey()
18995 r.EncodeFloat64(float64(yyk1))
18996 z.EncWriteMapElemValue()
18997 if yyxt4 := z.Extension(yyv1); yyxt4 != nil {
18998 z.EncExtension(yyv1, yyxt4)
18999 } else {
19000 yyv1.CodecEncodeSelf(e)
19001 }
19002 }
19003 z.EncWriteMapEnd()
19004 }
19005 }
19006
19007 func (x codecSelfer19780) decMapfloat64wrapStringSlice(v *map[float64]wrapStringSlice, d *Decoder) {
19008 var h codecSelfer19780
19009 z, r := GenHelper().Decoder(d)
19010 _, _, _ = h, z, r
19011
19012 yyv1 := *v
19013 yyl1 := z.DecReadMapStart()
19014 if yyl1 == codecSelferDecContainerLenNil19780 {
19015 *v = nil
19016 } else {
19017 if yyv1 == nil {
19018 yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
19019 yyv1 = make(map[float64]wrapStringSlice, yyrl1)
19020 *v = yyv1
19021 }
19022 var yymk1 float64
19023 var yymv1 wrapStringSlice
19024 var yymg1, yymdn1 bool
19025 if z.DecBasicHandle().MapValueReset {
19026 yymg1 = true
19027 }
19028 if yyl1 != 0 {
19029 yyhl1 := yyl1 > 0
19030 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ {
19031 z.DecReadMapElemKey()
19032 yymk1 = (float64)(r.DecodeFloat64())
19033 if yymg1 {
19034 yymv1 = yyv1[yymk1]
19035 } else {
19036 yymv1 = nil
19037 }
19038 z.DecReadMapElemValue()
19039 yymdn1 = false
19040 if yyxt4 := z.Extension(yymv1); yyxt4 != nil {
19041 z.DecExtension(&yymv1, yyxt4)
19042 } else {
19043 yymv1.CodecDecodeSelf(d)
19044 }
19045 if yymdn1 {
19046 yyv1[yymk1] = nil
19047 } else {
19048 yyv1[yymk1] = yymv1
19049 }
19050 }
19051 } // else len==0: leave as-is (do not clear map entries)
19052 z.DecReadMapEnd()
19053 }
19054 }
19055
19056 func (x codecSelfer19780) encMapfloat32wrapStringSlice(v map[float32]wrapStringSlice, e *Encoder) {
19057 var h codecSelfer19780
19058 z, r := GenHelper().Encoder(e)
19059 _, _, _ = h, z, r
19060 if v == nil {
19061 r.EncodeNil()
19062 } else if z.EncBasicHandle().Canonical {
19063 yys1 := make([]float64, 0, len(v))
19064 for k, _ := range v {
19065 yys1 = append(yys1, float64(k))
19066 }
19067 sort.Sort(codecSelfer19780float64Slice(yys1))
19068 z.EncWriteMapStart(len(v))
19069 for _, yyv1 := range yys1 {
19070 z.EncWriteMapElemKey()
19071 r.EncodeFloat32(float32(yyv1))
19072 z.EncWriteMapElemValue()
19073 yye1 := v[float32(yyv1)]
19074 if yyxt2 := z.Extension(yye1); yyxt2 != nil {
19075 z.EncExtension(yye1, yyxt2)
19076 } else {
19077 yye1.CodecEncodeSelf(e)
19078 }
19079 }
19080 z.EncWriteMapEnd()
19081 } else {
19082 z.EncWriteMapStart(len(v))
19083 for yyk1, yyv1 := range v {
19084 z.EncWriteMapElemKey()
19085 r.EncodeFloat32(float32(yyk1))
19086 z.EncWriteMapElemValue()
19087 if yyxt4 := z.Extension(yyv1); yyxt4 != nil {
19088 z.EncExtension(yyv1, yyxt4)
19089 } else {
19090 yyv1.CodecEncodeSelf(e)
19091 }
19092 }
19093 z.EncWriteMapEnd()
19094 }
19095 }
19096
19097 func (x codecSelfer19780) decMapfloat32wrapStringSlice(v *map[float32]wrapStringSlice, d *Decoder) {
19098 var h codecSelfer19780
19099 z, r := GenHelper().Decoder(d)
19100 _, _, _ = h, z, r
19101
19102 yyv1 := *v
19103 yyl1 := z.DecReadMapStart()
19104 if yyl1 == codecSelferDecContainerLenNil19780 {
19105 *v = nil
19106 } else {
19107 if yyv1 == nil {
19108 yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 28)
19109 yyv1 = make(map[float32]wrapStringSlice, yyrl1)
19110 *v = yyv1
19111 }
19112 var yymk1 float32
19113 var yymv1 wrapStringSlice
19114 var yymg1, yymdn1 bool
19115 if z.DecBasicHandle().MapValueReset {
19116 yymg1 = true
19117 }
19118 if yyl1 != 0 {
19119 yyhl1 := yyl1 > 0
19120 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ {
19121 z.DecReadMapElemKey()
19122 yymk1 = (float32)(z.DecDecodeFloat32())
19123 if yymg1 {
19124 yymv1 = yyv1[yymk1]
19125 } else {
19126 yymv1 = nil
19127 }
19128 z.DecReadMapElemValue()
19129 yymdn1 = false
19130 if yyxt4 := z.Extension(yymv1); yyxt4 != nil {
19131 z.DecExtension(&yymv1, yyxt4)
19132 } else {
19133 yymv1.CodecDecodeSelf(d)
19134 }
19135 if yymdn1 {
19136 yyv1[yymk1] = nil
19137 } else {
19138 yyv1[yymk1] = yymv1
19139 }
19140 }
19141 } // else len==0: leave as-is (do not clear map entries)
19142 z.DecReadMapEnd()
19143 }
19144 }
19145
19146 func (x codecSelfer19780) encMapuint64wrapStringSlice(v map[uint64]wrapStringSlice, e *Encoder) {
19147 var h codecSelfer19780
19148 z, r := GenHelper().Encoder(e)
19149 _, _, _ = h, z, r
19150 if v == nil {
19151 r.EncodeNil()
19152 } else if z.EncBasicHandle().Canonical {
19153 yys1 := make([]uint64, 0, len(v))
19154 for k, _ := range v {
19155 yys1 = append(yys1, uint64(k))
19156 }
19157 sort.Sort(codecSelfer19780uint64Slice(yys1))
19158 z.EncWriteMapStart(len(v))
19159 for _, yyv1 := range yys1 {
19160 z.EncWriteMapElemKey()
19161 r.EncodeUint(uint64(yyv1))
19162 z.EncWriteMapElemValue()
19163 yye1 := v[uint64(yyv1)]
19164 if yyxt2 := z.Extension(yye1); yyxt2 != nil {
19165 z.EncExtension(yye1, yyxt2)
19166 } else {
19167 yye1.CodecEncodeSelf(e)
19168 }
19169 }
19170 z.EncWriteMapEnd()
19171 } else {
19172 z.EncWriteMapStart(len(v))
19173 for yyk1, yyv1 := range v {
19174 z.EncWriteMapElemKey()
19175 r.EncodeUint(uint64(yyk1))
19176 z.EncWriteMapElemValue()
19177 if yyxt4 := z.Extension(yyv1); yyxt4 != nil {
19178 z.EncExtension(yyv1, yyxt4)
19179 } else {
19180 yyv1.CodecEncodeSelf(e)
19181 }
19182 }
19183 z.EncWriteMapEnd()
19184 }
19185 }
19186
19187 func (x codecSelfer19780) decMapuint64wrapStringSlice(v *map[uint64]wrapStringSlice, d *Decoder) {
19188 var h codecSelfer19780
19189 z, r := GenHelper().Decoder(d)
19190 _, _, _ = h, z, r
19191
19192 yyv1 := *v
19193 yyl1 := z.DecReadMapStart()
19194 if yyl1 == codecSelferDecContainerLenNil19780 {
19195 *v = nil
19196 } else {
19197 if yyv1 == nil {
19198 yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
19199 yyv1 = make(map[uint64]wrapStringSlice, yyrl1)
19200 *v = yyv1
19201 }
19202 var yymk1 uint64
19203 var yymv1 wrapStringSlice
19204 var yymg1, yymdn1 bool
19205 if z.DecBasicHandle().MapValueReset {
19206 yymg1 = true
19207 }
19208 if yyl1 != 0 {
19209 yyhl1 := yyl1 > 0
19210 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ {
19211 z.DecReadMapElemKey()
19212 yymk1 = (uint64)(r.DecodeUint64())
19213 if yymg1 {
19214 yymv1 = yyv1[yymk1]
19215 } else {
19216 yymv1 = nil
19217 }
19218 z.DecReadMapElemValue()
19219 yymdn1 = false
19220 if yyxt4 := z.Extension(yymv1); yyxt4 != nil {
19221 z.DecExtension(&yymv1, yyxt4)
19222 } else {
19223 yymv1.CodecDecodeSelf(d)
19224 }
19225 if yymdn1 {
19226 yyv1[yymk1] = nil
19227 } else {
19228 yyv1[yymk1] = yymv1
19229 }
19230 }
19231 } // else len==0: leave as-is (do not clear map entries)
19232 z.DecReadMapEnd()
19233 }
19234 }
19235
19236 func (x codecSelfer19780) encMapstringUint64TwrapStringSlice(v map[stringUint64T]wrapStringSlice, e *Encoder) {
19237 var h codecSelfer19780
19238 z, r := GenHelper().Encoder(e)
19239 _, _, _ = h, z, r
19240 if v == nil {
19241 r.EncodeNil()
19242 } else if z.EncBasicHandle().Canonical {
19243 z.EncEncodeMapNonNil(v)
19244 } else {
19245 z.EncWriteMapStart(len(v))
19246 for yyk1, yyv1 := range v {
19247 z.EncWriteMapElemKey()
19248 yy2 := &yyk1
19249 if yyxt3 := z.Extension(yy2); yyxt3 != nil {
19250 z.EncExtension(yy2, yyxt3)
19251 } else {
19252 yy2.CodecEncodeSelf(e)
19253 }
19254 z.EncWriteMapElemValue()
19255 if yyxt4 := z.Extension(yyv1); yyxt4 != nil {
19256 z.EncExtension(yyv1, yyxt4)
19257 } else {
19258 yyv1.CodecEncodeSelf(e)
19259 }
19260 }
19261 z.EncWriteMapEnd()
19262 }
19263 }
19264
19265 func (x codecSelfer19780) decMapstringUint64TwrapStringSlice(v *map[stringUint64T]wrapStringSlice, d *Decoder) {
19266 var h codecSelfer19780
19267 z, r := GenHelper().Decoder(d)
19268 _, _, _ = h, z, r
19269
19270 yyv1 := *v
19271 yyl1 := z.DecReadMapStart()
19272 if yyl1 == codecSelferDecContainerLenNil19780 {
19273 *v = nil
19274 } else {
19275 if yyv1 == nil {
19276 yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 48)
19277 yyv1 = make(map[stringUint64T]wrapStringSlice, yyrl1)
19278 *v = yyv1
19279 }
19280 var yymk1 stringUint64T
19281 var yymv1 wrapStringSlice
19282 var yymg1, yymdn1 bool
19283 if z.DecBasicHandle().MapValueReset {
19284 yymg1 = true
19285 }
19286 if yyl1 != 0 {
19287 yyhl1 := yyl1 > 0
19288 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ {
19289 z.DecReadMapElemKey()
19290 if yyxt3 := z.Extension(yymk1); yyxt3 != nil {
19291 z.DecExtension(&yymk1, yyxt3)
19292 } else {
19293 yymk1.CodecDecodeSelf(d)
19294 }
19295 if yymg1 {
19296 yymv1 = yyv1[yymk1]
19297 } else {
19298 yymv1 = nil
19299 }
19300 z.DecReadMapElemValue()
19301 yymdn1 = false
19302 if yyxt5 := z.Extension(yymv1); yyxt5 != nil {
19303 z.DecExtension(&yymv1, yyxt5)
19304 } else {
19305 yymv1.CodecDecodeSelf(d)
19306 }
19307 if yymdn1 {
19308 yyv1[yymk1] = nil
19309 } else {
19310 yyv1[yymk1] = yymv1
19311 }
19312 }
19313 } // else len==0: leave as-is (do not clear map entries)
19314 z.DecReadMapEnd()
19315 }
19316 }
19317
19318 func (x codecSelfer19780) encSlicewrapBytes(v []wrapBytes, e *Encoder) {
19319 var h codecSelfer19780
19320 z, r := GenHelper().Encoder(e)
19321 _, _, _ = h, z, r
19322 if v == nil {
19323 r.EncodeNil()
19324 return
19325 }
19326 z.EncWriteArrayStart(len(v))
19327 for yyv1 := range v {
19328 z.EncWriteArrayElem()
19329 if yyxt2 := z.Extension(v[yyv1]); yyxt2 != nil {
19330 z.EncExtension(v[yyv1], yyxt2)
19331 } else {
19332 v[yyv1].CodecEncodeSelf(e)
19333 }
19334 }
19335 z.EncWriteArrayEnd()
19336 }
19337
19338 func (x codecSelfer19780) decSlicewrapBytes(v *[]wrapBytes, d *Decoder) {
19339 var h codecSelfer19780
19340 z, r := GenHelper().Decoder(d)
19341 _, _, _ = h, z, r
19342
19343 yyv1 := *v
19344 yyh1, yyl1 := z.DecSliceHelperStart()
19345 var yyc1 bool
19346 _ = yyc1
19347 if yyh1.IsNil {
19348 if yyv1 != nil {
19349 yyv1 = nil
19350 yyc1 = true
19351 }
19352 } else if yyl1 == 0 {
19353 if yyv1 == nil {
19354 yyv1 = []wrapBytes{}
19355 yyc1 = true
19356 } else if len(yyv1) != 0 {
19357 yyv1 = yyv1[:0]
19358 yyc1 = true
19359 }
19360 } else {
19361 yyhl1 := yyl1 > 0
19362 var yyrl1 int
19363 _ = yyrl1
19364 if yyhl1 {
19365 if yyl1 > cap(yyv1) {
19366 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
19367 if yyrl1 <= cap(yyv1) {
19368 yyv1 = yyv1[:yyrl1]
19369 } else {
19370 yyv1 = make([]wrapBytes, yyrl1)
19371 }
19372 yyc1 = true
19373 } else if yyl1 != len(yyv1) {
19374 yyv1 = yyv1[:yyl1]
19375 yyc1 = true
19376 }
19377 }
19378 var yyj1 int
19379 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination
19380 if yyj1 == 0 && yyv1 == nil {
19381 if yyhl1 {
19382 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
19383 } else {
19384 yyrl1 = 8
19385 }
19386 yyv1 = make([]wrapBytes, yyrl1)
19387 yyc1 = true
19388 }
19389 yyh1.ElemContainerState(yyj1)
19390 var yydb1 bool
19391 if yyj1 >= len(yyv1) {
19392 yyv1 = append(yyv1, nil)
19393 yyc1 = true
19394 }
19395 if yydb1 {
19396 z.DecSwallow()
19397 } else {
19398 if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil {
19399 z.DecExtension(&yyv1[yyj1], yyxt3)
19400 } else {
19401 yyv1[yyj1].CodecDecodeSelf(d)
19402 }
19403 }
19404 }
19405 if yyj1 < len(yyv1) {
19406 yyv1 = yyv1[:yyj1]
19407 yyc1 = true
19408 } else if yyj1 == 0 && yyv1 == nil {
19409 yyv1 = []wrapBytes{}
19410 yyc1 = true
19411 }
19412 }
19413 yyh1.End()
19414 if yyc1 {
19415 *v = yyv1
19416 }
19417 }
19418
19419 func (x codecSelfer19780) encSlicewrapUint8(v []wrapUint8, e *Encoder) {
19420 var h codecSelfer19780
19421 z, r := GenHelper().Encoder(e)
19422 _, _, _ = h, z, r
19423 if v == nil {
19424 r.EncodeNil()
19425 return
19426 }
19427 z.EncWriteArrayStart(len(v))
19428 for yyv1 := range v {
19429 z.EncWriteArrayElem()
19430 if yyxt2 := z.Extension(v[yyv1]); yyxt2 != nil {
19431 z.EncExtension(v[yyv1], yyxt2)
19432 } else {
19433 v[yyv1].CodecEncodeSelf(e)
19434 }
19435 }
19436 z.EncWriteArrayEnd()
19437 }
19438
19439 func (x codecSelfer19780) decSlicewrapUint8(v *[]wrapUint8, d *Decoder) {
19440 var h codecSelfer19780
19441 z, r := GenHelper().Decoder(d)
19442 _, _, _ = h, z, r
19443
19444 yyv1 := *v
19445 yyh1, yyl1 := z.DecSliceHelperStart()
19446 var yyc1 bool
19447 _ = yyc1
19448 if yyh1.IsNil {
19449 if yyv1 != nil {
19450 yyv1 = nil
19451 yyc1 = true
19452 }
19453 } else if yyl1 == 0 {
19454 if yyv1 == nil {
19455 yyv1 = []wrapUint8{}
19456 yyc1 = true
19457 } else if len(yyv1) != 0 {
19458 yyv1 = yyv1[:0]
19459 yyc1 = true
19460 }
19461 } else {
19462 yyhl1 := yyl1 > 0
19463 var yyrl1 int
19464 _ = yyrl1
19465 if yyhl1 {
19466 if yyl1 > cap(yyv1) {
19467 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
19468 if yyrl1 <= cap(yyv1) {
19469 yyv1 = yyv1[:yyrl1]
19470 } else {
19471 yyv1 = make([]wrapUint8, yyrl1)
19472 }
19473 yyc1 = true
19474 } else if yyl1 != len(yyv1) {
19475 yyv1 = yyv1[:yyl1]
19476 yyc1 = true
19477 }
19478 }
19479 var yyj1 int
19480 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination
19481 if yyj1 == 0 && yyv1 == nil {
19482 if yyhl1 {
19483 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
19484 } else {
19485 yyrl1 = 8
19486 }
19487 yyv1 = make([]wrapUint8, yyrl1)
19488 yyc1 = true
19489 }
19490 yyh1.ElemContainerState(yyj1)
19491 var yydb1 bool
19492 if yyj1 >= len(yyv1) {
19493 yyv1 = append(yyv1, 0)
19494 yyc1 = true
19495 }
19496 if yydb1 {
19497 z.DecSwallow()
19498 } else {
19499 if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil {
19500 z.DecExtension(&yyv1[yyj1], yyxt3)
19501 } else {
19502 yyv1[yyj1].CodecDecodeSelf(d)
19503 }
19504 }
19505 }
19506 if yyj1 < len(yyv1) {
19507 yyv1 = yyv1[:yyj1]
19508 yyc1 = true
19509 } else if yyj1 == 0 && yyv1 == nil {
19510 yyv1 = []wrapUint8{}
19511 yyc1 = true
19512 }
19513 }
19514 yyh1.End()
19515 if yyc1 {
19516 *v = yyv1
19517 }
19518 }
19519
19520 func (x codecSelfer19780) encArray4stringUint64T(v *[4]stringUint64T, e *Encoder) {
19521 var h codecSelfer19780
19522 z, r := GenHelper().Encoder(e)
19523 _, _, _ = h, z, r
19524 if v == nil {
19525 r.EncodeNil()
19526 return
19527 }
19528 z.EncWriteArrayStart(len(v))
19529 for yyv1 := range v {
19530 z.EncWriteArrayElem()
19531 yy2 := &v[yyv1]
19532 if yyxt3 := z.Extension(yy2); yyxt3 != nil {
19533 z.EncExtension(yy2, yyxt3)
19534 } else {
19535 yy2.CodecEncodeSelf(e)
19536 }
19537 }
19538 z.EncWriteArrayEnd()
19539 }
19540
19541 func (x codecSelfer19780) decArray4stringUint64T(v *[4]stringUint64T, d *Decoder) {
19542 var h codecSelfer19780
19543 z, r := GenHelper().Decoder(d)
19544 _, _, _ = h, z, r
19545
19546 yyv1 := v
19547 yyh1, yyl1 := z.DecSliceHelperStart()
19548 if yyl1 == 0 {
19549 } else {
19550 yyhl1 := yyl1 > 0
19551 var yyrl1 int
19552 _ = yyrl1
19553 var yyj1 int
19554 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination
19555 yyh1.ElemContainerState(yyj1)
19556 var yydb1 bool
19557 if yyj1 >= len(yyv1) {
19558 z.DecArrayCannotExpand(len(v), yyj1+1)
19559 yydb1 = true
19560 }
19561 if yydb1 {
19562 z.DecSwallow()
19563 } else {
19564 if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil {
19565 z.DecExtension(&yyv1[yyj1], yyxt3)
19566 } else {
19567 yyv1[yyj1].CodecDecodeSelf(d)
19568 }
19569 }
19570 }
19571 }
19572 yyh1.End()
19573 }
19574
19575 func (x codecSelfer19780) encArray4uint64(v *[4]uint64, e *Encoder) {
19576 var h codecSelfer19780
19577 z, r := GenHelper().Encoder(e)
19578 _, _, _ = h, z, r
19579 if v == nil {
19580 r.EncodeNil()
19581 return
19582 }
19583 z.EncWriteArrayStart(len(v))
19584 for yyv1 := range v {
19585 z.EncWriteArrayElem()
19586 r.EncodeUint(uint64(v[yyv1]))
19587 }
19588 z.EncWriteArrayEnd()
19589 }
19590
19591 func (x codecSelfer19780) decArray4uint64(v *[4]uint64, d *Decoder) {
19592 var h codecSelfer19780
19593 z, r := GenHelper().Decoder(d)
19594 _, _, _ = h, z, r
19595
19596 yyv1 := v
19597 yyh1, yyl1 := z.DecSliceHelperStart()
19598 if yyl1 == 0 {
19599 } else {
19600 yyhl1 := yyl1 > 0
19601 var yyrl1 int
19602 _ = yyrl1
19603 var yyj1 int
19604 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination
19605 yyh1.ElemContainerState(yyj1)
19606 var yydb1 bool
19607 if yyj1 >= len(yyv1) {
19608 z.DecArrayCannotExpand(len(v), yyj1+1)
19609 yydb1 = true
19610 }
19611 if yydb1 {
19612 z.DecSwallow()
19613 } else {
19614 yyv1[yyj1] = (uint64)(r.DecodeUint64())
19615 }
19616 }
19617 }
19618 yyh1.End()
19619 }
19620
19621 func (x codecSelfer19780) encSlicePtrtoArray4uint64(v []*[4]uint64, e *Encoder) {
19622 var h codecSelfer19780
19623 z, r := GenHelper().Encoder(e)
19624 _, _, _ = h, z, r
19625 if v == nil {
19626 r.EncodeNil()
19627 return
19628 }
19629 z.EncWriteArrayStart(len(v))
19630 for yyv1 := range v {
19631 z.EncWriteArrayElem()
19632 if v[yyv1] == nil {
19633 r.EncodeNil()
19634 } else {
19635 h.encArray4uint64((*[4]uint64)(v[yyv1]), e)
19636 }
19637 }
19638 z.EncWriteArrayEnd()
19639 }
19640
19641 func (x codecSelfer19780) decSlicePtrtoArray4uint64(v *[]*[4]uint64, d *Decoder) {
19642 var h codecSelfer19780
19643 z, r := GenHelper().Decoder(d)
19644 _, _, _ = h, z, r
19645
19646 yyv1 := *v
19647 yyh1, yyl1 := z.DecSliceHelperStart()
19648 var yyc1 bool
19649 _ = yyc1
19650 if yyh1.IsNil {
19651 if yyv1 != nil {
19652 yyv1 = nil
19653 yyc1 = true
19654 }
19655 } else if yyl1 == 0 {
19656 if yyv1 == nil {
19657 yyv1 = []*[4]uint64{}
19658 yyc1 = true
19659 } else if len(yyv1) != 0 {
19660 yyv1 = yyv1[:0]
19661 yyc1 = true
19662 }
19663 } else {
19664 yyhl1 := yyl1 > 0
19665 var yyrl1 int
19666 _ = yyrl1
19667 if yyhl1 {
19668 if yyl1 > cap(yyv1) {
19669 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
19670 if yyrl1 <= cap(yyv1) {
19671 yyv1 = yyv1[:yyrl1]
19672 } else {
19673 yyv1 = make([]*[4]uint64, yyrl1)
19674 }
19675 yyc1 = true
19676 } else if yyl1 != len(yyv1) {
19677 yyv1 = yyv1[:yyl1]
19678 yyc1 = true
19679 }
19680 }
19681 var yyj1 int
19682 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination
19683 if yyj1 == 0 && yyv1 == nil {
19684 if yyhl1 {
19685 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
19686 } else {
19687 yyrl1 = 8
19688 }
19689 yyv1 = make([]*[4]uint64, yyrl1)
19690 yyc1 = true
19691 }
19692 yyh1.ElemContainerState(yyj1)
19693 var yydb1 bool
19694 if yyj1 >= len(yyv1) {
19695 yyv1 = append(yyv1, nil)
19696 yyc1 = true
19697 }
19698 if yydb1 {
19699 z.DecSwallow()
19700 } else {
19701 if r.TryNil() {
19702 yyv1[yyj1] = nil
19703 } else {
19704 if yyv1[yyj1] == nil {
19705 yyv1[yyj1] = new([4]uint64)
19706 }
19707 h.decArray4uint64((*[4]uint64)(yyv1[yyj1]), d)
19708 }
19709 }
19710 }
19711 if yyj1 < len(yyv1) {
19712 yyv1 = yyv1[:yyj1]
19713 yyc1 = true
19714 } else if yyj1 == 0 && yyv1 == nil {
19715 yyv1 = []*[4]uint64{}
19716 yyc1 = true
19717 }
19718 }
19719 yyh1.End()
19720 if yyc1 {
19721 *v = yyv1
19722 }
19723 }
19724
19725 func (x codecSelfer19780) encMapstringUint64TPtrtostringUint64T(v map[stringUint64T]*stringUint64T, e *Encoder) {
19726 var h codecSelfer19780
19727 z, r := GenHelper().Encoder(e)
19728 _, _, _ = h, z, r
19729 if v == nil {
19730 r.EncodeNil()
19731 } else if z.EncBasicHandle().Canonical {
19732 z.EncEncodeMapNonNil(v)
19733 } else {
19734 z.EncWriteMapStart(len(v))
19735 for yyk1, yyv1 := range v {
19736 z.EncWriteMapElemKey()
19737 yy2 := &yyk1
19738 if yyxt3 := z.Extension(yy2); yyxt3 != nil {
19739 z.EncExtension(yy2, yyxt3)
19740 } else {
19741 yy2.CodecEncodeSelf(e)
19742 }
19743 z.EncWriteMapElemValue()
19744 if yyv1 == nil {
19745 r.EncodeNil()
19746 } else {
19747 if yyxt4 := z.Extension(yyv1); yyxt4 != nil {
19748 z.EncExtension(yyv1, yyxt4)
19749 } else {
19750 yyv1.CodecEncodeSelf(e)
19751 }
19752 }
19753 }
19754 z.EncWriteMapEnd()
19755 }
19756 }
19757
19758 func (x codecSelfer19780) decMapstringUint64TPtrtostringUint64T(v *map[stringUint64T]*stringUint64T, d *Decoder) {
19759 var h codecSelfer19780
19760 z, r := GenHelper().Decoder(d)
19761 _, _, _ = h, z, r
19762
19763 yyv1 := *v
19764 yyl1 := z.DecReadMapStart()
19765 if yyl1 == codecSelferDecContainerLenNil19780 {
19766 *v = nil
19767 } else {
19768 if yyv1 == nil {
19769 yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
19770 yyv1 = make(map[stringUint64T]*stringUint64T, yyrl1)
19771 *v = yyv1
19772 }
19773 var yymk1 stringUint64T
19774 var yymv1 *stringUint64T
19775 var yymg1, yymdn1, yyms1, yymok1 bool
19776 if z.DecBasicHandle().MapValueReset {
19777 yymg1 = true
19778 }
19779 if yyl1 != 0 {
19780 yyhl1 := yyl1 > 0
19781 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ {
19782 z.DecReadMapElemKey()
19783 if yyxt3 := z.Extension(yymk1); yyxt3 != nil {
19784 z.DecExtension(&yymk1, yyxt3)
19785 } else {
19786 yymk1.CodecDecodeSelf(d)
19787 }
19788 yyms1 = true
19789 if yymg1 {
19790 yymv1, yymok1 = yyv1[yymk1]
19791 if yymok1 {
19792 yyms1 = false
19793 }
19794 } else {
19795 yymv1 = nil
19796 }
19797 z.DecReadMapElemValue()
19798 yymdn1 = false
19799 if r.TryNil() {
19800 yymdn1 = true
19801 } else {
19802 if yymv1 == nil {
19803 yymv1 = new(stringUint64T)
19804 }
19805 if yyxt5 := z.Extension(yymv1); yyxt5 != nil {
19806 z.DecExtension(yymv1, yyxt5)
19807 } else {
19808 yymv1.CodecDecodeSelf(d)
19809 }
19810 }
19811 if yymdn1 {
19812 yyv1[yymk1] = nil
19813 } else if yyms1 {
19814 yyv1[yymk1] = yymv1
19815 }
19816 }
19817 } // else len==0: leave as-is (do not clear map entries)
19818 z.DecReadMapEnd()
19819 }
19820 }
19821
19822 func (x codecSelfer19780) encMapwrapStringInterface(v map[wrapString]interface{}, e *Encoder) {
19823 var h codecSelfer19780
19824 z, r := GenHelper().Encoder(e)
19825 _, _, _ = h, z, r
19826 if v == nil {
19827 r.EncodeNil()
19828 } else if z.EncBasicHandle().Canonical {
19829 var yyvv1 wrapString
19830 yyencfn1 := z.EncFnGivenAddr(&yyvv1)
19831 yys1 := make([]string, 0, len(v))
19832 for k, _ := range v {
19833 yys1 = append(yys1, string(k))
19834 }
19835 sort.Sort(codecSelfer19780stringSlice(yys1))
19836 z.EncWriteMapStart(len(v))
19837 for _, yyv1 := range yys1 {
19838 z.EncWriteMapElemKey()
19839 yyvv1 = wrapString(yyv1)
19840 z.EncEncodeNumBoolStrKindGivenAddr(&yyvv1, yyencfn1)
19841 z.EncWriteMapElemValue()
19842 yye1 := v[yyvv1]
19843 if yye1 == nil {
19844 r.EncodeNil()
19845 } else {
19846 z.EncFallback(yye1)
19847 }
19848 }
19849 z.EncWriteMapEnd()
19850 } else {
19851 z.EncWriteMapStart(len(v))
19852 for yyk1, yyv1 := range v {
19853 z.EncWriteMapElemKey()
19854 if yyxt3 := z.Extension(yyk1); yyxt3 != nil {
19855 z.EncExtension(yyk1, yyxt3)
19856 } else {
19857 yyk1.CodecEncodeSelf(e)
19858 }
19859 z.EncWriteMapElemValue()
19860 if yyv1 == nil {
19861 r.EncodeNil()
19862 } else {
19863 z.EncFallback(yyv1)
19864 }
19865 }
19866 z.EncWriteMapEnd()
19867 }
19868 }
19869
19870 func (x codecSelfer19780) decMapwrapStringInterface(v *map[wrapString]interface{}, d *Decoder) {
19871 var h codecSelfer19780
19872 z, r := GenHelper().Decoder(d)
19873 _, _, _ = h, z, r
19874
19875 yyv1 := *v
19876 yyl1 := z.DecReadMapStart()
19877 if yyl1 == codecSelferDecContainerLenNil19780 {
19878 *v = nil
19879 } else {
19880 if yyv1 == nil {
19881 yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
19882 yyv1 = make(map[wrapString]interface{}, yyrl1)
19883 *v = yyv1
19884 }
19885 var yymk1 wrapString
19886 var yymv1 interface{}
19887 var yymg1, yymdn1 bool
19888 if z.DecBasicHandle().MapValueReset {
19889 if !z.DecBasicHandle().InterfaceReset {
19890 yymg1 = true
19891 }
19892 }
19893 if yyl1 != 0 {
19894 yyhl1 := yyl1 > 0
19895 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ {
19896 z.DecReadMapElemKey()
19897 if yyxt3 := z.Extension(yymk1); yyxt3 != nil {
19898 z.DecExtension(&yymk1, yyxt3)
19899 } else {
19900 yymk1.CodecDecodeSelf(d)
19901 }
19902 if yymg1 {
19903 yymv1 = yyv1[yymk1]
19904 } else {
19905 yymv1 = nil
19906 }
19907 z.DecReadMapElemValue()
19908 yymdn1 = false
19909 z.DecFallback(&yymv1, true)
19910 if yymdn1 {
19911 yyv1[yymk1] = nil
19912 } else {
19913 yyv1[yymk1] = yymv1
19914 }
19915 }
19916 } // else len==0: leave as-is (do not clear map entries)
19917 z.DecReadMapEnd()
19918 }
19919 }
19920
19921 func (x codecSelfer19780) encMapstringPtrtoTestStrucFlex(v map[string]*TestStrucFlex, e *Encoder) {
19922 var h codecSelfer19780
19923 z, r := GenHelper().Encoder(e)
19924 _, _, _ = h, z, r
19925 if v == nil {
19926 r.EncodeNil()
19927 } else if z.EncBasicHandle().Canonical {
19928 yys1 := make([]string, 0, len(v))
19929 for k, _ := range v {
19930 yys1 = append(yys1, string(k))
19931 }
19932 sort.Sort(codecSelfer19780stringSlice(yys1))
19933 z.EncWriteMapStart(len(v))
19934 for _, yyv1 := range yys1 {
19935 z.EncWriteMapElemKey()
19936 r.EncodeString(yyv1)
19937 z.EncWriteMapElemValue()
19938 yye1 := v[string(yyv1)]
19939 if yye1 == nil {
19940 r.EncodeNil()
19941 } else {
19942 if yyxt2 := z.Extension(yye1); yyxt2 != nil {
19943 z.EncExtension(yye1, yyxt2)
19944 } else {
19945 yye1.CodecEncodeSelf(e)
19946 }
19947 }
19948 }
19949 z.EncWriteMapEnd()
19950 } else {
19951 z.EncWriteMapStart(len(v))
19952 for yyk1, yyv1 := range v {
19953 z.EncWriteMapElemKey()
19954 r.EncodeString(string(yyk1))
19955 z.EncWriteMapElemValue()
19956 if yyv1 == nil {
19957 r.EncodeNil()
19958 } else {
19959 if yyxt4 := z.Extension(yyv1); yyxt4 != nil {
19960 z.EncExtension(yyv1, yyxt4)
19961 } else {
19962 yyv1.CodecEncodeSelf(e)
19963 }
19964 }
19965 }
19966 z.EncWriteMapEnd()
19967 }
19968 }
19969
19970 func (x codecSelfer19780) decMapstringPtrtoTestStrucFlex(v *map[string]*TestStrucFlex, d *Decoder) {
19971 var h codecSelfer19780
19972 z, r := GenHelper().Decoder(d)
19973 _, _, _ = h, z, r
19974
19975 yyv1 := *v
19976 yyl1 := z.DecReadMapStart()
19977 if yyl1 == codecSelferDecContainerLenNil19780 {
19978 *v = nil
19979 } else {
19980 if yyv1 == nil {
19981 yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
19982 yyv1 = make(map[string]*TestStrucFlex, yyrl1)
19983 *v = yyv1
19984 }
19985 var yymk1 string
19986 var yymv1 *TestStrucFlex
19987 var yymg1, yymdn1, yyms1, yymok1 bool
19988 if z.DecBasicHandle().MapValueReset {
19989 yymg1 = true
19990 }
19991 if yyl1 != 0 {
19992 yyhl1 := yyl1 > 0
19993 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ {
19994 z.DecReadMapElemKey()
19995 yymk1 = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
19996 yyms1 = true
19997 if yymg1 {
19998 yymv1, yymok1 = yyv1[yymk1]
19999 if yymok1 {
20000 yyms1 = false
20001 }
20002 } else {
20003 yymv1 = nil
20004 }
20005 z.DecReadMapElemValue()
20006 yymdn1 = false
20007 if r.TryNil() {
20008 yymdn1 = true
20009 } else {
20010 if yymv1 == nil {
20011 yymv1 = new(TestStrucFlex)
20012 }
20013 if yyxt4 := z.Extension(yymv1); yyxt4 != nil {
20014 z.DecExtension(yymv1, yyxt4)
20015 } else {
20016 yymv1.CodecDecodeSelf(d)
20017 }
20018 }
20019 if yymdn1 {
20020 yyv1[yymk1] = nil
20021 } else if yyms1 {
20022 yyv1[yymk1] = yymv1
20023 }
20024 }
20025 } // else len==0: leave as-is (do not clear map entries)
20026 z.DecReadMapEnd()
20027 }
20028 }
20029
20030 func (x codecSelfer19780) encMapstringTestStrucFlex(v map[string]TestStrucFlex, e *Encoder) {
20031 var h codecSelfer19780
20032 z, r := GenHelper().Encoder(e)
20033 _, _, _ = h, z, r
20034 if v == nil {
20035 r.EncodeNil()
20036 } else if z.EncBasicHandle().Canonical {
20037 yys1 := make([]string, 0, len(v))
20038 for k, _ := range v {
20039 yys1 = append(yys1, string(k))
20040 }
20041 sort.Sort(codecSelfer19780stringSlice(yys1))
20042 z.EncWriteMapStart(len(v))
20043 for _, yyv1 := range yys1 {
20044 z.EncWriteMapElemKey()
20045 r.EncodeString(yyv1)
20046 z.EncWriteMapElemValue()
20047 yye1 := v[string(yyv1)]
20048 yy2 := &yye1
20049 if yyxt3 := z.Extension(yy2); yyxt3 != nil {
20050 z.EncExtension(yy2, yyxt3)
20051 } else {
20052 yy2.CodecEncodeSelf(e)
20053 }
20054 }
20055 z.EncWriteMapEnd()
20056 } else {
20057 z.EncWriteMapStart(len(v))
20058 for yyk1, yyv1 := range v {
20059 z.EncWriteMapElemKey()
20060 r.EncodeString(string(yyk1))
20061 z.EncWriteMapElemValue()
20062 yy5 := &yyv1
20063 if yyxt6 := z.Extension(yy5); yyxt6 != nil {
20064 z.EncExtension(yy5, yyxt6)
20065 } else {
20066 yy5.CodecEncodeSelf(e)
20067 }
20068 }
20069 z.EncWriteMapEnd()
20070 }
20071 }
20072
20073 func (x codecSelfer19780) decMapstringTestStrucFlex(v *map[string]TestStrucFlex, d *Decoder) {
20074 var h codecSelfer19780
20075 z, r := GenHelper().Decoder(d)
20076 _, _, _ = h, z, r
20077
20078 yyv1 := *v
20079 yyl1 := z.DecReadMapStart()
20080 if yyl1 == codecSelferDecContainerLenNil19780 {
20081 *v = nil
20082 } else {
20083 if yyv1 == nil {
20084 yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1880)
20085 yyv1 = make(map[string]TestStrucFlex, yyrl1)
20086 *v = yyv1
20087 }
20088 var yymk1 string
20089 var yymv1 TestStrucFlex
20090 var yymg1, yymdn1 bool
20091 if z.DecBasicHandle().MapValueReset {
20092 yymg1 = true
20093 }
20094 if yyl1 != 0 {
20095 yyhl1 := yyl1 > 0
20096 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ {
20097 z.DecReadMapElemKey()
20098 yymk1 = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
20099 if yymg1 {
20100 yymv1 = yyv1[yymk1]
20101 } else {
20102 yymv1 = TestStrucFlex{}
20103 }
20104 z.DecReadMapElemValue()
20105 yymdn1 = false
20106 if yyxt4 := z.Extension(yymv1); yyxt4 != nil {
20107 z.DecExtension(&yymv1, yyxt4)
20108 } else {
20109 yymv1.CodecDecodeSelf(d)
20110 }
20111 if yymdn1 {
20112 yyv1[yymk1] = TestStrucFlex{}
20113 } else {
20114 yyv1[yymk1] = yymv1
20115 }
20116 }
20117 } // else len==0: leave as-is (do not clear map entries)
20118 z.DecReadMapEnd()
20119 }
20120 }
20121
20122 func (x codecSelfer19780) encSlicePtrtoTestStrucFlex(v []*TestStrucFlex, e *Encoder) {
20123 var h codecSelfer19780
20124 z, r := GenHelper().Encoder(e)
20125 _, _, _ = h, z, r
20126 if v == nil {
20127 r.EncodeNil()
20128 return
20129 }
20130 z.EncWriteArrayStart(len(v))
20131 for yyv1 := range v {
20132 z.EncWriteArrayElem()
20133 if v[yyv1] == nil {
20134 r.EncodeNil()
20135 } else {
20136 if yyxt2 := z.Extension(v[yyv1]); yyxt2 != nil {
20137 z.EncExtension(v[yyv1], yyxt2)
20138 } else {
20139 v[yyv1].CodecEncodeSelf(e)
20140 }
20141 }
20142 }
20143 z.EncWriteArrayEnd()
20144 }
20145
20146 func (x codecSelfer19780) decSlicePtrtoTestStrucFlex(v *[]*TestStrucFlex, d *Decoder) {
20147 var h codecSelfer19780
20148 z, r := GenHelper().Decoder(d)
20149 _, _, _ = h, z, r
20150
20151 yyv1 := *v
20152 yyh1, yyl1 := z.DecSliceHelperStart()
20153 var yyc1 bool
20154 _ = yyc1
20155 if yyh1.IsNil {
20156 if yyv1 != nil {
20157 yyv1 = nil
20158 yyc1 = true
20159 }
20160 } else if yyl1 == 0 {
20161 if yyv1 == nil {
20162 yyv1 = []*TestStrucFlex{}
20163 yyc1 = true
20164 } else if len(yyv1) != 0 {
20165 yyv1 = yyv1[:0]
20166 yyc1 = true
20167 }
20168 } else {
20169 yyhl1 := yyl1 > 0
20170 var yyrl1 int
20171 _ = yyrl1
20172 if yyhl1 {
20173 if yyl1 > cap(yyv1) {
20174 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
20175 if yyrl1 <= cap(yyv1) {
20176 yyv1 = yyv1[:yyrl1]
20177 } else {
20178 yyv1 = make([]*TestStrucFlex, yyrl1)
20179 }
20180 yyc1 = true
20181 } else if yyl1 != len(yyv1) {
20182 yyv1 = yyv1[:yyl1]
20183 yyc1 = true
20184 }
20185 }
20186 var yyj1 int
20187 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination
20188 if yyj1 == 0 && yyv1 == nil {
20189 if yyhl1 {
20190 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
20191 } else {
20192 yyrl1 = 8
20193 }
20194 yyv1 = make([]*TestStrucFlex, yyrl1)
20195 yyc1 = true
20196 }
20197 yyh1.ElemContainerState(yyj1)
20198 var yydb1 bool
20199 if yyj1 >= len(yyv1) {
20200 yyv1 = append(yyv1, nil)
20201 yyc1 = true
20202 }
20203 if yydb1 {
20204 z.DecSwallow()
20205 } else {
20206 if r.TryNil() {
20207 yyv1[yyj1] = nil
20208 } else {
20209 if yyv1[yyj1] == nil {
20210 yyv1[yyj1] = new(TestStrucFlex)
20211 }
20212 if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil {
20213 z.DecExtension(yyv1[yyj1], yyxt3)
20214 } else {
20215 yyv1[yyj1].CodecDecodeSelf(d)
20216 }
20217 }
20218 }
20219 }
20220 if yyj1 < len(yyv1) {
20221 yyv1 = yyv1[:yyj1]
20222 yyc1 = true
20223 } else if yyj1 == 0 && yyv1 == nil {
20224 yyv1 = []*TestStrucFlex{}
20225 yyc1 = true
20226 }
20227 }
20228 yyh1.End()
20229 if yyc1 {
20230 *v = yyv1
20231 }
20232 }