Benchmark harness support for STK-REQ-004.
(d *codec1978.Decoder)
| 2022 | |
| 2023 | // Benchmark harness support for STK-REQ-004. |
| 2024 | func (x *DSTopic) CodecDecodeSelf(d *codec1978.Decoder) { |
| 2025 | var h codecSelfer6617 |
| 2026 | z, r := codec1978.GenHelperDecoder(d) |
| 2027 | _, _, _ = h, z, r |
| 2028 | if false { |
| 2029 | } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { |
| 2030 | z.DecExtension(x, yyxt1) |
| 2031 | } else if !z.DecBinary() && z.IsJSONHandle() { |
| 2032 | z.DecJSONUnmarshal(x) |
| 2033 | } else { |
| 2034 | yyct2 := r.ContainerType() |
| 2035 | if yyct2 == codecSelferValueTypeMap6617 { |
| 2036 | yyl2 := r.ReadMapStart() |
| 2037 | if yyl2 == 0 { |
| 2038 | r.ReadMapEnd() |
| 2039 | } else { |
| 2040 | x.codecDecodeSelfFromMap(yyl2, d) |
| 2041 | } |
| 2042 | } else if yyct2 == codecSelferValueTypeArray6617 { |
| 2043 | yyl2 := r.ReadArrayStart() |
| 2044 | if yyl2 == 0 { |
| 2045 | r.ReadArrayEnd() |
| 2046 | } else { |
| 2047 | x.codecDecodeSelfFromArray(yyl2, d) |
| 2048 | } |
| 2049 | } else { |
| 2050 | panic(errCodecSelferOnlyMapOrArrayEncodeToStruct6617) |
| 2051 | } |
| 2052 | } |
| 2053 | } |
| 2054 | |
| 2055 | // Benchmark harness support for STK-REQ-004. |
| 2056 | func (x *DSTopic) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { |
nothing calls this directly
no test coverage detected