(ext *super.TypeFusion)
| 212 | } |
| 213 | |
| 214 | func (e *Encoder) encodeTypeFusion(ext *super.TypeFusion) (*super.TypeFusion, error) { |
| 215 | inner, err := e.Encode(ext.Type) |
| 216 | if err != nil { |
| 217 | return nil, err |
| 218 | } |
| 219 | typ := e.sctx.LookupTypeFusion(inner) |
| 220 | e.bytes = append(e.bytes, TypeDefFusion) |
| 221 | e.bytes = binary.AppendUvarint(e.bytes, uint64(super.TypeID(typ.Type))) |
| 222 | return typ, nil |
| 223 | } |
| 224 | |
| 225 | type Decoder struct { |
| 226 | // shared/output context |
no test coverage detected