Benchmark harness support for STK-REQ-004.
(l int, d *codec1978.Decoder)
| 2495 | |
| 2496 | // Benchmark harness support for STK-REQ-004. |
| 2497 | func (x *LargePayload) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { |
| 2498 | var h codecSelfer6617 |
| 2499 | z, r := codec1978.GenHelperDecoder(d) |
| 2500 | _, _, _ = h, z, r |
| 2501 | var yyhl3 bool = l >= 0 |
| 2502 | for yyj3 := 0; ; yyj3++ { |
| 2503 | if yyhl3 { |
| 2504 | if yyj3 >= l { |
| 2505 | break |
| 2506 | } |
| 2507 | } else { |
| 2508 | if r.CheckBreak() { |
| 2509 | break |
| 2510 | } |
| 2511 | } |
| 2512 | r.ReadMapElemKey() |
| 2513 | yys3 := z.StringView(r.DecodeStringAsBytes()) |
| 2514 | r.ReadMapElemValue() |
| 2515 | switch yys3 { |
| 2516 | case "Users": |
| 2517 | if r.TryDecodeAsNil() { |
| 2518 | x.Users = nil |
| 2519 | } else { |
| 2520 | if false { |
| 2521 | } else { |
| 2522 | h.decSlicePtrtoDSUser((*[]*DSUser)(&x.Users), d) |
| 2523 | } |
| 2524 | } |
| 2525 | case "Topics": |
| 2526 | if r.TryDecodeAsNil() { |
| 2527 | if true && x.Topics != nil { |
| 2528 | x.Topics = nil |
| 2529 | } |
| 2530 | } else { |
| 2531 | if x.Topics == nil { |
| 2532 | x.Topics = new(DSTopicsList) |
| 2533 | } |
| 2534 | |
| 2535 | x.Topics.CodecDecodeSelf(d) |
| 2536 | } |
| 2537 | default: |
| 2538 | z.DecStructFieldNotFound(-1, yys3) |
| 2539 | } // end switch yys3 |
| 2540 | } // end for yyj3 |
| 2541 | r.ReadMapEnd() |
| 2542 | } |
| 2543 | |
| 2544 | // Benchmark harness support for STK-REQ-004. |
| 2545 | func (x *LargePayload) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { |
no test coverage detected