MCPcopy
hub / github.com/uptrace/uptrace / encodeInterface

Method encodeInterface

pkg/msgp/encoder.go:209–211  ·  view source on GitHub ↗
(b []byte, p unsafe.Pointer)

Source from the content-addressed store, hash-verified

207 return AppendNil(b), nil
208}
209func (e encoder) encodeInterface(b []byte, p unsafe.Pointer) ([]byte, error) {
210 return Append(b, *(*any)(p), e.flags)
211}
212func (e encoder) encodeMaybeNilInterface(b []byte, p unsafe.Pointer) ([]byte, error) {
213 v := *(*any)(p)
214 if v == nil {

Callers

nothing calls this directly

Calls 1

AppendFunction · 0.70

Tested by

no test coverage detected