MCPcopy Index your code
hub / github.com/vmihailenco/msgpack / encodeInternedInterfaceValue

Function encodeInternedInterfaceValue

intern.go:42–52  ·  view source on GitHub ↗

------------------------------------------------------------------------------

(e *Encoder, v reflect.Value)

Source from the content-addressed store, hash-verified

40//------------------------------------------------------------------------------
41
42func encodeInternedInterfaceValue(e *Encoder, v reflect.Value) error {
43 if v.IsNil() {
44 return e.EncodeNil()
45 }
46
47 v = v.Elem()
48 if v.Kind() == reflect.String {
49 return e.encodeInternedString(v.String(), true)
50 }
51 return e.EncodeValue(v)
52}
53
54func encodeInternedStringValue(e *Encoder, v reflect.Value) error {
55 return e.encodeInternedString(v.String(), true)

Callers

nothing calls this directly

Calls 4

EncodeNilMethod · 0.80
encodeInternedStringMethod · 0.80
StringMethod · 0.80
EncodeValueMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…