2 Copyright 2016 The Kubernetes Authors.
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
17 // ************************************************************
19 // THIS FILE IS AUTO-GENERATED BY codecgen.
20 // ************************************************************
27 codec1978 "github.com/ugorji/go/codec"
28 pkg1_unversioned "k8s.io/kubernetes/pkg/api/unversioned"
34 // ----- content types ----
35 codecSelferC_UTF81234 = 1
36 codecSelferC_RAW1234 = 0
37 // ----- value types used ----
38 codecSelferValueTypeArray1234 = 10
39 codecSelferValueTypeMap1234 = 9
40 // ----- containerStateValues ----
41 codecSelfer_containerMapKey1234 = 2
42 codecSelfer_containerMapValue1234 = 3
43 codecSelfer_containerMapEnd1234 = 4
44 codecSelfer_containerArrayElem1234 = 6
45 codecSelfer_containerArrayEnd1234 = 7
49 codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits())
50 codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`)
53 type codecSelfer1234 struct{}
56 if codec1978.GenVersion != 5 {
57 _, file, _, _ := runtime.Caller(0)
58 err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v",
59 5, codec1978.GenVersion, file)
62 if false { // reference the types, but skip this branch at build/run time
63 var v0 pkg1_unversioned.TypeMeta
68 func (x *TokenReview) CodecEncodeSelf(e *codec1978.Encoder) {
70 z, r := codec1978.GenHelperEncoder(e)
78 } else if z.HasExtensions() && z.EncExt(x) {
80 yysep2 := !z.EncBinary()
81 yy2arr2 := z.EncBasicHandle().StructToArray
83 _, _, _ = yysep2, yyq2, yy2arr2
84 const yyr2 bool = false
86 yyq2[2] = x.Kind != ""
87 yyq2[3] = x.APIVersion != ""
93 for _, b := range yyq2 {
98 r.EncodeMapStart(yynn2)
102 z.EncSendContainerState(codecSelfer_containerArrayElem1234)
104 yy4.CodecEncodeSelf(e)
106 z.EncSendContainerState(codecSelfer_containerMapKey1234)
107 r.EncodeString(codecSelferC_UTF81234, string("spec"))
108 z.EncSendContainerState(codecSelfer_containerMapValue1234)
110 yy6.CodecEncodeSelf(e)
113 z.EncSendContainerState(codecSelfer_containerArrayElem1234)
116 yy9.CodecEncodeSelf(e)
122 z.EncSendContainerState(codecSelfer_containerMapKey1234)
123 r.EncodeString(codecSelferC_UTF81234, string("status"))
124 z.EncSendContainerState(codecSelfer_containerMapValue1234)
126 yy11.CodecEncodeSelf(e)
130 z.EncSendContainerState(codecSelfer_containerArrayElem1234)
132 yym14 := z.EncBinary()
136 r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
139 r.EncodeString(codecSelferC_UTF81234, "")
143 z.EncSendContainerState(codecSelfer_containerMapKey1234)
144 r.EncodeString(codecSelferC_UTF81234, string("kind"))
145 z.EncSendContainerState(codecSelfer_containerMapValue1234)
146 yym15 := z.EncBinary()
150 r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
155 z.EncSendContainerState(codecSelfer_containerArrayElem1234)
157 yym17 := z.EncBinary()
161 r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
164 r.EncodeString(codecSelferC_UTF81234, "")
168 z.EncSendContainerState(codecSelfer_containerMapKey1234)
169 r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
170 z.EncSendContainerState(codecSelfer_containerMapValue1234)
171 yym18 := z.EncBinary()
175 r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
180 z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
182 z.EncSendContainerState(codecSelfer_containerMapEnd1234)
188 func (x *TokenReview) CodecDecodeSelf(d *codec1978.Decoder) {
189 var h codecSelfer1234
190 z, r := codec1978.GenHelperDecoder(d)
192 yym1 := z.DecBinary()
195 } else if z.HasExtensions() && z.DecExt(x) {
197 yyct2 := r.ContainerType()
198 if yyct2 == codecSelferValueTypeMap1234 {
199 yyl2 := r.ReadMapStart()
201 z.DecSendContainerState(codecSelfer_containerMapEnd1234)
203 x.codecDecodeSelfFromMap(yyl2, d)
205 } else if yyct2 == codecSelferValueTypeArray1234 {
206 yyl2 := r.ReadArrayStart()
208 z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
210 x.codecDecodeSelfFromArray(yyl2, d)
213 panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
218 func (x *TokenReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
219 var h codecSelfer1234
220 z, r := codec1978.GenHelperDecoder(d)
222 var yys3Slc = z.DecScratchBuffer() // default slice to decode into
224 var yyhl3 bool = l >= 0
225 for yyj3 := 0; ; yyj3++ {
235 z.DecSendContainerState(codecSelfer_containerMapKey1234)
236 yys3Slc = r.DecodeBytes(yys3Slc, true, true)
237 yys3 := string(yys3Slc)
238 z.DecSendContainerState(codecSelfer_containerMapValue1234)
241 if r.TryDecodeAsNil() {
242 x.Spec = TokenReviewSpec{}
245 yyv4.CodecDecodeSelf(d)
248 if r.TryDecodeAsNil() {
249 x.Status = TokenReviewStatus{}
252 yyv5.CodecDecodeSelf(d)
255 if r.TryDecodeAsNil() {
258 x.Kind = string(r.DecodeString())
261 if r.TryDecodeAsNil() {
264 x.APIVersion = string(r.DecodeString())
267 z.DecStructFieldNotFound(-1, yys3)
270 z.DecSendContainerState(codecSelfer_containerMapEnd1234)
273 func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
274 var h codecSelfer1234
275 z, r := codec1978.GenHelperDecoder(d)
279 var yyhl8 bool = l >= 0
284 yyb8 = r.CheckBreak()
287 z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
290 z.DecSendContainerState(codecSelfer_containerArrayElem1234)
291 if r.TryDecodeAsNil() {
292 x.Spec = TokenReviewSpec{}
295 yyv9.CodecDecodeSelf(d)
301 yyb8 = r.CheckBreak()
304 z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
307 z.DecSendContainerState(codecSelfer_containerArrayElem1234)
308 if r.TryDecodeAsNil() {
309 x.Status = TokenReviewStatus{}
312 yyv10.CodecDecodeSelf(d)
318 yyb8 = r.CheckBreak()
321 z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
324 z.DecSendContainerState(codecSelfer_containerArrayElem1234)
325 if r.TryDecodeAsNil() {
328 x.Kind = string(r.DecodeString())
334 yyb8 = r.CheckBreak()
337 z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
340 z.DecSendContainerState(codecSelfer_containerArrayElem1234)
341 if r.TryDecodeAsNil() {
344 x.APIVersion = string(r.DecodeString())
351 yyb8 = r.CheckBreak()
356 z.DecSendContainerState(codecSelfer_containerArrayElem1234)
357 z.DecStructFieldNotFound(yyj8-1, "")
359 z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
362 func (x *TokenReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) {
363 var h codecSelfer1234
364 z, r := codec1978.GenHelperEncoder(e)
369 yym1 := z.EncBinary()
372 } else if z.HasExtensions() && z.EncExt(x) {
374 yysep2 := !z.EncBinary()
375 yy2arr2 := z.EncBasicHandle().StructToArray
377 _, _, _ = yysep2, yyq2, yy2arr2
378 const yyr2 bool = false
379 yyq2[0] = x.Token != ""
382 r.EncodeArrayStart(1)
385 for _, b := range yyq2 {
390 r.EncodeMapStart(yynn2)
394 z.EncSendContainerState(codecSelfer_containerArrayElem1234)
396 yym4 := z.EncBinary()
400 r.EncodeString(codecSelferC_UTF81234, string(x.Token))
403 r.EncodeString(codecSelferC_UTF81234, "")
407 z.EncSendContainerState(codecSelfer_containerMapKey1234)
408 r.EncodeString(codecSelferC_UTF81234, string("token"))
409 z.EncSendContainerState(codecSelfer_containerMapValue1234)
410 yym5 := z.EncBinary()
414 r.EncodeString(codecSelferC_UTF81234, string(x.Token))
419 z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
421 z.EncSendContainerState(codecSelfer_containerMapEnd1234)
427 func (x *TokenReviewSpec) CodecDecodeSelf(d *codec1978.Decoder) {
428 var h codecSelfer1234
429 z, r := codec1978.GenHelperDecoder(d)
431 yym1 := z.DecBinary()
434 } else if z.HasExtensions() && z.DecExt(x) {
436 yyct2 := r.ContainerType()
437 if yyct2 == codecSelferValueTypeMap1234 {
438 yyl2 := r.ReadMapStart()
440 z.DecSendContainerState(codecSelfer_containerMapEnd1234)
442 x.codecDecodeSelfFromMap(yyl2, d)
444 } else if yyct2 == codecSelferValueTypeArray1234 {
445 yyl2 := r.ReadArrayStart()
447 z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
449 x.codecDecodeSelfFromArray(yyl2, d)
452 panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
457 func (x *TokenReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
458 var h codecSelfer1234
459 z, r := codec1978.GenHelperDecoder(d)
461 var yys3Slc = z.DecScratchBuffer() // default slice to decode into
463 var yyhl3 bool = l >= 0
464 for yyj3 := 0; ; yyj3++ {
474 z.DecSendContainerState(codecSelfer_containerMapKey1234)
475 yys3Slc = r.DecodeBytes(yys3Slc, true, true)
476 yys3 := string(yys3Slc)
477 z.DecSendContainerState(codecSelfer_containerMapValue1234)
480 if r.TryDecodeAsNil() {
483 x.Token = string(r.DecodeString())
486 z.DecStructFieldNotFound(-1, yys3)
489 z.DecSendContainerState(codecSelfer_containerMapEnd1234)
492 func (x *TokenReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
493 var h codecSelfer1234
494 z, r := codec1978.GenHelperDecoder(d)
498 var yyhl5 bool = l >= 0
503 yyb5 = r.CheckBreak()
506 z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
509 z.DecSendContainerState(codecSelfer_containerArrayElem1234)
510 if r.TryDecodeAsNil() {
513 x.Token = string(r.DecodeString())
520 yyb5 = r.CheckBreak()
525 z.DecSendContainerState(codecSelfer_containerArrayElem1234)
526 z.DecStructFieldNotFound(yyj5-1, "")
528 z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
531 func (x *TokenReviewStatus) CodecEncodeSelf(e *codec1978.Encoder) {
532 var h codecSelfer1234
533 z, r := codec1978.GenHelperEncoder(e)
538 yym1 := z.EncBinary()
541 } else if z.HasExtensions() && z.EncExt(x) {
543 yysep2 := !z.EncBinary()
544 yy2arr2 := z.EncBasicHandle().StructToArray
546 _, _, _ = yysep2, yyq2, yy2arr2
547 const yyr2 bool = false
548 yyq2[0] = x.Authenticated != false
552 r.EncodeArrayStart(2)
555 for _, b := range yyq2 {
560 r.EncodeMapStart(yynn2)
564 z.EncSendContainerState(codecSelfer_containerArrayElem1234)
566 yym4 := z.EncBinary()
570 r.EncodeBool(bool(x.Authenticated))
577 z.EncSendContainerState(codecSelfer_containerMapKey1234)
578 r.EncodeString(codecSelferC_UTF81234, string("authenticated"))
579 z.EncSendContainerState(codecSelfer_containerMapValue1234)
580 yym5 := z.EncBinary()
584 r.EncodeBool(bool(x.Authenticated))
589 z.EncSendContainerState(codecSelfer_containerArrayElem1234)
592 yy7.CodecEncodeSelf(e)
598 z.EncSendContainerState(codecSelfer_containerMapKey1234)
599 r.EncodeString(codecSelferC_UTF81234, string("user"))
600 z.EncSendContainerState(codecSelfer_containerMapValue1234)
602 yy9.CodecEncodeSelf(e)
606 z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
608 z.EncSendContainerState(codecSelfer_containerMapEnd1234)
614 func (x *TokenReviewStatus) CodecDecodeSelf(d *codec1978.Decoder) {
615 var h codecSelfer1234
616 z, r := codec1978.GenHelperDecoder(d)
618 yym1 := z.DecBinary()
621 } else if z.HasExtensions() && z.DecExt(x) {
623 yyct2 := r.ContainerType()
624 if yyct2 == codecSelferValueTypeMap1234 {
625 yyl2 := r.ReadMapStart()
627 z.DecSendContainerState(codecSelfer_containerMapEnd1234)
629 x.codecDecodeSelfFromMap(yyl2, d)
631 } else if yyct2 == codecSelferValueTypeArray1234 {
632 yyl2 := r.ReadArrayStart()
634 z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
636 x.codecDecodeSelfFromArray(yyl2, d)
639 panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
644 func (x *TokenReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
645 var h codecSelfer1234
646 z, r := codec1978.GenHelperDecoder(d)
648 var yys3Slc = z.DecScratchBuffer() // default slice to decode into
650 var yyhl3 bool = l >= 0
651 for yyj3 := 0; ; yyj3++ {
661 z.DecSendContainerState(codecSelfer_containerMapKey1234)
662 yys3Slc = r.DecodeBytes(yys3Slc, true, true)
663 yys3 := string(yys3Slc)
664 z.DecSendContainerState(codecSelfer_containerMapValue1234)
666 case "authenticated":
667 if r.TryDecodeAsNil() {
668 x.Authenticated = false
670 x.Authenticated = bool(r.DecodeBool())
673 if r.TryDecodeAsNil() {
677 yyv5.CodecDecodeSelf(d)
680 z.DecStructFieldNotFound(-1, yys3)
683 z.DecSendContainerState(codecSelfer_containerMapEnd1234)
686 func (x *TokenReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
687 var h codecSelfer1234
688 z, r := codec1978.GenHelperDecoder(d)
692 var yyhl6 bool = l >= 0
697 yyb6 = r.CheckBreak()
700 z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
703 z.DecSendContainerState(codecSelfer_containerArrayElem1234)
704 if r.TryDecodeAsNil() {
705 x.Authenticated = false
707 x.Authenticated = bool(r.DecodeBool())
713 yyb6 = r.CheckBreak()
716 z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
719 z.DecSendContainerState(codecSelfer_containerArrayElem1234)
720 if r.TryDecodeAsNil() {
724 yyv8.CodecDecodeSelf(d)
731 yyb6 = r.CheckBreak()
736 z.DecSendContainerState(codecSelfer_containerArrayElem1234)
737 z.DecStructFieldNotFound(yyj6-1, "")
739 z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
742 func (x *UserInfo) CodecEncodeSelf(e *codec1978.Encoder) {
743 var h codecSelfer1234
744 z, r := codec1978.GenHelperEncoder(e)
749 yym1 := z.EncBinary()
752 } else if z.HasExtensions() && z.EncExt(x) {
754 yysep2 := !z.EncBinary()
755 yy2arr2 := z.EncBasicHandle().StructToArray
757 _, _, _ = yysep2, yyq2, yy2arr2
758 const yyr2 bool = false
759 yyq2[0] = x.Username != ""
760 yyq2[1] = x.UID != ""
761 yyq2[2] = len(x.Groups) != 0
762 yyq2[3] = len(x.Extra) != 0
765 r.EncodeArrayStart(4)
768 for _, b := range yyq2 {
773 r.EncodeMapStart(yynn2)
777 z.EncSendContainerState(codecSelfer_containerArrayElem1234)
779 yym4 := z.EncBinary()
783 r.EncodeString(codecSelferC_UTF81234, string(x.Username))
786 r.EncodeString(codecSelferC_UTF81234, "")
790 z.EncSendContainerState(codecSelfer_containerMapKey1234)
791 r.EncodeString(codecSelferC_UTF81234, string("username"))
792 z.EncSendContainerState(codecSelfer_containerMapValue1234)
793 yym5 := z.EncBinary()
797 r.EncodeString(codecSelferC_UTF81234, string(x.Username))
802 z.EncSendContainerState(codecSelfer_containerArrayElem1234)
804 yym7 := z.EncBinary()
808 r.EncodeString(codecSelferC_UTF81234, string(x.UID))
811 r.EncodeString(codecSelferC_UTF81234, "")
815 z.EncSendContainerState(codecSelfer_containerMapKey1234)
816 r.EncodeString(codecSelferC_UTF81234, string("uid"))
817 z.EncSendContainerState(codecSelfer_containerMapValue1234)
818 yym8 := z.EncBinary()
822 r.EncodeString(codecSelferC_UTF81234, string(x.UID))
827 z.EncSendContainerState(codecSelfer_containerArrayElem1234)
832 yym10 := z.EncBinary()
836 z.F.EncSliceStringV(x.Groups, false, e)
844 z.EncSendContainerState(codecSelfer_containerMapKey1234)
845 r.EncodeString(codecSelferC_UTF81234, string("groups"))
846 z.EncSendContainerState(codecSelfer_containerMapValue1234)
850 yym11 := z.EncBinary()
854 z.F.EncSliceStringV(x.Groups, false, e)
860 z.EncSendContainerState(codecSelfer_containerArrayElem1234)
865 yym13 := z.EncBinary()
869 h.encMapstringSlicestring((map[string][]string)(x.Extra), e)
877 z.EncSendContainerState(codecSelfer_containerMapKey1234)
878 r.EncodeString(codecSelferC_UTF81234, string("extra"))
879 z.EncSendContainerState(codecSelfer_containerMapValue1234)
883 yym14 := z.EncBinary()
887 h.encMapstringSlicestring((map[string][]string)(x.Extra), e)
893 z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
895 z.EncSendContainerState(codecSelfer_containerMapEnd1234)
901 func (x *UserInfo) CodecDecodeSelf(d *codec1978.Decoder) {
902 var h codecSelfer1234
903 z, r := codec1978.GenHelperDecoder(d)
905 yym1 := z.DecBinary()
908 } else if z.HasExtensions() && z.DecExt(x) {
910 yyct2 := r.ContainerType()
911 if yyct2 == codecSelferValueTypeMap1234 {
912 yyl2 := r.ReadMapStart()
914 z.DecSendContainerState(codecSelfer_containerMapEnd1234)
916 x.codecDecodeSelfFromMap(yyl2, d)
918 } else if yyct2 == codecSelferValueTypeArray1234 {
919 yyl2 := r.ReadArrayStart()
921 z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
923 x.codecDecodeSelfFromArray(yyl2, d)
926 panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
931 func (x *UserInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
932 var h codecSelfer1234
933 z, r := codec1978.GenHelperDecoder(d)
935 var yys3Slc = z.DecScratchBuffer() // default slice to decode into
937 var yyhl3 bool = l >= 0
938 for yyj3 := 0; ; yyj3++ {
948 z.DecSendContainerState(codecSelfer_containerMapKey1234)
949 yys3Slc = r.DecodeBytes(yys3Slc, true, true)
950 yys3 := string(yys3Slc)
951 z.DecSendContainerState(codecSelfer_containerMapValue1234)
954 if r.TryDecodeAsNil() {
957 x.Username = string(r.DecodeString())
960 if r.TryDecodeAsNil() {
963 x.UID = string(r.DecodeString())
966 if r.TryDecodeAsNil() {
970 yym7 := z.DecBinary()
974 z.F.DecSliceStringX(yyv6, false, d)
978 if r.TryDecodeAsNil() {
982 yym9 := z.DecBinary()
986 h.decMapstringSlicestring((*map[string][]string)(yyv8), d)
990 z.DecStructFieldNotFound(-1, yys3)
993 z.DecSendContainerState(codecSelfer_containerMapEnd1234)
996 func (x *UserInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
997 var h codecSelfer1234
998 z, r := codec1978.GenHelperDecoder(d)
1002 var yyhl10 bool = l >= 0
1007 yyb10 = r.CheckBreak()
1010 z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
1013 z.DecSendContainerState(codecSelfer_containerArrayElem1234)
1014 if r.TryDecodeAsNil() {
1017 x.Username = string(r.DecodeString())
1023 yyb10 = r.CheckBreak()
1026 z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
1029 z.DecSendContainerState(codecSelfer_containerArrayElem1234)
1030 if r.TryDecodeAsNil() {
1033 x.UID = string(r.DecodeString())
1039 yyb10 = r.CheckBreak()
1042 z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
1045 z.DecSendContainerState(codecSelfer_containerArrayElem1234)
1046 if r.TryDecodeAsNil() {
1050 yym14 := z.DecBinary()
1054 z.F.DecSliceStringX(yyv13, false, d)
1061 yyb10 = r.CheckBreak()
1064 z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
1067 z.DecSendContainerState(codecSelfer_containerArrayElem1234)
1068 if r.TryDecodeAsNil() {
1072 yym16 := z.DecBinary()
1076 h.decMapstringSlicestring((*map[string][]string)(yyv15), d)
1084 yyb10 = r.CheckBreak()
1089 z.DecSendContainerState(codecSelfer_containerArrayElem1234)
1090 z.DecStructFieldNotFound(yyj10-1, "")
1092 z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
1095 func (x codecSelfer1234) encMapstringSlicestring(v map[string][]string, e *codec1978.Encoder) {
1096 var h codecSelfer1234
1097 z, r := codec1978.GenHelperEncoder(e)
1099 r.EncodeMapStart(len(v))
1100 for yyk1, yyv1 := range v {
1101 z.EncSendContainerState(codecSelfer_containerMapKey1234)
1102 yym2 := z.EncBinary()
1106 r.EncodeString(codecSelferC_UTF81234, string(yyk1))
1108 z.EncSendContainerState(codecSelfer_containerMapValue1234)
1112 yym3 := z.EncBinary()
1116 z.F.EncSliceStringV(yyv1, false, e)
1120 z.EncSendContainerState(codecSelfer_containerMapEnd1234)
1123 func (x codecSelfer1234) decMapstringSlicestring(v *map[string][]string, d *codec1978.Decoder) {
1124 var h codecSelfer1234
1125 z, r := codec1978.GenHelperDecoder(d)
1129 yyl1 := r.ReadMapStart()
1130 yybh1 := z.DecBasicHandle()
1132 yyrl1, _ := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40)
1133 yyv1 = make(map[string][]string, yyrl1)
1139 if yybh1.MapValueReset {
1143 for yyj1 := 0; yyj1 < yyl1; yyj1++ {
1144 z.DecSendContainerState(codecSelfer_containerMapKey1234)
1145 if r.TryDecodeAsNil() {
1148 yymk1 = string(r.DecodeString())
1156 z.DecSendContainerState(codecSelfer_containerMapValue1234)
1157 if r.TryDecodeAsNil() {
1161 yym4 := z.DecBinary()
1165 z.F.DecSliceStringX(yyv3, false, d)
1173 } else if yyl1 < 0 {
1174 for yyj1 := 0; !r.CheckBreak(); yyj1++ {
1175 z.DecSendContainerState(codecSelfer_containerMapKey1234)
1176 if r.TryDecodeAsNil() {
1179 yymk1 = string(r.DecodeString())
1187 z.DecSendContainerState(codecSelfer_containerMapValue1234)
1188 if r.TryDecodeAsNil() {
1192 yym7 := z.DecBinary()
1196 z.F.DecSliceStringX(yyv6, false, d)
1204 } // else len==0: TODO: Should we clear map entries?
1205 z.DecSendContainerState(codecSelfer_containerMapEnd1234)
1208 func (x codecSelfer1234) encSlicestring(v []string, e *codec1978.Encoder) {
1209 var h codecSelfer1234
1210 z, r := codec1978.GenHelperEncoder(e)
1212 r.EncodeArrayStart(len(v))
1213 for _, yyv1 := range v {
1214 z.EncSendContainerState(codecSelfer_containerArrayElem1234)
1215 yym2 := z.EncBinary()
1219 r.EncodeString(codecSelferC_UTF81234, string(yyv1))
1222 z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
1225 func (x codecSelfer1234) decSlicestring(v *[]string, d *codec1978.Decoder) {
1226 var h codecSelfer1234
1227 z, r := codec1978.GenHelperDecoder(d)
1231 yyh1, yyl1 := z.DecSliceHelperStart()
1238 } else if len(yyv1) != 0 {
1242 } else if yyl1 > 0 {
1243 var yyrr1, yyrl1 int
1246 yyrr1 = yyl1 // len(yyv1)
1247 if yyl1 > cap(yyv1) {
1249 yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
1251 if yyrl1 <= cap(yyv1) {
1254 yyv1 = make([]string, yyrl1)
1257 yyv1 = make([]string, yyrl1)
1261 } else if yyl1 != len(yyv1) {
1266 for ; yyj1 < yyrr1; yyj1++ {
1267 yyh1.ElemContainerState(yyj1)
1268 if r.TryDecodeAsNil() {
1271 yyv1[yyj1] = string(r.DecodeString())
1276 for ; yyj1 < yyl1; yyj1++ {
1277 yyv1 = append(yyv1, "")
1278 yyh1.ElemContainerState(yyj1)
1279 if r.TryDecodeAsNil() {
1282 yyv1[yyj1] = string(r.DecodeString())
1290 for ; !r.CheckBreak(); yyj1++ {
1292 if yyj1 >= len(yyv1) {
1293 yyv1 = append(yyv1, "") // var yyz1 string
1296 yyh1.ElemContainerState(yyj1)
1297 if yyj1 < len(yyv1) {
1298 if r.TryDecodeAsNil() {
1301 yyv1[yyj1] = string(r.DecodeString())
1309 if yyj1 < len(yyv1) {
1312 } else if yyj1 == 0 && yyv1 == nil {