MCPcopy Create free account
hub / github.com/segmentio/encoding / cacheLoad

Function cacheLoad

json/codec.go:66–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64var cache atomic.Pointer[map[unsafe.Pointer]codec]
65
66func cacheLoad() map[unsafe.Pointer]codec {
67 p := cache.Load()
68 if p == nil {
69 return nil
70 }
71
72 return *p
73}
74
75func cacheStore(typ reflect.Type, cod codec, oldCodecs map[unsafe.Pointer]codec) {
76 newCodecs := make(map[unsafe.Pointer]codec, len(oldCodecs)+1)

Callers 2

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…