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

Function messageCodecOf

proto/message.go:293–300  ·  view source on GitHub ↗
(t reflect.Type)

Source from the content-addressed store, hash-verified

291)
292
293func messageCodecOf(t reflect.Type) *codec {
294 return &codec{
295 wire: varlen,
296 size: messageSizeFuncOf(t),
297 encode: messageEncodeFuncOf(t),
298 decode: messageDecodeFuncOf(t),
299 }
300}
301
302func messageSizeFuncOf(t reflect.Type) sizeFunc {
303 return func(p unsafe.Pointer, flags flags) int {

Callers 1

codecOfFunction · 0.85

Calls 3

messageSizeFuncOfFunction · 0.85
messageEncodeFuncOfFunction · 0.85
messageDecodeFuncOfFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…