MCPcopy
hub / github.com/vmihailenco/msgpack / EncodeBytes

Method EncodeBytes

encode_slice.go:81–89  ·  view source on GitHub ↗
(v []byte)

Source from the content-addressed store, hash-verified

79}
80
81func (e *Encoder) EncodeBytes(v []byte) error {
82 if v == nil {
83 return e.EncodeNil()
84 }
85 if err := e.EncodeBytesLen(len(v)); err != nil {
86 return err
87 }
88 return e.write(v)
89}
90
91func (e *Encoder) EncodeArrayLen(l int) error {
92 if l < 16 {

Callers 4

EncodeMethod · 0.95
marshalBinaryValueFunction · 0.80
marshalTextValueFunction · 0.80
encodeByteSliceValueFunction · 0.80

Calls 3

EncodeNilMethod · 0.95
EncodeBytesLenMethod · 0.95
writeMethod · 0.95

Tested by

no test coverage detected