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

Function storeCachedCodec

proto/proto.go:164–166  ·  view source on GitHub ↗
(newCache map[unsafe.Pointer]*codec)

Source from the content-addressed store, hash-verified

162}
163
164func storeCachedCodec(newCache map[unsafe.Pointer]*codec) {
165 codecCache.Store(newCache)
166}
167
168func cachedCodecOf(t reflect.Type) *codec {
169 c, oldCache := loadCachedCodec(t)

Callers 1

cachedCodecOfFunction · 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…