(cctx *Context, off uint64)
| 80 | } |
| 81 | |
| 82 | func (s *SetEncoder) Metadata(cctx *Context, off uint64) (uint64, ID) { |
| 83 | off, id := s.ArrayEncoder.Metadata(cctx, off) |
| 84 | array := cctx.Lookup(id).(*Array) // XXX this leaves a dummy node in the table |
| 85 | return off, cctx.enter(&Set{ |
| 86 | Length: array.Length, |
| 87 | Lengths: array.Lengths, |
| 88 | Values: array.Values, |
| 89 | }) |
| 90 | } |