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

Method WriteBytes

thrift/binary.go:264–269  ·  view source on GitHub ↗
(v []byte)

Source from the content-addressed store, hash-verified

262}
263
264func (w *binaryWriter) WriteBytes(v []byte) error {
265 if err := w.WriteLength(len(v)); err != nil {
266 return err
267 }
268 return w.write(v)
269}
270
271func (w *binaryWriter) WriteString(v string) error {
272 if err := w.WriteLength(len(v)); err != nil {

Callers

nothing calls this directly

Calls 2

WriteLengthMethod · 0.95
writeMethod · 0.95

Tested by

no test coverage detected