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

Function constructArrayEncodeFunc

json/codec.go:270–275  ·  view source on GitHub ↗
(size uintptr, t reflect.Type, encode encodeFunc)

Source from the content-addressed store, hash-verified

268}
269
270func constructArrayEncodeFunc(size uintptr, t reflect.Type, encode encodeFunc) encodeFunc {
271 n := t.Len()
272 return func(e encoder, b []byte, p unsafe.Pointer) ([]byte, error) {
273 return e.encodeArray(b, p, n, size, t, encode)
274 }
275}
276
277func constructArrayDecodeFunc(size uintptr, t reflect.Type, decode decodeFunc) decodeFunc {
278 n := t.Len()

Callers 1

constructArrayCodecFunction · 0.85

Calls 2

encodeArrayMethod · 0.80
LenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…