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

Method update

csup/scode.go:59–68  ·  view source on GitHub ↗
(body scode.Bytes)

Source from the content-addressed store, hash-verified

57}
58
59func (p *ScodeEncoder) update(body scode.Bytes) {
60 p.count++
61 val := super.NewValue(p.typ, body)
62 if p.min == nil || p.cmp(val, *p.min) < 0 {
63 p.min = val.Copy().Ptr()
64 }
65 if p.max == nil || p.cmp(val, *p.max) > 0 {
66 p.max = val.Copy().Ptr()
67 }
68}
69
70func (p *ScodeEncoder) Encode(group *errgroup.Group) {
71 group.Go(func() error {

Callers 2

WriteMethod · 0.95
WriteBytesMethod · 0.95

Calls 3

CopyMethod · 0.95
NewValueFunction · 0.92
PtrMethod · 0.80

Tested by

no test coverage detected