regen codecs

This commit is contained in:
Jordan Liggitt 2016-02-06 00:27:59 -05:00
parent 6b97e2ec51
commit dd5d98d80a
14 changed files with 58089 additions and 57481 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -160,25 +160,25 @@ func (x *RawNode) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
yym9 := z.DecBinary() yym1 := z.DecBinary()
_ = yym9 _ = yym1
if false { if false {
} else if z.HasExtensions() && z.DecExt(x) { } else if z.HasExtensions() && z.DecExt(x) {
} else { } else {
yyct10 := r.ContainerType() yyct2 := r.ContainerType()
if yyct10 == codecSelferValueTypeMap1234 { if yyct2 == codecSelferValueTypeMap1234 {
yyl10 := r.ReadMapStart() yyl2 := r.ReadMapStart()
if yyl10 == 0 { if yyl2 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else { } else {
x.codecDecodeSelfFromMap(yyl10, d) x.codecDecodeSelfFromMap(yyl2, d)
} }
} else if yyct10 == codecSelferValueTypeArray1234 { } else if yyct2 == codecSelferValueTypeArray1234 {
yyl10 := r.ReadArrayStart() yyl2 := r.ReadArrayStart()
if yyl10 == 0 { if yyl2 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
x.codecDecodeSelfFromArray(yyl10, d) x.codecDecodeSelfFromArray(yyl2, d)
} }
} else { } else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
@ -190,12 +190,12 @@ func (x *RawNode) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yys11Slc = z.DecScratchBuffer() // default slice to decode into var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys11Slc _ = yys3Slc
var yyhl11 bool = l >= 0 var yyhl3 bool = l >= 0
for yyj11 := 0; ; yyj11++ { for yyj3 := 0; ; yyj3++ {
if yyhl11 { if yyhl3 {
if yyj11 >= l { if yyj3 >= l {
break break
} }
} else { } else {
@ -204,10 +204,10 @@ func (x *RawNode) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
} }
} }
z.DecSendContainerState(codecSelfer_containerMapKey1234) z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys11Slc = r.DecodeBytes(yys11Slc, true, true) yys3Slc = r.DecodeBytes(yys3Slc, true, true)
yys11 := string(yys11Slc) yys3 := string(yys3Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234) z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys11 { switch yys3 {
case "kind": case "kind":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
@ -221,9 +221,9 @@ func (x *RawNode) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
x.APIVersion = string(r.DecodeString()) x.APIVersion = string(r.DecodeString())
} }
default: default:
z.DecStructFieldNotFound(-1, yys11) z.DecStructFieldNotFound(-1, yys3)
} // end switch yys11 } // end switch yys3
} // end for yyj11 } // end for yyj3
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} }
@ -231,16 +231,16 @@ func (x *RawNode) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj14 int var yyj6 int
var yyb14 bool var yyb6 bool
var yyhl14 bool = l >= 0 var yyhl6 bool = l >= 0
yyj14++ yyj6++
if yyhl14 { if yyhl6 {
yyb14 = yyj14 > l yyb6 = yyj6 > l
} else { } else {
yyb14 = r.CheckBreak() yyb6 = r.CheckBreak()
} }
if yyb14 { if yyb6 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -250,13 +250,13 @@ func (x *RawNode) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
} else { } else {
x.Kind = string(r.DecodeString()) x.Kind = string(r.DecodeString())
} }
yyj14++ yyj6++
if yyhl14 { if yyhl6 {
yyb14 = yyj14 > l yyb6 = yyj6 > l
} else { } else {
yyb14 = r.CheckBreak() yyb6 = r.CheckBreak()
} }
if yyb14 { if yyb6 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -267,17 +267,17 @@ func (x *RawNode) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
x.APIVersion = string(r.DecodeString()) x.APIVersion = string(r.DecodeString())
} }
for { for {
yyj14++ yyj6++
if yyhl14 { if yyhl6 {
yyb14 = yyj14 > l yyb6 = yyj6 > l
} else { } else {
yyb14 = r.CheckBreak() yyb6 = r.CheckBreak()
} }
if yyb14 { if yyb6 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj14-1, "") z.DecStructFieldNotFound(yyj6-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }
@ -289,36 +289,36 @@ func (x *RawPod) CodecEncodeSelf(e *codec1978.Encoder) {
if x == nil { if x == nil {
r.EncodeNil() r.EncodeNil()
} else { } else {
yym17 := z.EncBinary() yym1 := z.EncBinary()
_ = yym17 _ = yym1
if false { if false {
} else if z.HasExtensions() && z.EncExt(x) { } else if z.HasExtensions() && z.EncExt(x) {
} else { } else {
yysep18 := !z.EncBinary() yysep2 := !z.EncBinary()
yy2arr18 := z.EncBasicHandle().StructToArray yy2arr2 := z.EncBasicHandle().StructToArray
var yyq18 [2]bool var yyq2 [2]bool
_, _, _ = yysep18, yyq18, yy2arr18 _, _, _ = yysep2, yyq2, yy2arr2
const yyr18 bool = false const yyr2 bool = false
yyq18[0] = x.Kind != "" yyq2[0] = x.Kind != ""
yyq18[1] = x.APIVersion != "" yyq2[1] = x.APIVersion != ""
var yynn18 int var yynn2 int
if yyr18 || yy2arr18 { if yyr2 || yy2arr2 {
r.EncodeArrayStart(2) r.EncodeArrayStart(2)
} else { } else {
yynn18 = 0 yynn2 = 0
for _, b := range yyq18 { for _, b := range yyq2 {
if b { if b {
yynn18++ yynn2++
} }
} }
r.EncodeMapStart(yynn18) r.EncodeMapStart(yynn2)
yynn18 = 0 yynn2 = 0
} }
if yyr18 || yy2arr18 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq18[0] { if yyq2[0] {
yym20 := z.EncBinary() yym4 := z.EncBinary()
_ = yym20 _ = yym4
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
@ -327,23 +327,23 @@ func (x *RawPod) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, "") r.EncodeString(codecSelferC_UTF81234, "")
} }
} else { } else {
if yyq18[0] { if yyq2[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind")) r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym21 := z.EncBinary() yym5 := z.EncBinary()
_ = yym21 _ = yym5
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
} }
} }
} }
if yyr18 || yy2arr18 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq18[1] { if yyq2[1] {
yym23 := z.EncBinary() yym7 := z.EncBinary()
_ = yym23 _ = yym7
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
@ -352,19 +352,19 @@ func (x *RawPod) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, "") r.EncodeString(codecSelferC_UTF81234, "")
} }
} else { } else {
if yyq18[1] { if yyq2[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym24 := z.EncBinary() yym8 := z.EncBinary()
_ = yym24 _ = yym8
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
} }
} }
} }
if yyr18 || yy2arr18 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234) z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234) z.EncSendContainerState(codecSelfer_containerMapEnd1234)
@ -377,25 +377,25 @@ func (x *RawPod) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
yym25 := z.DecBinary() yym1 := z.DecBinary()
_ = yym25 _ = yym1
if false { if false {
} else if z.HasExtensions() && z.DecExt(x) { } else if z.HasExtensions() && z.DecExt(x) {
} else { } else {
yyct26 := r.ContainerType() yyct2 := r.ContainerType()
if yyct26 == codecSelferValueTypeMap1234 { if yyct2 == codecSelferValueTypeMap1234 {
yyl26 := r.ReadMapStart() yyl2 := r.ReadMapStart()
if yyl26 == 0 { if yyl2 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else { } else {
x.codecDecodeSelfFromMap(yyl26, d) x.codecDecodeSelfFromMap(yyl2, d)
} }
} else if yyct26 == codecSelferValueTypeArray1234 { } else if yyct2 == codecSelferValueTypeArray1234 {
yyl26 := r.ReadArrayStart() yyl2 := r.ReadArrayStart()
if yyl26 == 0 { if yyl2 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
x.codecDecodeSelfFromArray(yyl26, d) x.codecDecodeSelfFromArray(yyl2, d)
} }
} else { } else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
@ -407,12 +407,12 @@ func (x *RawPod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yys27Slc = z.DecScratchBuffer() // default slice to decode into var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys27Slc _ = yys3Slc
var yyhl27 bool = l >= 0 var yyhl3 bool = l >= 0
for yyj27 := 0; ; yyj27++ { for yyj3 := 0; ; yyj3++ {
if yyhl27 { if yyhl3 {
if yyj27 >= l { if yyj3 >= l {
break break
} }
} else { } else {
@ -421,10 +421,10 @@ func (x *RawPod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
} }
} }
z.DecSendContainerState(codecSelfer_containerMapKey1234) z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys27Slc = r.DecodeBytes(yys27Slc, true, true) yys3Slc = r.DecodeBytes(yys3Slc, true, true)
yys27 := string(yys27Slc) yys3 := string(yys3Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234) z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys27 { switch yys3 {
case "kind": case "kind":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
@ -438,9 +438,9 @@ func (x *RawPod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
x.APIVersion = string(r.DecodeString()) x.APIVersion = string(r.DecodeString())
} }
default: default:
z.DecStructFieldNotFound(-1, yys27) z.DecStructFieldNotFound(-1, yys3)
} // end switch yys27 } // end switch yys3
} // end for yyj27 } // end for yyj3
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} }
@ -448,16 +448,16 @@ func (x *RawPod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj30 int var yyj6 int
var yyb30 bool var yyb6 bool
var yyhl30 bool = l >= 0 var yyhl6 bool = l >= 0
yyj30++ yyj6++
if yyhl30 { if yyhl6 {
yyb30 = yyj30 > l yyb6 = yyj6 > l
} else { } else {
yyb30 = r.CheckBreak() yyb6 = r.CheckBreak()
} }
if yyb30 { if yyb6 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -467,13 +467,13 @@ func (x *RawPod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
} else { } else {
x.Kind = string(r.DecodeString()) x.Kind = string(r.DecodeString())
} }
yyj30++ yyj6++
if yyhl30 { if yyhl6 {
yyb30 = yyj30 > l yyb6 = yyj6 > l
} else { } else {
yyb30 = r.CheckBreak() yyb6 = r.CheckBreak()
} }
if yyb30 { if yyb6 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -484,17 +484,17 @@ func (x *RawPod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
x.APIVersion = string(r.DecodeString()) x.APIVersion = string(r.DecodeString())
} }
for { for {
yyj30++ yyj6++
if yyhl30 { if yyhl6 {
yyb30 = yyj30 > l yyb6 = yyj6 > l
} else { } else {
yyb30 = r.CheckBreak() yyb6 = r.CheckBreak()
} }
if yyb30 { if yyb6 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj30-1, "") z.DecStructFieldNotFound(yyj6-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }

View File

@ -160,25 +160,25 @@ func (x *RawNode) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
yym9 := z.DecBinary() yym1 := z.DecBinary()
_ = yym9 _ = yym1
if false { if false {
} else if z.HasExtensions() && z.DecExt(x) { } else if z.HasExtensions() && z.DecExt(x) {
} else { } else {
yyct10 := r.ContainerType() yyct2 := r.ContainerType()
if yyct10 == codecSelferValueTypeMap1234 { if yyct2 == codecSelferValueTypeMap1234 {
yyl10 := r.ReadMapStart() yyl2 := r.ReadMapStart()
if yyl10 == 0 { if yyl2 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else { } else {
x.codecDecodeSelfFromMap(yyl10, d) x.codecDecodeSelfFromMap(yyl2, d)
} }
} else if yyct10 == codecSelferValueTypeArray1234 { } else if yyct2 == codecSelferValueTypeArray1234 {
yyl10 := r.ReadArrayStart() yyl2 := r.ReadArrayStart()
if yyl10 == 0 { if yyl2 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
x.codecDecodeSelfFromArray(yyl10, d) x.codecDecodeSelfFromArray(yyl2, d)
} }
} else { } else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
@ -190,12 +190,12 @@ func (x *RawNode) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yys11Slc = z.DecScratchBuffer() // default slice to decode into var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys11Slc _ = yys3Slc
var yyhl11 bool = l >= 0 var yyhl3 bool = l >= 0
for yyj11 := 0; ; yyj11++ { for yyj3 := 0; ; yyj3++ {
if yyhl11 { if yyhl3 {
if yyj11 >= l { if yyj3 >= l {
break break
} }
} else { } else {
@ -204,10 +204,10 @@ func (x *RawNode) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
} }
} }
z.DecSendContainerState(codecSelfer_containerMapKey1234) z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys11Slc = r.DecodeBytes(yys11Slc, true, true) yys3Slc = r.DecodeBytes(yys3Slc, true, true)
yys11 := string(yys11Slc) yys3 := string(yys3Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234) z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys11 { switch yys3 {
case "kind": case "kind":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
@ -221,9 +221,9 @@ func (x *RawNode) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
x.APIVersion = string(r.DecodeString()) x.APIVersion = string(r.DecodeString())
} }
default: default:
z.DecStructFieldNotFound(-1, yys11) z.DecStructFieldNotFound(-1, yys3)
} // end switch yys11 } // end switch yys3
} // end for yyj11 } // end for yyj3
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} }
@ -231,16 +231,16 @@ func (x *RawNode) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj14 int var yyj6 int
var yyb14 bool var yyb6 bool
var yyhl14 bool = l >= 0 var yyhl6 bool = l >= 0
yyj14++ yyj6++
if yyhl14 { if yyhl6 {
yyb14 = yyj14 > l yyb6 = yyj6 > l
} else { } else {
yyb14 = r.CheckBreak() yyb6 = r.CheckBreak()
} }
if yyb14 { if yyb6 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -250,13 +250,13 @@ func (x *RawNode) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
} else { } else {
x.Kind = string(r.DecodeString()) x.Kind = string(r.DecodeString())
} }
yyj14++ yyj6++
if yyhl14 { if yyhl6 {
yyb14 = yyj14 > l yyb6 = yyj6 > l
} else { } else {
yyb14 = r.CheckBreak() yyb6 = r.CheckBreak()
} }
if yyb14 { if yyb6 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -267,17 +267,17 @@ func (x *RawNode) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
x.APIVersion = string(r.DecodeString()) x.APIVersion = string(r.DecodeString())
} }
for { for {
yyj14++ yyj6++
if yyhl14 { if yyhl6 {
yyb14 = yyj14 > l yyb6 = yyj6 > l
} else { } else {
yyb14 = r.CheckBreak() yyb6 = r.CheckBreak()
} }
if yyb14 { if yyb6 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj14-1, "") z.DecStructFieldNotFound(yyj6-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }
@ -289,36 +289,36 @@ func (x *RawPod) CodecEncodeSelf(e *codec1978.Encoder) {
if x == nil { if x == nil {
r.EncodeNil() r.EncodeNil()
} else { } else {
yym17 := z.EncBinary() yym1 := z.EncBinary()
_ = yym17 _ = yym1
if false { if false {
} else if z.HasExtensions() && z.EncExt(x) { } else if z.HasExtensions() && z.EncExt(x) {
} else { } else {
yysep18 := !z.EncBinary() yysep2 := !z.EncBinary()
yy2arr18 := z.EncBasicHandle().StructToArray yy2arr2 := z.EncBasicHandle().StructToArray
var yyq18 [2]bool var yyq2 [2]bool
_, _, _ = yysep18, yyq18, yy2arr18 _, _, _ = yysep2, yyq2, yy2arr2
const yyr18 bool = false const yyr2 bool = false
yyq18[0] = x.Kind != "" yyq2[0] = x.Kind != ""
yyq18[1] = x.APIVersion != "" yyq2[1] = x.APIVersion != ""
var yynn18 int var yynn2 int
if yyr18 || yy2arr18 { if yyr2 || yy2arr2 {
r.EncodeArrayStart(2) r.EncodeArrayStart(2)
} else { } else {
yynn18 = 0 yynn2 = 0
for _, b := range yyq18 { for _, b := range yyq2 {
if b { if b {
yynn18++ yynn2++
} }
} }
r.EncodeMapStart(yynn18) r.EncodeMapStart(yynn2)
yynn18 = 0 yynn2 = 0
} }
if yyr18 || yy2arr18 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq18[0] { if yyq2[0] {
yym20 := z.EncBinary() yym4 := z.EncBinary()
_ = yym20 _ = yym4
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
@ -327,23 +327,23 @@ func (x *RawPod) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, "") r.EncodeString(codecSelferC_UTF81234, "")
} }
} else { } else {
if yyq18[0] { if yyq2[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind")) r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym21 := z.EncBinary() yym5 := z.EncBinary()
_ = yym21 _ = yym5
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
} }
} }
} }
if yyr18 || yy2arr18 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq18[1] { if yyq2[1] {
yym23 := z.EncBinary() yym7 := z.EncBinary()
_ = yym23 _ = yym7
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
@ -352,19 +352,19 @@ func (x *RawPod) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, "") r.EncodeString(codecSelferC_UTF81234, "")
} }
} else { } else {
if yyq18[1] { if yyq2[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym24 := z.EncBinary() yym8 := z.EncBinary()
_ = yym24 _ = yym8
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
} }
} }
} }
if yyr18 || yy2arr18 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234) z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234) z.EncSendContainerState(codecSelfer_containerMapEnd1234)
@ -377,25 +377,25 @@ func (x *RawPod) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
yym25 := z.DecBinary() yym1 := z.DecBinary()
_ = yym25 _ = yym1
if false { if false {
} else if z.HasExtensions() && z.DecExt(x) { } else if z.HasExtensions() && z.DecExt(x) {
} else { } else {
yyct26 := r.ContainerType() yyct2 := r.ContainerType()
if yyct26 == codecSelferValueTypeMap1234 { if yyct2 == codecSelferValueTypeMap1234 {
yyl26 := r.ReadMapStart() yyl2 := r.ReadMapStart()
if yyl26 == 0 { if yyl2 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else { } else {
x.codecDecodeSelfFromMap(yyl26, d) x.codecDecodeSelfFromMap(yyl2, d)
} }
} else if yyct26 == codecSelferValueTypeArray1234 { } else if yyct2 == codecSelferValueTypeArray1234 {
yyl26 := r.ReadArrayStart() yyl2 := r.ReadArrayStart()
if yyl26 == 0 { if yyl2 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
x.codecDecodeSelfFromArray(yyl26, d) x.codecDecodeSelfFromArray(yyl2, d)
} }
} else { } else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
@ -407,12 +407,12 @@ func (x *RawPod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yys27Slc = z.DecScratchBuffer() // default slice to decode into var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys27Slc _ = yys3Slc
var yyhl27 bool = l >= 0 var yyhl3 bool = l >= 0
for yyj27 := 0; ; yyj27++ { for yyj3 := 0; ; yyj3++ {
if yyhl27 { if yyhl3 {
if yyj27 >= l { if yyj3 >= l {
break break
} }
} else { } else {
@ -421,10 +421,10 @@ func (x *RawPod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
} }
} }
z.DecSendContainerState(codecSelfer_containerMapKey1234) z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys27Slc = r.DecodeBytes(yys27Slc, true, true) yys3Slc = r.DecodeBytes(yys3Slc, true, true)
yys27 := string(yys27Slc) yys3 := string(yys3Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234) z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys27 { switch yys3 {
case "kind": case "kind":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
@ -438,9 +438,9 @@ func (x *RawPod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
x.APIVersion = string(r.DecodeString()) x.APIVersion = string(r.DecodeString())
} }
default: default:
z.DecStructFieldNotFound(-1, yys27) z.DecStructFieldNotFound(-1, yys3)
} // end switch yys27 } // end switch yys3
} // end for yyj27 } // end for yyj3
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} }
@ -448,16 +448,16 @@ func (x *RawPod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj30 int var yyj6 int
var yyb30 bool var yyb6 bool
var yyhl30 bool = l >= 0 var yyhl6 bool = l >= 0
yyj30++ yyj6++
if yyhl30 { if yyhl6 {
yyb30 = yyj30 > l yyb6 = yyj6 > l
} else { } else {
yyb30 = r.CheckBreak() yyb6 = r.CheckBreak()
} }
if yyb30 { if yyb6 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -467,13 +467,13 @@ func (x *RawPod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
} else { } else {
x.Kind = string(r.DecodeString()) x.Kind = string(r.DecodeString())
} }
yyj30++ yyj6++
if yyhl30 { if yyhl6 {
yyb30 = yyj30 > l yyb6 = yyj6 > l
} else { } else {
yyb30 = r.CheckBreak() yyb6 = r.CheckBreak()
} }
if yyb30 { if yyb6 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -484,17 +484,17 @@ func (x *RawPod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
x.APIVersion = string(r.DecodeString()) x.APIVersion = string(r.DecodeString())
} }
for { for {
yyj30++ yyj6++
if yyhl30 { if yyhl6 {
yyb30 = yyj30 > l yyb6 = yyj6 > l
} else { } else {
yyb30 = r.CheckBreak() yyb6 = r.CheckBreak()
} }
if yyb30 { if yyb6 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj30-1, "") z.DecStructFieldNotFound(yyj6-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }

File diff suppressed because it is too large Load Diff

View File

@ -117,14 +117,14 @@ func (x *TestStruct) CodecEncodeSelf(e *codec1978.Encoder) {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata")) r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy5 := &x.ObjectMeta yy6 := &x.ObjectMeta
yy5.CodecEncodeSelf(e) yy6.CodecEncodeSelf(e)
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym7 := z.EncBinary() yym9 := z.EncBinary()
_ = yym7 _ = yym9
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key)) r.EncodeString(codecSelferC_UTF81234, string(x.Key))
@ -133,8 +133,8 @@ func (x *TestStruct) CodecEncodeSelf(e *codec1978.Encoder) {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Key")) r.EncodeString(codecSelferC_UTF81234, string("Key"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym8 := z.EncBinary() yym10 := z.EncBinary()
_ = yym8 _ = yym10
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key)) r.EncodeString(codecSelferC_UTF81234, string(x.Key))
@ -145,8 +145,8 @@ func (x *TestStruct) CodecEncodeSelf(e *codec1978.Encoder) {
if x.Map == nil { if x.Map == nil {
r.EncodeNil() r.EncodeNil()
} else { } else {
yym10 := z.EncBinary() yym12 := z.EncBinary()
_ = yym10 _ = yym12
if false { if false {
} else { } else {
z.F.EncMapStringIntV(x.Map, false, e) z.F.EncMapStringIntV(x.Map, false, e)
@ -159,8 +159,8 @@ func (x *TestStruct) CodecEncodeSelf(e *codec1978.Encoder) {
if x.Map == nil { if x.Map == nil {
r.EncodeNil() r.EncodeNil()
} else { } else {
yym11 := z.EncBinary() yym13 := z.EncBinary()
_ = yym11 _ = yym13
if false { if false {
} else { } else {
z.F.EncMapStringIntV(x.Map, false, e) z.F.EncMapStringIntV(x.Map, false, e)
@ -172,8 +172,8 @@ func (x *TestStruct) CodecEncodeSelf(e *codec1978.Encoder) {
if x.StringList == nil { if x.StringList == nil {
r.EncodeNil() r.EncodeNil()
} else { } else {
yym13 := z.EncBinary() yym15 := z.EncBinary()
_ = yym13 _ = yym15
if false { if false {
} else { } else {
z.F.EncSliceStringV(x.StringList, false, e) z.F.EncSliceStringV(x.StringList, false, e)
@ -186,8 +186,8 @@ func (x *TestStruct) CodecEncodeSelf(e *codec1978.Encoder) {
if x.StringList == nil { if x.StringList == nil {
r.EncodeNil() r.EncodeNil()
} else { } else {
yym14 := z.EncBinary() yym16 := z.EncBinary()
_ = yym14 _ = yym16
if false { if false {
} else { } else {
z.F.EncSliceStringV(x.StringList, false, e) z.F.EncSliceStringV(x.StringList, false, e)
@ -199,8 +199,8 @@ func (x *TestStruct) CodecEncodeSelf(e *codec1978.Encoder) {
if x.IntList == nil { if x.IntList == nil {
r.EncodeNil() r.EncodeNil()
} else { } else {
yym16 := z.EncBinary() yym18 := z.EncBinary()
_ = yym16 _ = yym18
if false { if false {
} else { } else {
z.F.EncSliceIntV(x.IntList, false, e) z.F.EncSliceIntV(x.IntList, false, e)
@ -213,8 +213,8 @@ func (x *TestStruct) CodecEncodeSelf(e *codec1978.Encoder) {
if x.IntList == nil { if x.IntList == nil {
r.EncodeNil() r.EncodeNil()
} else { } else {
yym17 := z.EncBinary() yym19 := z.EncBinary()
_ = yym17 _ = yym19
if false { if false {
} else { } else {
z.F.EncSliceIntV(x.IntList, false, e) z.F.EncSliceIntV(x.IntList, false, e)
@ -224,8 +224,8 @@ func (x *TestStruct) CodecEncodeSelf(e *codec1978.Encoder) {
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[5] { if yyq2[5] {
yym19 := z.EncBinary() yym21 := z.EncBinary()
_ = yym19 _ = yym21
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
@ -238,8 +238,8 @@ func (x *TestStruct) CodecEncodeSelf(e *codec1978.Encoder) {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind")) r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym20 := z.EncBinary() yym22 := z.EncBinary()
_ = yym20 _ = yym22
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
@ -249,8 +249,8 @@ func (x *TestStruct) CodecEncodeSelf(e *codec1978.Encoder) {
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[6] { if yyq2[6] {
yym22 := z.EncBinary() yym24 := z.EncBinary()
_ = yym22 _ = yym24
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
@ -263,8 +263,8 @@ func (x *TestStruct) CodecEncodeSelf(e *codec1978.Encoder) {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym23 := z.EncBinary() yym25 := z.EncBinary()
_ = yym23 _ = yym25
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
@ -284,25 +284,25 @@ func (x *TestStruct) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
yym24 := z.DecBinary() yym1 := z.DecBinary()
_ = yym24 _ = yym1
if false { if false {
} else if z.HasExtensions() && z.DecExt(x) { } else if z.HasExtensions() && z.DecExt(x) {
} else { } else {
yyct25 := r.ContainerType() yyct2 := r.ContainerType()
if yyct25 == codecSelferValueTypeMap1234 { if yyct2 == codecSelferValueTypeMap1234 {
yyl25 := r.ReadMapStart() yyl2 := r.ReadMapStart()
if yyl25 == 0 { if yyl2 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else { } else {
x.codecDecodeSelfFromMap(yyl25, d) x.codecDecodeSelfFromMap(yyl2, d)
} }
} else if yyct25 == codecSelferValueTypeArray1234 { } else if yyct2 == codecSelferValueTypeArray1234 {
yyl25 := r.ReadArrayStart() yyl2 := r.ReadArrayStart()
if yyl25 == 0 { if yyl2 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
x.codecDecodeSelfFromArray(yyl25, d) x.codecDecodeSelfFromArray(yyl2, d)
} }
} else { } else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
@ -314,12 +314,12 @@ func (x *TestStruct) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yys26Slc = z.DecScratchBuffer() // default slice to decode into var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys26Slc _ = yys3Slc
var yyhl26 bool = l >= 0 var yyhl3 bool = l >= 0
for yyj26 := 0; ; yyj26++ { for yyj3 := 0; ; yyj3++ {
if yyhl26 { if yyhl3 {
if yyj26 >= l { if yyj3 >= l {
break break
} }
} else { } else {
@ -328,16 +328,16 @@ func (x *TestStruct) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
} }
} }
z.DecSendContainerState(codecSelfer_containerMapKey1234) z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys26Slc = r.DecodeBytes(yys26Slc, true, true) yys3Slc = r.DecodeBytes(yys3Slc, true, true)
yys26 := string(yys26Slc) yys3 := string(yys3Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234) z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys26 { switch yys3 {
case "metadata": case "metadata":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_api.ObjectMeta{} x.ObjectMeta = pkg2_api.ObjectMeta{}
} else { } else {
yyv27 := &x.ObjectMeta yyv4 := &x.ObjectMeta
yyv27.CodecDecodeSelf(d) yyv4.CodecDecodeSelf(d)
} }
case "Key": case "Key":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
@ -349,36 +349,36 @@ func (x *TestStruct) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Map = nil x.Map = nil
} else { } else {
yyv29 := &x.Map yyv6 := &x.Map
yym30 := z.DecBinary() yym7 := z.DecBinary()
_ = yym30 _ = yym7
if false { if false {
} else { } else {
z.F.DecMapStringIntX(yyv29, false, d) z.F.DecMapStringIntX(yyv6, false, d)
} }
} }
case "StringList": case "StringList":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.StringList = nil x.StringList = nil
} else { } else {
yyv31 := &x.StringList yyv8 := &x.StringList
yym32 := z.DecBinary() yym9 := z.DecBinary()
_ = yym32 _ = yym9
if false { if false {
} else { } else {
z.F.DecSliceStringX(yyv31, false, d) z.F.DecSliceStringX(yyv8, false, d)
} }
} }
case "IntList": case "IntList":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.IntList = nil x.IntList = nil
} else { } else {
yyv33 := &x.IntList yyv10 := &x.IntList
yym34 := z.DecBinary() yym11 := z.DecBinary()
_ = yym34 _ = yym11
if false { if false {
} else { } else {
z.F.DecSliceIntX(yyv33, false, d) z.F.DecSliceIntX(yyv10, false, d)
} }
} }
case "kind": case "kind":
@ -394,9 +394,9 @@ func (x *TestStruct) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
x.APIVersion = string(r.DecodeString()) x.APIVersion = string(r.DecodeString())
} }
default: default:
z.DecStructFieldNotFound(-1, yys26) z.DecStructFieldNotFound(-1, yys3)
} // end switch yys26 } // end switch yys3
} // end for yyj26 } // end for yyj3
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} }
@ -404,16 +404,16 @@ func (x *TestStruct) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj37 int var yyj14 int
var yyb37 bool var yyb14 bool
var yyhl37 bool = l >= 0 var yyhl14 bool = l >= 0
yyj37++ yyj14++
if yyhl37 { if yyhl14 {
yyb37 = yyj37 > l yyb14 = yyj14 > l
} else { } else {
yyb37 = r.CheckBreak() yyb14 = r.CheckBreak()
} }
if yyb37 { if yyb14 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -421,16 +421,16 @@ func (x *TestStruct) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_api.ObjectMeta{} x.ObjectMeta = pkg2_api.ObjectMeta{}
} else { } else {
yyv38 := &x.ObjectMeta yyv15 := &x.ObjectMeta
yyv38.CodecDecodeSelf(d) yyv15.CodecDecodeSelf(d)
} }
yyj37++ yyj14++
if yyhl37 { if yyhl14 {
yyb37 = yyj37 > l yyb14 = yyj14 > l
} else { } else {
yyb37 = r.CheckBreak() yyb14 = r.CheckBreak()
} }
if yyb37 { if yyb14 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -440,13 +440,13 @@ func (x *TestStruct) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
} else { } else {
x.Key = string(r.DecodeString()) x.Key = string(r.DecodeString())
} }
yyj37++ yyj14++
if yyhl37 { if yyhl14 {
yyb37 = yyj37 > l yyb14 = yyj14 > l
} else { } else {
yyb37 = r.CheckBreak() yyb14 = r.CheckBreak()
} }
if yyb37 { if yyb14 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -454,21 +454,21 @@ func (x *TestStruct) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Map = nil x.Map = nil
} else { } else {
yyv40 := &x.Map yyv17 := &x.Map
yym41 := z.DecBinary() yym18 := z.DecBinary()
_ = yym41 _ = yym18
if false { if false {
} else { } else {
z.F.DecMapStringIntX(yyv40, false, d) z.F.DecMapStringIntX(yyv17, false, d)
} }
} }
yyj37++ yyj14++
if yyhl37 { if yyhl14 {
yyb37 = yyj37 > l yyb14 = yyj14 > l
} else { } else {
yyb37 = r.CheckBreak() yyb14 = r.CheckBreak()
} }
if yyb37 { if yyb14 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -476,21 +476,21 @@ func (x *TestStruct) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.StringList = nil x.StringList = nil
} else { } else {
yyv42 := &x.StringList yyv19 := &x.StringList
yym43 := z.DecBinary() yym20 := z.DecBinary()
_ = yym43 _ = yym20
if false { if false {
} else { } else {
z.F.DecSliceStringX(yyv42, false, d) z.F.DecSliceStringX(yyv19, false, d)
} }
} }
yyj37++ yyj14++
if yyhl37 { if yyhl14 {
yyb37 = yyj37 > l yyb14 = yyj14 > l
} else { } else {
yyb37 = r.CheckBreak() yyb14 = r.CheckBreak()
} }
if yyb37 { if yyb14 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -498,21 +498,21 @@ func (x *TestStruct) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.IntList = nil x.IntList = nil
} else { } else {
yyv44 := &x.IntList yyv21 := &x.IntList
yym45 := z.DecBinary() yym22 := z.DecBinary()
_ = yym45 _ = yym22
if false { if false {
} else { } else {
z.F.DecSliceIntX(yyv44, false, d) z.F.DecSliceIntX(yyv21, false, d)
} }
} }
yyj37++ yyj14++
if yyhl37 { if yyhl14 {
yyb37 = yyj37 > l yyb14 = yyj14 > l
} else { } else {
yyb37 = r.CheckBreak() yyb14 = r.CheckBreak()
} }
if yyb37 { if yyb14 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -522,13 +522,13 @@ func (x *TestStruct) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
} else { } else {
x.Kind = string(r.DecodeString()) x.Kind = string(r.DecodeString())
} }
yyj37++ yyj14++
if yyhl37 { if yyhl14 {
yyb37 = yyj37 > l yyb14 = yyj14 > l
} else { } else {
yyb37 = r.CheckBreak() yyb14 = r.CheckBreak()
} }
if yyb37 { if yyb14 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -539,17 +539,17 @@ func (x *TestStruct) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
x.APIVersion = string(r.DecodeString()) x.APIVersion = string(r.DecodeString())
} }
for { for {
yyj37++ yyj14++
if yyhl37 { if yyhl14 {
yyb37 = yyj37 > l yyb14 = yyj14 > l
} else { } else {
yyb37 = r.CheckBreak() yyb14 = r.CheckBreak()
} }
if yyb37 { if yyb14 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj37-1, "") z.DecStructFieldNotFound(yyj14-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }

View File

@ -111,13 +111,13 @@ func (x *TestResource) CodecEncodeSelf(e *codec1978.Encoder) {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata")) r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy5 := &x.ObjectMeta yy6 := &x.ObjectMeta
yy5.CodecEncodeSelf(e) yy6.CodecEncodeSelf(e)
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym7 := z.EncBinary() yym9 := z.EncBinary()
_ = yym7 _ = yym9
if false { if false {
} else { } else {
r.EncodeInt(int64(x.Value)) r.EncodeInt(int64(x.Value))
@ -126,8 +126,8 @@ func (x *TestResource) CodecEncodeSelf(e *codec1978.Encoder) {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("value")) r.EncodeString(codecSelferC_UTF81234, string("value"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym8 := z.EncBinary() yym10 := z.EncBinary()
_ = yym8 _ = yym10
if false { if false {
} else { } else {
r.EncodeInt(int64(x.Value)) r.EncodeInt(int64(x.Value))
@ -136,8 +136,8 @@ func (x *TestResource) CodecEncodeSelf(e *codec1978.Encoder) {
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[2] { if yyq2[2] {
yym10 := z.EncBinary() yym12 := z.EncBinary()
_ = yym10 _ = yym12
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
@ -150,8 +150,8 @@ func (x *TestResource) CodecEncodeSelf(e *codec1978.Encoder) {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind")) r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym11 := z.EncBinary() yym13 := z.EncBinary()
_ = yym11 _ = yym13
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
@ -161,8 +161,8 @@ func (x *TestResource) CodecEncodeSelf(e *codec1978.Encoder) {
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[3] { if yyq2[3] {
yym13 := z.EncBinary() yym15 := z.EncBinary()
_ = yym13 _ = yym15
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
@ -175,8 +175,8 @@ func (x *TestResource) CodecEncodeSelf(e *codec1978.Encoder) {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym14 := z.EncBinary() yym16 := z.EncBinary()
_ = yym14 _ = yym16
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
@ -196,25 +196,25 @@ func (x *TestResource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
yym15 := z.DecBinary() yym1 := z.DecBinary()
_ = yym15 _ = yym1
if false { if false {
} else if z.HasExtensions() && z.DecExt(x) { } else if z.HasExtensions() && z.DecExt(x) {
} else { } else {
yyct16 := r.ContainerType() yyct2 := r.ContainerType()
if yyct16 == codecSelferValueTypeMap1234 { if yyct2 == codecSelferValueTypeMap1234 {
yyl16 := r.ReadMapStart() yyl2 := r.ReadMapStart()
if yyl16 == 0 { if yyl2 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else { } else {
x.codecDecodeSelfFromMap(yyl16, d) x.codecDecodeSelfFromMap(yyl2, d)
} }
} else if yyct16 == codecSelferValueTypeArray1234 { } else if yyct2 == codecSelferValueTypeArray1234 {
yyl16 := r.ReadArrayStart() yyl2 := r.ReadArrayStart()
if yyl16 == 0 { if yyl2 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
x.codecDecodeSelfFromArray(yyl16, d) x.codecDecodeSelfFromArray(yyl2, d)
} }
} else { } else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
@ -226,12 +226,12 @@ func (x *TestResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yys17Slc = z.DecScratchBuffer() // default slice to decode into var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys17Slc _ = yys3Slc
var yyhl17 bool = l >= 0 var yyhl3 bool = l >= 0
for yyj17 := 0; ; yyj17++ { for yyj3 := 0; ; yyj3++ {
if yyhl17 { if yyhl3 {
if yyj17 >= l { if yyj3 >= l {
break break
} }
} else { } else {
@ -240,16 +240,16 @@ func (x *TestResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
} }
} }
z.DecSendContainerState(codecSelfer_containerMapKey1234) z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys17Slc = r.DecodeBytes(yys17Slc, true, true) yys3Slc = r.DecodeBytes(yys3Slc, true, true)
yys17 := string(yys17Slc) yys3 := string(yys3Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234) z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys17 { switch yys3 {
case "metadata": case "metadata":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_api.ObjectMeta{} x.ObjectMeta = pkg2_api.ObjectMeta{}
} else { } else {
yyv18 := &x.ObjectMeta yyv4 := &x.ObjectMeta
yyv18.CodecDecodeSelf(d) yyv4.CodecDecodeSelf(d)
} }
case "value": case "value":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
@ -270,9 +270,9 @@ func (x *TestResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
x.APIVersion = string(r.DecodeString()) x.APIVersion = string(r.DecodeString())
} }
default: default:
z.DecStructFieldNotFound(-1, yys17) z.DecStructFieldNotFound(-1, yys3)
} // end switch yys17 } // end switch yys3
} // end for yyj17 } // end for yyj3
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} }
@ -280,16 +280,16 @@ func (x *TestResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj22 int var yyj8 int
var yyb22 bool var yyb8 bool
var yyhl22 bool = l >= 0 var yyhl8 bool = l >= 0
yyj22++ yyj8++
if yyhl22 { if yyhl8 {
yyb22 = yyj22 > l yyb8 = yyj8 > l
} else { } else {
yyb22 = r.CheckBreak() yyb8 = r.CheckBreak()
} }
if yyb22 { if yyb8 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -297,16 +297,16 @@ func (x *TestResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_api.ObjectMeta{} x.ObjectMeta = pkg2_api.ObjectMeta{}
} else { } else {
yyv23 := &x.ObjectMeta yyv9 := &x.ObjectMeta
yyv23.CodecDecodeSelf(d) yyv9.CodecDecodeSelf(d)
} }
yyj22++ yyj8++
if yyhl22 { if yyhl8 {
yyb22 = yyj22 > l yyb8 = yyj8 > l
} else { } else {
yyb22 = r.CheckBreak() yyb8 = r.CheckBreak()
} }
if yyb22 { if yyb8 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -316,13 +316,13 @@ func (x *TestResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
} else { } else {
x.Value = int(r.DecodeInt(codecSelferBitsize1234)) x.Value = int(r.DecodeInt(codecSelferBitsize1234))
} }
yyj22++ yyj8++
if yyhl22 { if yyhl8 {
yyb22 = yyj22 > l yyb8 = yyj8 > l
} else { } else {
yyb22 = r.CheckBreak() yyb8 = r.CheckBreak()
} }
if yyb22 { if yyb8 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -332,13 +332,13 @@ func (x *TestResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
} else { } else {
x.Kind = string(r.DecodeString()) x.Kind = string(r.DecodeString())
} }
yyj22++ yyj8++
if yyhl22 { if yyhl8 {
yyb22 = yyj22 > l yyb8 = yyj8 > l
} else { } else {
yyb22 = r.CheckBreak() yyb8 = r.CheckBreak()
} }
if yyb22 { if yyb8 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -349,17 +349,17 @@ func (x *TestResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
x.APIVersion = string(r.DecodeString()) x.APIVersion = string(r.DecodeString())
} }
for { for {
yyj22++ yyj8++
if yyhl22 { if yyhl8 {
yyb22 = yyj22 > l yyb8 = yyj8 > l
} else { } else {
yyb22 = r.CheckBreak() yyb8 = r.CheckBreak()
} }
if yyb22 { if yyb8 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj22-1, "") z.DecStructFieldNotFound(yyj8-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }