MCPcopy
hub / github.com/tinode/chat / interfaceToBytes

Function interfaceToBytes

server/pbconverter.go:525–531  ·  view source on GitHub ↗
(in any)

Source from the content-addressed store, hash-verified

523}
524
525func interfaceToBytes(in any) []byte {
526 if in != nil {
527 out, _ := json.Marshal(in)
528 return out
529 }
530 return nil
531}
532
533func bytesToInterface(in []byte) any {
534 var out any

Callers 8

pbServDataSerializeFunction · 0.85
pbCliSerializeFunction · 0.85
pbSetDescSerializeFunction · 0.85
pbTopicDescSerializeFunction · 0.85
pbTopicSerializeToDescFunction · 0.85
pbTopicSubSerializeFunction · 0.85
pluginAccountFunction · 0.85
pluginSubscriptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…