Benchmark harness support for STK-REQ-004.
(l int, d *codec1978.Decoder)
| 652 | |
| 653 | // Benchmark harness support for STK-REQ-004. |
| 654 | func (x *CBAvatar) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { |
| 655 | var h codecSelfer6617 |
| 656 | z, r := codec1978.GenHelperDecoder(d) |
| 657 | _, _, _ = h, z, r |
| 658 | var yyhl3 bool = l >= 0 |
| 659 | for yyj3 := 0; ; yyj3++ { |
| 660 | if yyhl3 { |
| 661 | if yyj3 >= l { |
| 662 | break |
| 663 | } |
| 664 | } else { |
| 665 | if r.CheckBreak() { |
| 666 | break |
| 667 | } |
| 668 | } |
| 669 | r.ReadMapElemKey() |
| 670 | yys3 := z.StringView(r.DecodeStringAsBytes()) |
| 671 | r.ReadMapElemValue() |
| 672 | switch yys3 { |
| 673 | case "Url": |
| 674 | if r.TryDecodeAsNil() { |
| 675 | x.Url = "" |
| 676 | } else { |
| 677 | x.Url = (string)(r.DecodeString()) |
| 678 | } |
| 679 | default: |
| 680 | z.DecStructFieldNotFound(-1, yys3) |
| 681 | } // end switch yys3 |
| 682 | } // end for yyj3 |
| 683 | r.ReadMapEnd() |
| 684 | } |
| 685 | |
| 686 | // Benchmark harness support for STK-REQ-004. |
| 687 | func (x *CBAvatar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { |