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

Method WriteControl

api/queryio/bsup.go:29–40  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

27}
28
29func (w *BSUPWriter) WriteControl(v any) error {
30 val, err := w.marshaler.Marshal(v)
31 if err != nil {
32 return err
33 }
34 var buf bytes.Buffer
35 err = supio.NewWriter(sio.NopCloser(&buf), supio.WriterOpts{}).Write(val)
36 if err != nil {
37 return err
38 }
39 return w.Writer.WriteControl(buf.Bytes(), bsupio.ControlFormatSUP)
40}

Callers

nothing calls this directly

Calls 6

NewWriterFunction · 0.92
NopCloserFunction · 0.92
WriteMethod · 0.65
WriteControlMethod · 0.65
MarshalMethod · 0.45
BytesMethod · 0.45

Tested by

no test coverage detected