Benchmark harness support for STK-REQ-004.
(l int, d *codec1978.Decoder)
| 1142 | |
| 1143 | // Benchmark harness support for STK-REQ-004. |
| 1144 | func (x *CBName) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { |
| 1145 | var h codecSelfer6617 |
| 1146 | z, r := codec1978.GenHelperDecoder(d) |
| 1147 | _, _, _ = h, z, r |
| 1148 | var yyhl3 bool = l >= 0 |
| 1149 | for yyj3 := 0; ; yyj3++ { |
| 1150 | if yyhl3 { |
| 1151 | if yyj3 >= l { |
| 1152 | break |
| 1153 | } |
| 1154 | } else { |
| 1155 | if r.CheckBreak() { |
| 1156 | break |
| 1157 | } |
| 1158 | } |
| 1159 | r.ReadMapElemKey() |
| 1160 | yys3 := z.StringView(r.DecodeStringAsBytes()) |
| 1161 | r.ReadMapElemValue() |
| 1162 | switch yys3 { |
| 1163 | case "FullName": |
| 1164 | if r.TryDecodeAsNil() { |
| 1165 | x.FullName = "" |
| 1166 | } else { |
| 1167 | x.FullName = (string)(r.DecodeString()) |
| 1168 | } |
| 1169 | default: |
| 1170 | z.DecStructFieldNotFound(-1, yys3) |
| 1171 | } // end switch yys3 |
| 1172 | } // end for yyj3 |
| 1173 | r.ReadMapEnd() |
| 1174 | } |
| 1175 | |
| 1176 | // Benchmark harness support for STK-REQ-004. |
| 1177 | func (x *CBName) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { |