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

Function constructArrayCodec

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

Source from the content-addressed store, hash-verified

258}
259
260func constructArrayCodec(t reflect.Type, seen map[reflect.Type]*structType, canAddr bool) codec {
261 e := t.Elem()
262 c := constructCodec(e, seen, canAddr)
263 s := alignedSize(e)
264 return codec{
265 encode: constructArrayEncodeFunc(s, t, c.encode),
266 decode: constructArrayDecodeFunc(s, t, c.decode),
267 }
268}
269
270func constructArrayEncodeFunc(size uintptr, t reflect.Type, encode encodeFunc) encodeFunc {
271 n := t.Len()

Callers 1

constructCodecFunction · 0.85

Calls 5

constructCodecFunction · 0.85
constructArrayEncodeFuncFunction · 0.85
constructArrayDecodeFuncFunction · 0.85
alignedSizeFunction · 0.70
ElemMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…