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

Method Write

csup/bytes.go:32–46  ·  view source on GitHub ↗
(vec vector.Any)

Source from the content-addressed store, hash-verified

30}
31
32func (b *BytesEncoder) Write(vec vector.Any) {
33 if vec.Len() == 0 {
34 return
35 }
36 switch vec := vec.(type) {
37 case *vector.Bytes:
38 b.writeTable(vec.Table())
39 case *vector.String:
40 b.writeTable(vec.Table())
41 case *vector.TypeValue:
42 b.writeTable(vec.Table())
43 default:
44 panic(vec)
45 }
46}
47
48func (b *BytesEncoder) writeTable(table vector.BytesTable) {
49 if len(b.bytes) == 0 {

Callers 1

DictMethod · 0.95

Calls 3

writeTableMethod · 0.95
LenMethod · 0.65
TableMethod · 0.45

Tested by

no test coverage detected