MCPcopy Create free account
hub / github.com/corestoreio/pkg / newPooledCodec

Function newPooledCodec

storage/objcache/pool.go:31–64  ·  view source on GitHub ↗

newPooledCodec delegates to the passed codec for creating Encoders/Decoders. Newly created Encoder/Decoders will Encode/Decode the passed sample structs without actually writing/reading from their respective Writer/Readers. This is useful for Codec's like GobCodec{} which encodes/decodes extra type

(codec Codecer, types ...any)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

NewServiceFunction · 0.85

Calls 4

EncodeMethod · 0.95
DecodeMethod · 0.80
NewEncoderMethod · 0.65
NewDecoderMethod · 0.65

Tested by

no test coverage detected