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

Function ptrEncoderFunc

encode_value.go:125–133  ·  view source on GitHub ↗
(typ reflect.Type)

Source from the content-addressed store, hash-verified

123}
124
125func ptrEncoderFunc(typ reflect.Type) encoderFunc {
126 encoder := getEncoder(typ.Elem())
127 return func(e *Encoder, v reflect.Value) error {
128 if v.IsNil() {
129 return e.EncodeNil()
130 }
131 return encoder(e, v.Elem())
132 }
133}
134
135func encodeCustomValuePtr(e *Encoder, v reflect.Value) error {
136 if !v.CanAddr() {

Callers 1

_getEncoderFunction · 0.85

Calls 2

getEncoderFunction · 0.85
EncodeNilMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…