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

Method Serialize

vector/fusion.go:50–57  ·  view source on GitHub ↗
(b *scode.Builder, slot uint32)

Source from the content-addressed store, hash-verified

48}
49
50func (f *Fusion) Serialize(b *scode.Builder, slot uint32) {
51 b.BeginContainer()
52 f.Values.Serialize(b, slot)
53 // XXX this is a slow path
54 typeVal := f.Sctx.LookupTypeValue(f.Subtypes()[slot])
55 b.Append(typeVal.Bytes())
56 b.EndContainer()
57}
58
59func (f *Fusion) Subtypes() []super.Type {
60 f.mu.Lock()

Callers

nothing calls this directly

Calls 7

SubtypesMethod · 0.95
BeginContainerMethod · 0.80
LookupTypeValueMethod · 0.80
EndContainerMethod · 0.80
SerializeMethod · 0.65
AppendMethod · 0.45
BytesMethod · 0.45

Tested by

no test coverage detected