Benchmark harness support for STK-REQ-004.
(d *codec1978.Decoder)
| 1110 | |
| 1111 | // Benchmark harness support for STK-REQ-004. |
| 1112 | func (x *CBName) CodecDecodeSelf(d *codec1978.Decoder) { |
| 1113 | var h codecSelfer6617 |
| 1114 | z, r := codec1978.GenHelperDecoder(d) |
| 1115 | _, _, _ = h, z, r |
| 1116 | if false { |
| 1117 | } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { |
| 1118 | z.DecExtension(x, yyxt1) |
| 1119 | } else if !z.DecBinary() && z.IsJSONHandle() { |
| 1120 | z.DecJSONUnmarshal(x) |
| 1121 | } else { |
| 1122 | yyct2 := r.ContainerType() |
| 1123 | if yyct2 == codecSelferValueTypeMap6617 { |
| 1124 | yyl2 := r.ReadMapStart() |
| 1125 | if yyl2 == 0 { |
| 1126 | r.ReadMapEnd() |
| 1127 | } else { |
| 1128 | x.codecDecodeSelfFromMap(yyl2, d) |
| 1129 | } |
| 1130 | } else if yyct2 == codecSelferValueTypeArray6617 { |
| 1131 | yyl2 := r.ReadArrayStart() |
| 1132 | if yyl2 == 0 { |
| 1133 | r.ReadArrayEnd() |
| 1134 | } else { |
| 1135 | x.codecDecodeSelfFromArray(yyl2, d) |
| 1136 | } |
| 1137 | } else { |
| 1138 | panic(errCodecSelferOnlyMapOrArrayEncodeToStruct6617) |
| 1139 | } |
| 1140 | } |
| 1141 | } |
| 1142 | |
| 1143 | // Benchmark harness support for STK-REQ-004. |
| 1144 | func (x *CBName) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { |