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

Function decodeFuncStructFieldOf

thrift/decode.go:510–518  ·  view source on GitHub ↗
(f structField, seen decodeFuncCache)

Source from the content-addressed store, hash-verified

508}
509
510func decodeFuncStructFieldOf(f structField, seen decodeFuncCache) decodeFunc {
511 if f.flags.have(enum) {
512 switch f.typ.Kind() {
513 case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
514 return decodeInt32
515 }
516 }
517 return decodeFuncOf(f.typ, seen)
518}
519
520func decodeFuncPtrOf(t reflect.Type, seen decodeFuncCache) decodeFunc {
521 elem := t.Elem()

Callers 1

decodeFuncStructOfFunction · 0.85

Calls 3

decodeFuncOfFunction · 0.85
haveMethod · 0.80
KindMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…