MCPcopy Create free account
hub / github.com/segmentio/encoding / customCodecOf

Function customCodecOf

proto/custom.go:9–16  ·  view source on GitHub ↗
(t reflect.Type)

Source from the content-addressed store, hash-verified

7)
8
9func customCodecOf(t reflect.Type) *codec {
10 return &codec{
11 wire: varlen,
12 size: customSizeFuncOf(t),
13 encode: customEncodeFuncOf(t),
14 decode: customDecodeFuncOf(t),
15 }
16}
17
18func customSizeFuncOf(t reflect.Type) sizeFunc {
19 return func(p unsafe.Pointer, flags flags) int {

Callers 1

codecOfFunction · 0.85

Calls 3

customSizeFuncOfFunction · 0.85
customEncodeFuncOfFunction · 0.85
customDecodeFuncOfFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…