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

Function constructStringCodec

json/codec.go:234–240  ·  view source on GitHub ↗
(t reflect.Type, seen map[reflect.Type]*structType, canAddr bool)

Source from the content-addressed store, hash-verified

232}
233
234func constructStringCodec(t reflect.Type, seen map[reflect.Type]*structType, canAddr bool) codec {
235 c := constructCodec(t, seen, canAddr)
236 return codec{
237 encode: constructStringEncodeFunc(c.encode),
238 decode: constructStringDecodeFunc(c.decode),
239 }
240}
241
242func constructStringEncodeFunc(encode encodeFunc) encodeFunc {
243 return func(e encoder, b []byte, p unsafe.Pointer) ([]byte, error) {

Callers 1

constructMapCodecFunction · 0.85

Calls 3

constructCodecFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…