Benchmark harness support for STK-REQ-004.
(l int, d *codec1978.Decoder)
| 312 | |
| 313 | // Benchmark harness support for STK-REQ-004. |
| 314 | func (x *SmallPayload) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { |
| 315 | var h codecSelfer6617 |
| 316 | z, r := codec1978.GenHelperDecoder(d) |
| 317 | _, _, _ = h, z, r |
| 318 | var yyhl3 bool = l >= 0 |
| 319 | for yyj3 := 0; ; yyj3++ { |
| 320 | if yyhl3 { |
| 321 | if yyj3 >= l { |
| 322 | break |
| 323 | } |
| 324 | } else { |
| 325 | if r.CheckBreak() { |
| 326 | break |
| 327 | } |
| 328 | } |
| 329 | r.ReadMapElemKey() |
| 330 | yys3 := z.StringView(r.DecodeStringAsBytes()) |
| 331 | r.ReadMapElemValue() |
| 332 | switch yys3 { |
| 333 | case "St": |
| 334 | if r.TryDecodeAsNil() { |
| 335 | x.St = 0 |
| 336 | } else { |
| 337 | x.St = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize6617)) |
| 338 | } |
| 339 | case "Sid": |
| 340 | if r.TryDecodeAsNil() { |
| 341 | x.Sid = 0 |
| 342 | } else { |
| 343 | x.Sid = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize6617)) |
| 344 | } |
| 345 | case "Tt": |
| 346 | if r.TryDecodeAsNil() { |
| 347 | x.Tt = "" |
| 348 | } else { |
| 349 | x.Tt = (string)(r.DecodeString()) |
| 350 | } |
| 351 | case "Gr": |
| 352 | if r.TryDecodeAsNil() { |
| 353 | x.Gr = 0 |
| 354 | } else { |
| 355 | x.Gr = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize6617)) |
| 356 | } |
| 357 | case "Uuid": |
| 358 | if r.TryDecodeAsNil() { |
| 359 | x.Uuid = "" |
| 360 | } else { |
| 361 | x.Uuid = (string)(r.DecodeString()) |
| 362 | } |
| 363 | case "Ip": |
| 364 | if r.TryDecodeAsNil() { |
| 365 | x.Ip = "" |
| 366 | } else { |
| 367 | x.Ip = (string)(r.DecodeString()) |
| 368 | } |
| 369 | case "Ua": |
| 370 | if r.TryDecodeAsNil() { |
| 371 | x.Ua = "" |