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

Method CodecDecodeSelf

codec/values_codecgen_generated_test.go:8542–8565  ·  view source on GitHub ↗
(d *Decoder)

Source from the content-addressed store, hash-verified

8540}
8541
8542func (x *Sstructbig) CodecDecodeSelf(d *Decoder) {
8543 var h codecSelfer19780
8544 z, r := GenHelper().Decoder(d)
8545 _, _, _ = h, z, r
8546 yyct2 := r.ContainerType()
8547 if yyct2 == codecSelferValueTypeNil19780 {
8548 *(x) = Sstructbig{}
8549 } else if yyct2 == codecSelferValueTypeMap19780 {
8550 yyl2 := z.DecReadMapStart()
8551 if yyl2 == 0 {
8552 } else {
8553 x.codecDecodeSelfFromMap(yyl2, d)
8554 }
8555 z.DecReadMapEnd()
8556 } else if yyct2 == codecSelferValueTypeArray19780 {
8557 yyl2 := z.DecReadArrayStart()
8558 if yyl2 != 0 {
8559 x.codecDecodeSelfFromArray(yyl2, d)
8560 }
8561 z.DecReadArrayEnd()
8562 } else {
8563 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
8564 }
8565}
8566
8567func (x *Sstructbig) codecDecodeSelfFromMap(l int, d *Decoder) {
8568 var h codecSelfer19780

Callers

nothing calls this directly

Calls 9

GenHelperFunction · 0.85
DecoderMethod · 0.80
DecReadMapStartMethod · 0.80
DecReadMapEndMethod · 0.80
DecReadArrayStartMethod · 0.80
DecReadArrayEndMethod · 0.80
ContainerTypeMethod · 0.65

Tested by

no test coverage detected