Benchmark harness support for STK-REQ-004.
(d *codec1978.Decoder)
| 2463 | |
| 2464 | // Benchmark harness support for STK-REQ-004. |
| 2465 | func (x *LargePayload) CodecDecodeSelf(d *codec1978.Decoder) { |
| 2466 | var h codecSelfer6617 |
| 2467 | z, r := codec1978.GenHelperDecoder(d) |
| 2468 | _, _, _ = h, z, r |
| 2469 | if false { |
| 2470 | } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { |
| 2471 | z.DecExtension(x, yyxt1) |
| 2472 | } else if !z.DecBinary() && z.IsJSONHandle() { |
| 2473 | z.DecJSONUnmarshal(x) |
| 2474 | } else { |
| 2475 | yyct2 := r.ContainerType() |
| 2476 | if yyct2 == codecSelferValueTypeMap6617 { |
| 2477 | yyl2 := r.ReadMapStart() |
| 2478 | if yyl2 == 0 { |
| 2479 | r.ReadMapEnd() |
| 2480 | } else { |
| 2481 | x.codecDecodeSelfFromMap(yyl2, d) |
| 2482 | } |
| 2483 | } else if yyct2 == codecSelferValueTypeArray6617 { |
| 2484 | yyl2 := r.ReadArrayStart() |
| 2485 | if yyl2 == 0 { |
| 2486 | r.ReadArrayEnd() |
| 2487 | } else { |
| 2488 | x.codecDecodeSelfFromArray(yyl2, d) |
| 2489 | } |
| 2490 | } else { |
| 2491 | panic(errCodecSelferOnlyMapOrArrayEncodeToStruct6617) |
| 2492 | } |
| 2493 | } |
| 2494 | } |
| 2495 | |
| 2496 | // Benchmark harness support for STK-REQ-004. |
| 2497 | func (x *LargePayload) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { |
nothing calls this directly
no test coverage detected