MCPcopy
hub / github.com/ugorji/go / codecDecodeSelfFromMap

Method codecDecodeSelfFromMap

codec/values_codecgen_generated_test.go:273–291  ·  view source on GitHub ↗
(l int, d *Decoder)

Source from the content-addressed store, hash-verified

271}
272
273func (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; z.DecContainerNext(yyj3, l, yyhl3); yyj3++ {
279 z.DecReadMapElemKey()
280 yys3 := r.DecodeStringAsBytes()
281 z.DecReadMapElemValue()
282 switch string(yys3) {
283 case "S":
284 x.S = (string)(z.DecStringZC(r.DecodeStringAsBytes()))
285 case "U":
286 x.U = (uint64)(r.DecodeUint64())
287 default:
288 z.DecStructFieldNotFound(-1, string(yys3))
289 } // end switch yys3
290 } // end for yyj3
291}
292
293func (x *stringUint64T) codecDecodeSelfFromArray(l int, d *Decoder) {
294 var h codecSelfer19780

Callers 1

CodecDecodeSelfMethod · 0.95

Calls 9

GenHelperFunction · 0.85
DecoderMethod · 0.80
DecContainerNextMethod · 0.80
DecReadMapElemKeyMethod · 0.80
DecReadMapElemValueMethod · 0.80
DecStringZCMethod · 0.80
DecodeStringAsBytesMethod · 0.65
DecodeUint64Method · 0.65

Tested by

no test coverage detected