MCPcopy Create free account
hub / github.com/brimdata/super / Deref

Method Deref

complex.go:319–327  ·  view source on GitHub ↗

Deref decodes the supertype value bytes and the subtype from a fusion type.

(sctx *Context, bytes scode.Bytes)

Source from the content-addressed store, hash-verified

317
318// Deref decodes the supertype value bytes and the subtype from a fusion type.
319func (t *TypeFusion) Deref(sctx *Context, bytes scode.Bytes) (scode.Bytes, Type) {
320 it := bytes.Iter()
321 superBytes := it.Next()
322 subType, err := sctx.LookupByValue(it.Next())
323 if err != nil {
324 panic(err)
325 }
326 return superBytes, subType
327}
328
329func (t *TypeFusion) DerefFusion(bytes scode.Bytes) (Type, scode.Bytes) {
330 it := bytes.Iter()

Callers

nothing calls this directly

Calls 3

IterMethod · 0.80
LookupByValueMethod · 0.80
NextMethod · 0.45

Tested by

no test coverage detected