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

Function BuildUnion

complex.go:399–403  ·  view source on GitHub ↗

BuildUnion appends to b a union described by tag and val.

(b *scode.Builder, tag int, val scode.Bytes)

Source from the content-addressed store, hash-verified

397
398// BuildUnion appends to b a union described by tag and val.
399func BuildUnion(b *scode.Builder, tag int, val scode.Bytes) {
400 BeginUnion(b, tag)
401 b.Append(val)
402 b.EndContainer()
403}
404
405func BeginUnion(b *scode.Builder, tag int) {
406 b.BeginContainer()

Callers 15

encodeArrayMethod · 0.92
buildValMethod · 0.92
appendNextMethod · 0.92
indexMapFunction · 0.92
evalMethod · 0.92
unifyMethod · 0.92
CastMethod · 0.92
toUnionMethod · 0.92
evalMethod · 0.92
unifyMethod · 0.92
appendMapValFunction · 0.92
ResultMethod · 0.92

Calls 3

BeginUnionFunction · 0.85
EndContainerMethod · 0.80
AppendMethod · 0.45

Tested by

no test coverage detected