示例#1
0
func (x codecSelfer7289) encNodes(v Nodes, e *codec1978.Encoder) {
	var h codecSelfer7289
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	r.EncodeArrayStart(len(v))
	yys124 := !z.EncBinary()
	if yys124 {
		for yyi124, yyv124 := range v {
			if yyi124 > 0 {
				r.EncodeArrayEntrySeparator()
			}
			if yyv124 == nil {
				r.EncodeNil()
			} else {
				yyv124.CodecEncodeSelf(e)
			}
		}
		r.EncodeArrayEnd()
	} else {
		for _, yyv124 := range v {
			if yyv124 == nil {
				r.EncodeNil()
			} else {
				yyv124.CodecEncodeSelf(e)
			}
		}
	}
}
func (x codecSelfer1234) encMapstringunversioned_Time(v map[string]pkg2_unversioned.Time, e *codec1978.Encoder) {
	var h codecSelfer1234
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	r.EncodeMapStart(len(v))
	for yyk148, yyv148 := range v {
		z.EncSendContainerState(codecSelfer_containerMapKey1234)
		yym149 := z.EncBinary()
		_ = yym149
		if false {
		} else {
			r.EncodeString(codecSelferC_UTF81234, string(yyk148))
		}
		z.EncSendContainerState(codecSelfer_containerMapValue1234)
		yy150 := &yyv148
		yym151 := z.EncBinary()
		_ = yym151
		if false {
		} else if z.HasExtensions() && z.EncExt(yy150) {
		} else if yym151 {
			z.EncBinaryMarshal(yy150)
		} else if !yym151 && z.IsJSONHandle() {
			z.EncJSONMarshal(yy150)
		} else {
			z.EncFallback(yy150)
		}
	}
	z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
示例#3
0
func (x codecSelfer5311) encSlicePtrtoNode(v []*Node, e *codec1978.Encoder) {
	var h codecSelfer5311
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	r.EncodeArrayStart(len(v))
	yys42 := !z.EncBinary()
	if yys42 {
		for yyi42, yyv42 := range v {
			if yyi42 > 0 {
				r.EncodeArrayEntrySeparator()
			}
			if yyv42 == nil {
				r.EncodeNil()
			} else {
				yyv42.CodecEncodeSelf(e)
			}
		}
		r.EncodeArrayEnd()
	} else {
		for _, yyv42 := range v {
			if yyv42 == nil {
				r.EncodeNil()
			} else {
				yyv42.CodecEncodeSelf(e)
			}
		}
	}
}
示例#4
0
func (x codecSelfer1234) encMapstringSlicestring(v map[string][]string, e *codec1978.Encoder) {
	var h codecSelfer1234
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	r.EncodeMapStart(len(v))
	for yyk1, yyv1 := range v {
		z.EncSendContainerState(codecSelfer_containerMapKey1234)
		yym2 := z.EncBinary()
		_ = yym2
		if false {
		} else {
			r.EncodeString(codecSelferC_UTF81234, string(yyk1))
		}
		z.EncSendContainerState(codecSelfer_containerMapValue1234)
		if yyv1 == nil {
			r.EncodeNil()
		} else {
			yym3 := z.EncBinary()
			_ = yym3
			if false {
			} else {
				z.F.EncSliceStringV(yyv1, false, e)
			}
		}
	}
	z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
示例#5
0
func (x codecSelfer4402) encNodes(v Nodes, e *codec1978.Encoder) {
	var h codecSelfer4402
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	r.EncodeArrayStart(len(v))
	yys70 := !z.EncBinary()
	if yys70 {
		for yyi70, yyv70 := range v {
			if yyi70 > 0 {
				r.EncodeArrayEntrySeparator()
			}
			if yyv70 == nil {
				r.EncodeNil()
			} else {
				yyv70.CodecEncodeSelf(e)
			}
		}
		r.EncodeArrayEnd()
	} else {
		for _, yyv70 := range v {
			if yyv70 == nil {
				r.EncodeNil()
			} else {
				yyv70.CodecEncodeSelf(e)
			}
		}
	}
}
示例#6
0
func (x codecSelfer1978) enchttp_Header(v pkg1_http.Header, e *codec1978.Encoder) {
	var h codecSelfer1978
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	r.EncodeMapStart(len(v))
	for yyk112, yyv112 := range v {
		yym113 := z.EncBinary()
		_ = yym113
		if false {
		} else {
			r.EncodeString(codecSelferC_UTF81978, string(yyk112))
		}
		if yyv112 == nil {
			r.EncodeNil()
		} else {
			yym114 := z.EncBinary()
			_ = yym114
			if false {
			} else {
				z.F.EncSliceStringV(yyv112, false, e)
			}
		}
	}
	r.EncodeEnd()
}
示例#7
0
func (x codecSelfer4402) enchttp_Header(v http.Header, e *codec1978.Encoder) {
	var h codecSelfer4402
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	r.EncodeMapStart(len(v))
	yys64 := !z.EncBinary()
	yyj64 := 0
	if yys64 {
		for yyk64, yyv64 := range v {
			if yyj64 > 0 {
				r.EncodeMapEntrySeparator()
			}
			r.EncodeString(codecSelferC_UTF84402, string(yyk64))
			r.EncodeMapKVSeparator()
			if yyv64 == nil {
				r.EncodeNil()
			} else {
				z.F.EncSliceStringV(yyv64, false, e)
			}
			yyj64++
		}
		r.EncodeMapEnd()
	} else {
		for yyk64, yyv64 := range v {
			r.EncodeString(codecSelferC_UTF84402, string(yyk64))
			if yyv64 == nil {
				r.EncodeNil()
			} else {
				z.F.EncSliceStringV(yyv64, false, e)
			}
		}
	}
}
示例#8
0
func (x codecSelfer1234) encMapstringv1_Time(v map[string]pkg2_v1.Time, e *codec1978.Encoder) {
	var h codecSelfer1234
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	r.EncodeMapStart(len(v))
	for yyk1, yyv1 := range v {
		z.EncSendContainerState(codecSelfer_containerMapKey1234)
		yym2 := z.EncBinary()
		_ = yym2
		if false {
		} else {
			r.EncodeString(codecSelferC_UTF81234, string(yyk1))
		}
		z.EncSendContainerState(codecSelfer_containerMapValue1234)
		yy3 := &yyv1
		yym4 := z.EncBinary()
		_ = yym4
		if false {
		} else if z.HasExtensions() && z.EncExt(yy3) {
		} else if yym4 {
			z.EncBinaryMarshal(yy3)
		} else if !yym4 && z.IsJSONHandle() {
			z.EncJSONMarshal(yy3)
		} else {
			z.EncFallback(yy3)
		}
	}
	z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
示例#9
0
func (x *TestTypeStatus) CodecEncodeSelf(e *codec1978.Encoder) {
	var h codecSelfer1234
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	if x == nil {
		r.EncodeNil()
	} else {
		yym59 := z.EncBinary()
		_ = yym59
		if false {
		} else if z.HasExtensions() && z.EncExt(x) {
		} else {
			yysep60 := !z.EncBinary()
			yy2arr60 := z.EncBasicHandle().StructToArray
			var yyq60 [1]bool
			_, _, _ = yysep60, yyq60, yy2arr60
			const yyr60 bool = false
			var yynn60 int
			if yyr60 || yy2arr60 {
				r.EncodeArrayStart(1)
			} else {
				yynn60 = 1
				for _, b := range yyq60 {
					if b {
						yynn60++
					}
				}
				r.EncodeMapStart(yynn60)
				yynn60 = 0
			}
			if yyr60 || yy2arr60 {
				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
				yym62 := z.EncBinary()
				_ = yym62
				if false {
				} else {
					r.EncodeString(codecSelferC_UTF81234, string(x.Blah))
				}
			} else {
				z.EncSendContainerState(codecSelfer_containerMapKey1234)
				r.EncodeString(codecSelferC_UTF81234, string("Blah"))
				z.EncSendContainerState(codecSelfer_containerMapValue1234)
				yym63 := z.EncBinary()
				_ = yym63
				if false {
				} else {
					r.EncodeString(codecSelferC_UTF81234, string(x.Blah))
				}
			}
			if yyr60 || yy2arr60 {
				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
			} else {
				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
			}
		}
	}
}
func (x *TestTypeStatus) CodecEncodeSelf(e *codec1978.Encoder) {
	var h codecSelfer1234
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	if x == nil {
		r.EncodeNil()
	} else {
		yym1 := z.EncBinary()
		_ = yym1
		if false {
		} else if z.HasExtensions() && z.EncExt(x) {
		} else {
			yysep2 := !z.EncBinary()
			yy2arr2 := z.EncBasicHandle().StructToArray
			var yyq2 [1]bool
			_, _, _ = yysep2, yyq2, yy2arr2
			const yyr2 bool = false
			var yynn2 int
			if yyr2 || yy2arr2 {
				r.EncodeArrayStart(1)
			} else {
				yynn2 = 1
				for _, b := range yyq2 {
					if b {
						yynn2++
					}
				}
				r.EncodeMapStart(yynn2)
				yynn2 = 0
			}
			if yyr2 || yy2arr2 {
				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
				yym4 := z.EncBinary()
				_ = yym4
				if false {
				} else {
					r.EncodeString(codecSelferC_UTF81234, string(x.Blah))
				}
			} else {
				z.EncSendContainerState(codecSelfer_containerMapKey1234)
				r.EncodeString(codecSelferC_UTF81234, string("Blah"))
				z.EncSendContainerState(codecSelfer_containerMapValue1234)
				yym5 := z.EncBinary()
				_ = yym5
				if false {
				} else {
					r.EncodeString(codecSelferC_UTF81234, string(x.Blah))
				}
			}
			if yyr2 || yy2arr2 {
				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
			} else {
				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
			}
		}
	}
}
示例#11
0
func (x Nodes) CodecEncodeSelf(e *codec1978.Encoder) {
	var h codecSelfer4402
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	if x == nil {
		r.EncodeNil()
	} else {
		h.encNodes(Nodes(x), e)
	}
}
示例#12
0
func (x codecSelfer1234) encSliceSimple(v []Simple, e *codec1978.Encoder) {
	var h codecSelfer1234
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	r.EncodeArrayStart(len(v))
	for _, yyv130 := range v {
		yy131 := &yyv130
		yy131.CodecEncodeSelf(e)
	}
	r.EncodeEnd()
}
func (x ProxyMode) CodecEncodeSelf(e *codec1978.Encoder) {
	var h codecSelfer1234
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	yym99 := z.EncBinary()
	_ = yym99
	if false {
	} else if z.HasExtensions() && z.EncExt(x) {
	} else {
		r.EncodeString(codecSelferC_UTF81234, string(x))
	}
}
func (x RequestConditionType) CodecEncodeSelf(e *codec1978.Encoder) {
	var h codecSelfer1234
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	yym82 := z.EncBinary()
	_ = yym82
	if false {
	} else if z.HasExtensions() && z.EncExt(x) {
	} else {
		r.EncodeString(codecSelferC_UTF81234, string(x))
	}
}
示例#15
0
func (x codecSelfer1234) encSliceapi_PersistentVolumeClaim(v []pkg2_api.PersistentVolumeClaim, e *codec1978.Encoder) {
	var h codecSelfer1234
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	r.EncodeArrayStart(len(v))
	for _, yyv119 := range v {
		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
		yy120 := &yyv119
		yy120.CodecEncodeSelf(e)
	}
	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
示例#16
0
func (x codecSelfer7289) enchttp_Header(v pkg1_http.Header, e *codec1978.Encoder) {
	var h codecSelfer7289
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	r.EncodeMapStart(len(v))
	yys112 := !z.EncBinary()
	yyj112 := 0
	if yys112 {
		for yyk112, yyv112 := range v {
			if yyj112 > 0 {
				r.EncodeMapEntrySeparator()
			}
			yym113 := z.EncBinary()
			_ = yym113
			if false {
			} else {
				r.EncodeString(codecSelferC_UTF87289, string(yyk112))
			}
			r.EncodeMapKVSeparator()
			if yyv112 == nil {
				r.EncodeNil()
			} else {
				yym114 := z.EncBinary()
				_ = yym114
				if false {
				} else {
					z.F.EncSliceStringV(yyv112, false, e)
				}
			}
			yyj112++
		}
		r.EncodeMapEnd()
	} else {
		for yyk112, yyv112 := range v {
			yym115 := z.EncBinary()
			_ = yym115
			if false {
			} else {
				r.EncodeString(codecSelferC_UTF87289, string(yyk112))
			}
			if yyv112 == nil {
				r.EncodeNil()
			} else {
				yym116 := z.EncBinary()
				_ = yym116
				if false {
				} else {
					z.F.EncSliceStringV(yyv112, false, e)
				}
			}
		}
	}
}
示例#17
0
func (x codecSelfer1234) encSliceMetadataOnlyObject(v []MetadataOnlyObject, e *codec1978.Encoder) {
	var h codecSelfer1234
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	r.EncodeArrayStart(len(v))
	for _, yyv54 := range v {
		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
		yy55 := &yyv54
		yy55.CodecEncodeSelf(e)
	}
	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
示例#18
0
func (x codecSelfer1234) encSlicePetSet(v []PetSet, e *codec1978.Encoder) {
	var h codecSelfer1234
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	r.EncodeArrayStart(len(v))
	for _, yyv125 := range v {
		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
		yy126 := &yyv125
		yy126.CodecEncodeSelf(e)
	}
	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
示例#19
0
func (x codecSelfer1234) encSliceImageReviewContainerSpec(v []ImageReviewContainerSpec, e *codec1978.Encoder) {
	var h codecSelfer1234
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	r.EncodeArrayStart(len(v))
	for _, yyv84 := range v {
		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
		yy85 := &yyv84
		yy85.CodecEncodeSelf(e)
	}
	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) encSliceCertificateSigningRequest(v []CertificateSigningRequest, e *codec1978.Encoder) {
	var h codecSelfer1234
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	r.EncodeArrayStart(len(v))
	for _, yyv150 := range v {
		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
		yy151 := &yyv150
		yy151.CodecEncodeSelf(e)
	}
	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
示例#21
0
func (a *cborMuxAppender) Close() error {
	a.m.wmu.Lock()
	defer a.m.wmu.Unlock()
	const magic_UTF8 = 1
	_, enc := codec.GenHelperEncoder(a.m.codec)
	enc.EncodeMapStart(2)
	enc.EncodeString(magic_UTF8, "l")
	enc.EncodeInt(int64(a.label))
	enc.EncodeString(magic_UTF8, "x")
	enc.EncodeInt(int64(1))
	return nil
}
示例#22
0
func (x codecSelfer1234) encSliceStorageClass(v []StorageClass, e *codec1978.Encoder) {
	var h codecSelfer1234
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	r.EncodeArrayStart(len(v))
	for _, yyv66 := range v {
		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
		yy67 := &yyv66
		yy67.CodecEncodeSelf(e)
	}
	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) encSliceSimple(v []Simple, e *codec1978.Encoder) {
	var h codecSelfer1234
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	r.EncodeArrayStart(len(v))
	for _, yyv138 := range v {
		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
		yy139 := &yyv138
		yy139.CodecEncodeSelf(e)
	}
	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
示例#24
0
func (x codecSelfer1234) encSlicePodDisruptionBudget(v []PodDisruptionBudget, e *codec1978.Encoder) {
	var h codecSelfer1234
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	r.EncodeArrayStart(len(v))
	for _, yyv136 := range v {
		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
		yy137 := &yyv136
		yy137.CodecEncodeSelf(e)
	}
	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) encSliceTestType(v []TestType, e *codec1978.Encoder) {
	var h codecSelfer1234
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	r.EncodeArrayStart(len(v))
	for _, yyv1 := range v {
		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
		yy2 := &yyv1
		yy2.CodecEncodeSelf(e)
	}
	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
示例#26
0
func (x responseType) CodecEncodeSelf(e *codec1978.Encoder) {
	var h codecSelfer1978
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	yym1 := z.EncBinary()
	_ = yym1
	if false {
	} else if z.HasExtensions() && z.EncExt(x) {
	} else {
		r.EncodeInt(int64(x))
	}
}
示例#27
0
func (x codecSelfer1978) encNodes(v Nodes, e *codec1978.Encoder) {
	var h codecSelfer1978
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	r.EncodeArrayStart(len(v))
	for _, yyv122 := range v {
		if yyv122 == nil {
			r.EncodeNil()
		} else {
			yyv122.CodecEncodeSelf(e)
		}
	}
	r.EncodeEnd()
}
示例#28
0
func (x codecSelfer1819) encNodes(v Nodes, e *codec1978.Encoder) {
	var h codecSelfer1819
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	r.EncodeArrayStart(len(v))
	for _, yyv1 := range v {
		z.EncSendContainerState(codecSelfer_containerArrayElem1819)
		if yyv1 == nil {
			r.EncodeNil()
		} else {
			yyv1.CodecEncodeSelf(e)
		}
	}
	z.EncSendContainerState(codecSelfer_containerArrayEnd1819)
}
示例#29
0
func (x codecSelfer1234) encSlicestring(v []string, e *codec1978.Encoder) {
	var h codecSelfer1234
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	r.EncodeArrayStart(len(v))
	for _, yyv1 := range v {
		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
		yym2 := z.EncBinary()
		_ = yym2
		if false {
		} else {
			r.EncodeString(codecSelferC_UTF81234, string(yyv1))
		}
	}
	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
示例#30
0
func (x Nodes) CodecEncodeSelf(e *codec1978.Encoder) {
	var h codecSelfer1978
	z, r := codec1978.GenHelperEncoder(e)
	_, _, _ = h, z, r
	if x == nil {
		r.EncodeNil()
	} else {
		yym110 := z.EncBinary()
		_ = yym110
		if false {
		} else if z.HasExtensions() && z.EncExt(x) {
		} else {
			h.encNodes((Nodes)(x), e)
		}
	}
}