MCPcopy Index your code
hub / github.com/segmentio/encoding / typeid

Function typeid

json/codec.go:83–85  ·  view source on GitHub ↗
(t reflect.Type)

Source from the content-addressed store, hash-verified

81}
82
83func typeid(t reflect.Type) unsafe.Pointer {
84 return (*iface)(unsafe.Pointer(&t)).ptr
85}
86
87func constructCachedCodec(t reflect.Type, cache map[unsafe.Pointer]codec) codec {
88 c := constructCodec(t, map[reflect.Type]*structType{}, t.Kind() == reflect.Ptr)

Callers 3

cacheStoreFunction · 0.85
AppendFunction · 0.85
ParseFunction · 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…