Benchmark harness support for STK-REQ-004.
(d *codec1978.Decoder)
| 280 | |
| 281 | // Benchmark harness support for STK-REQ-004. |
| 282 | func (x *SmallPayload) CodecDecodeSelf(d *codec1978.Decoder) { |
| 283 | var h codecSelfer6617 |
| 284 | z, r := codec1978.GenHelperDecoder(d) |
| 285 | _, _, _ = h, z, r |
| 286 | if false { |
| 287 | } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { |
| 288 | z.DecExtension(x, yyxt1) |
| 289 | } else if !z.DecBinary() && z.IsJSONHandle() { |
| 290 | z.DecJSONUnmarshal(x) |
| 291 | } else { |
| 292 | yyct2 := r.ContainerType() |
| 293 | if yyct2 == codecSelferValueTypeMap6617 { |
| 294 | yyl2 := r.ReadMapStart() |
| 295 | if yyl2 == 0 { |
| 296 | r.ReadMapEnd() |
| 297 | } else { |
| 298 | x.codecDecodeSelfFromMap(yyl2, d) |
| 299 | } |
| 300 | } else if yyct2 == codecSelferValueTypeArray6617 { |
| 301 | yyl2 := r.ReadArrayStart() |
| 302 | if yyl2 == 0 { |
| 303 | r.ReadArrayEnd() |
| 304 | } else { |
| 305 | x.codecDecodeSelfFromArray(yyl2, d) |
| 306 | } |
| 307 | } else { |
| 308 | panic(errCodecSelferOnlyMapOrArrayEncodeToStruct6617) |
| 309 | } |
| 310 | } |
| 311 | } |
| 312 | |
| 313 | // Benchmark harness support for STK-REQ-004. |
| 314 | func (x *SmallPayload) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { |
nothing calls this directly
no test coverage detected