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

Function encodeCustomValuePtr

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

Source from the content-addressed store, hash-verified

133}
134
135func encodeCustomValuePtr(e *Encoder, v reflect.Value) error {
136 if !v.CanAddr() {
137 return fmt.Errorf("msgpack: Encode(non-addressable %T)", v.Interface())
138 }
139 encoder := v.Addr().Interface().(CustomEncoder)
140 return encoder.EncodeMsgpack(e)
141}
142
143func encodeCustomValue(e *Encoder, v reflect.Value) error {
144 if nilable(v.Kind()) && v.IsNil() {

Callers

nothing calls this directly

Calls 1

EncodeMsgpackMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…