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

Function encodeCustomValue

encode_value.go:143–150  ·  view source on GitHub ↗
(e *Encoder, v reflect.Value)

Source from the content-addressed store, hash-verified

141}
142
143func encodeCustomValue(e *Encoder, v reflect.Value) error {
144 if nilable(v.Kind()) && v.IsNil() {
145 return e.EncodeNil()
146 }
147
148 encoder := v.Interface().(CustomEncoder)
149 return encoder.EncodeMsgpack(e)
150}
151
152func marshalValuePtr(e *Encoder, v reflect.Value) error {
153 if !v.CanAddr() {

Callers

nothing calls this directly

Calls 3

nilableFunction · 0.85
EncodeNilMethod · 0.80
EncodeMsgpackMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…