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

Function encodeFuncStructFieldOf

thrift/encode.go:378–386  ·  view source on GitHub ↗
(f structField, seen encodeFuncCache)

Source from the content-addressed store, hash-verified

376}
377
378func encodeFuncStructFieldOf(f structField, seen encodeFuncCache) encodeFunc {
379 if f.flags.have(enum) {
380 switch f.typ.Kind() {
381 case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
382 return encodeInt32
383 }
384 }
385 return encodeFuncOf(f.typ, seen)
386}
387
388func encodeFuncPtrOf(t reflect.Type, seen encodeFuncCache) encodeFunc {
389 typ := t.Elem()

Callers 1

encodeFuncStructOfFunction · 0.85

Calls 3

encodeFuncOfFunction · 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…