MCPcopy Create free account
hub / github.com/segmentio/encoding / WriteBytes

Method WriteBytes

thrift/compact.go:267–272  ·  view source on GitHub ↗
(v []byte)

Source from the content-addressed store, hash-verified

265}
266
267func (w *compactWriter) WriteBytes(v []byte) error {
268 if err := w.WriteLength(len(v)); err != nil {
269 return err
270 }
271 return w.binary.write(v)
272}
273
274func (w *compactWriter) WriteString(v string) error {
275 if err := w.WriteLength(len(v)); err != nil {

Callers

nothing calls this directly

Calls 2

WriteLengthMethod · 0.95
writeMethod · 0.80

Tested by

no test coverage detected