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

Method under

value.go:463–475  ·  view source on GitHub ↗

under contains logic for Under that the compiler won't inline.

()

Source from the content-addressed store, hash-verified

461
462// under contains logic for Under that the compiler won't inline.
463func (v Value) under() Value {
464 typ, bytes := v.Type(), v.Bytes()
465 for {
466 switch under := TypeUnder(typ).(type) {
467 case *TypeUnion:
468 typ, bytes = under.Untag(bytes)
469 case *TypeFusion:
470 typ, bytes = under.DerefFusion(bytes)
471 default:
472 return NewValue(under, bytes)
473 }
474 }
475}
476
477// Validate checks that v.Bytes is structurally consistent
478// with v.Type. It does not check that the actual leaf

Callers 1

UnderMethod · 0.95

Calls 6

TypeMethod · 0.95
BytesMethod · 0.95
TypeUnderFunction · 0.85
NewValueFunction · 0.85
UntagMethod · 0.80
DerefFusionMethod · 0.80

Tested by

no test coverage detected