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

Method Write

csup/scode.go:40–52  ·  view source on GitHub ↗

XXX TBD: change all the scode primitives to be native and get rid of this slow path here.

(vec vector.Any)

Source from the content-addressed store, hash-verified

38// XXX TBD: change all the scode primitives to be native and get rid of
39// this slow path here.
40func (p *ScodeEncoder) Write(vec vector.Any) {
41 if vec.Len() == 0 {
42 return
43 }
44 var b scode.Builder
45 for slot := range vec.Len() {
46 b.Reset()
47 vec.Serialize(&b, slot)
48 body := b.Bytes().Body()
49 p.update(body)
50 p.bytes = scode.Append(p.bytes, body)
51 }
52}
53
54func (p *ScodeEncoder) WriteBytes(bytes scode.Bytes) {
55 p.update(bytes)

Callers

nothing calls this directly

Calls 7

ResetMethod · 0.95
BytesMethod · 0.95
updateMethod · 0.95
AppendFunction · 0.92
BodyMethod · 0.80
LenMethod · 0.65
SerializeMethod · 0.65

Tested by

no test coverage detected