MCPcopy Create free account
hub / github.com/vmihailenco/msgpack / addrDecoder

Function addrDecoder

decode_value.go:142–149  ·  view source on GitHub ↗
(fn decoderFunc)

Source from the content-addressed store, hash-verified

140}
141
142func addrDecoder(fn decoderFunc) decoderFunc {
143 return func(d *Decoder, v reflect.Value) error {
144 if !v.CanAddr() {
145 return fmt.Errorf("msgpack: Decode(nonaddressable %T)", v.Interface())
146 }
147 return fn(d, v.Addr())
148 }
149}
150
151func nilAwareDecoder(typ reflect.Type, fn decoderFunc) decoderFunc {
152 if nilable(typ.Kind()) {

Callers 1

_getDecoderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…