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

Function getEncoder

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

Source from the content-addressed store, hash-verified

40}
41
42func getEncoder(typ reflect.Type) encoderFunc {
43 if v, ok := typeEncMap.Load(typ); ok {
44 return v.(encoderFunc)
45 }
46 fn := _getEncoder(typ)
47 typeEncMap.Store(typ, fn)
48 return fn
49}
50
51func _getEncoder(typ reflect.Type) encoderFunc {
52 kind := typ.Kind()

Callers 4

ptrEncoderFuncFunction · 0.85
getFieldsFunction · 0.85
shouldInlineFunction · 0.85
EncodeValueMethod · 0.85

Calls 1

_getEncoderFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…