(vec Any, slot uint32)
| 167 | } |
| 168 | |
| 169 | func isNone(vec Any, slot uint32) bool { |
| 170 | if _, ok := vec.(*None); ok { |
| 171 | return true |
| 172 | } |
| 173 | if o, ok := vec.(*Optional); ok { |
| 174 | return o.Dynamic.Tags[slot] == 1 |
| 175 | } |
| 176 | return false |
| 177 | } |
| 178 | |
| 179 | func NewFieldFromRLE(sctx *super.Context, vec Any, length uint32, runlens []uint32) Any { |
| 180 | if len(runlens) == 0 { |