MCPcopy Index your code
hub / github.com/vmihailenco/msgpack / encodeNormalString

Method encodeNormalString

encode_slice.go:74–79  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

72}
73
74func (e *Encoder) encodeNormalString(v string) error {
75 if err := e.encodeStringLen(len(v)); err != nil {
76 return err
77 }
78 return e.writeString(v)
79}
80
81func (e *Encoder) EncodeBytes(v []byte) error {
82 if v == nil {

Callers 2

EncodeStringMethod · 0.95
encodeInternedStringMethod · 0.95

Calls 2

encodeStringLenMethod · 0.95
writeStringMethod · 0.95

Tested by

no test coverage detected