(s *Slice)
| 464 | } |
| 465 | |
| 466 | func (d *decodeGen) gSlice(s *Slice) { |
| 467 | if !d.p.ok() { |
| 468 | return |
| 469 | } |
| 470 | sz := randIdent() |
| 471 | d.p.declare(sz, u32) |
| 472 | d.assignArray(sz, arrayHeader, 0) |
| 473 | if s.isAllowNil { |
| 474 | d.p.resizeSliceNoNil(sz, s) |
| 475 | } else { |
| 476 | d.p.resizeSlice(sz, s) |
| 477 | } |
| 478 | setTypeParams(s.Els, s.typeParams) |
| 479 | d.p.rangeBlock(d.ctx, s.Index, s.Varname(), d, s.Els) |
| 480 | } |
| 481 | |
| 482 | func (d *decodeGen) gArray(a *Array) { |
| 483 | if !d.p.ok() { |
nothing calls this directly
no test coverage detected