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

Method Serialize

vector/union.go:35–40  ·  view source on GitHub ↗
(b *scode.Builder, slot uint32)

Source from the content-addressed store, hash-verified

33}
34
35func (u *Union) Serialize(b *scode.Builder, slot uint32) {
36 tag := u.Typ.TagOf(u.TypeOf(slot))
37 super.BeginUnion(b, tag)
38 u.Dynamic.Serialize(b, slot)
39 b.EndContainer()
40}
41
42func Deunion(vec Any) Any {
43 if u, ok := vec.(*Union); ok {

Callers

nothing calls this directly

Calls 5

TypeOfMethod · 0.95
BeginUnionFunction · 0.92
TagOfMethod · 0.80
EndContainerMethod · 0.80
SerializeMethod · 0.65

Tested by

no test coverage detected