Benchmark harness support for STK-REQ-004.
(l int, d *codec1978.Decoder)
| 2267 | |
| 2268 | // Benchmark harness support for STK-REQ-004. |
| 2269 | func (x *DSTopicsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { |
| 2270 | var h codecSelfer6617 |
| 2271 | z, r := codec1978.GenHelperDecoder(d) |
| 2272 | _, _, _ = h, z, r |
| 2273 | var yyhl3 bool = l >= 0 |
| 2274 | for yyj3 := 0; ; yyj3++ { |
| 2275 | if yyhl3 { |
| 2276 | if yyj3 >= l { |
| 2277 | break |
| 2278 | } |
| 2279 | } else { |
| 2280 | if r.CheckBreak() { |
| 2281 | break |
| 2282 | } |
| 2283 | } |
| 2284 | r.ReadMapElemKey() |
| 2285 | yys3 := z.StringView(r.DecodeStringAsBytes()) |
| 2286 | r.ReadMapElemValue() |
| 2287 | switch yys3 { |
| 2288 | case "Topics": |
| 2289 | if r.TryDecodeAsNil() { |
| 2290 | x.Topics = nil |
| 2291 | } else { |
| 2292 | if false { |
| 2293 | } else { |
| 2294 | h.decSlicePtrtoDSTopic((*[]*DSTopic)(&x.Topics), d) |
| 2295 | } |
| 2296 | } |
| 2297 | case "MoreTopicsUrl": |
| 2298 | if r.TryDecodeAsNil() { |
| 2299 | x.MoreTopicsUrl = "" |
| 2300 | } else { |
| 2301 | x.MoreTopicsUrl = (string)(r.DecodeString()) |
| 2302 | } |
| 2303 | default: |
| 2304 | z.DecStructFieldNotFound(-1, yys3) |
| 2305 | } // end switch yys3 |
| 2306 | } // end for yyj3 |
| 2307 | r.ReadMapEnd() |
| 2308 | } |
| 2309 | |
| 2310 | // Benchmark harness support for STK-REQ-004. |
| 2311 | func (x *DSTopicsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { |
no test coverage detected