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

Function constructArrayDecodeFunc

json/codec.go:277–282  ·  view source on GitHub ↗
(size uintptr, t reflect.Type, decode decodeFunc)

Source from the content-addressed store, hash-verified

275}
276
277func constructArrayDecodeFunc(size uintptr, t reflect.Type, decode decodeFunc) decodeFunc {
278 n := t.Len()
279 return func(d decoder, b []byte, p unsafe.Pointer) ([]byte, error) {
280 return d.decodeArray(b, p, n, size, t, decode)
281 }
282}
283
284func constructSliceCodec(t reflect.Type, seen map[reflect.Type]*structType) codec {
285 e := t.Elem()

Callers 1

constructArrayCodecFunction · 0.85

Calls 2

decodeArrayMethod · 0.80
LenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…