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

Function constructSliceEncodeFunc

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

Source from the content-addressed store, hash-verified

337}
338
339func constructSliceEncodeFunc(size uintptr, t reflect.Type, encode encodeFunc) encodeFunc {
340 return func(e encoder, b []byte, p unsafe.Pointer) ([]byte, error) {
341 return e.encodeSlice(b, p, size, t, encode)
342 }
343}
344
345func constructSliceDecodeFunc(size uintptr, t reflect.Type, decode decodeFunc) decodeFunc {
346 return func(d decoder, b []byte, p unsafe.Pointer) ([]byte, error) {

Callers 1

constructSliceCodecFunction · 0.85

Calls 1

encodeSliceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…