Benchmark harness support for STK-REQ-004.
(d *codec1978.Decoder)
| 1355 | |
| 1356 | // Benchmark harness support for STK-REQ-004. |
| 1357 | func (x *CBPerson) CodecDecodeSelf(d *codec1978.Decoder) { |
| 1358 | var h codecSelfer6617 |
| 1359 | z, r := codec1978.GenHelperDecoder(d) |
| 1360 | _, _, _ = h, z, r |
| 1361 | if false { |
| 1362 | } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { |
| 1363 | z.DecExtension(x, yyxt1) |
| 1364 | } else if !z.DecBinary() && z.IsJSONHandle() { |
| 1365 | z.DecJSONUnmarshal(x) |
| 1366 | } else { |
| 1367 | yyct2 := r.ContainerType() |
| 1368 | if yyct2 == codecSelferValueTypeMap6617 { |
| 1369 | yyl2 := r.ReadMapStart() |
| 1370 | if yyl2 == 0 { |
| 1371 | r.ReadMapEnd() |
| 1372 | } else { |
| 1373 | x.codecDecodeSelfFromMap(yyl2, d) |
| 1374 | } |
| 1375 | } else if yyct2 == codecSelferValueTypeArray6617 { |
| 1376 | yyl2 := r.ReadArrayStart() |
| 1377 | if yyl2 == 0 { |
| 1378 | r.ReadArrayEnd() |
| 1379 | } else { |
| 1380 | x.codecDecodeSelfFromArray(yyl2, d) |
| 1381 | } |
| 1382 | } else { |
| 1383 | panic(errCodecSelferOnlyMapOrArrayEncodeToStruct6617) |
| 1384 | } |
| 1385 | } |
| 1386 | } |
| 1387 | |
| 1388 | // Benchmark harness support for STK-REQ-004. |
| 1389 | func (x *CBPerson) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { |
nothing calls this directly
no test coverage detected