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

Function interfaceMapToByteMap

server/pbconverter.go:505–513  ·  view source on GitHub ↗
(in map[string]any)

Source from the content-addressed store, hash-verified

503}
504
505func interfaceMapToByteMap(in map[string]any) map[string][]byte {
506 out := make(map[string][]byte, len(in))
507 for key, val := range in {
508 if val != nil {
509 out[key], _ = json.Marshal(val)
510 }
511 }
512 return out
513}
514
515func byteMapToInterfaceMap(in map[string][]byte) map[string]any {
516 out := make(map[string]any, len(in))

Callers 5

pbServCtrlSerializeBasicFunction · 0.85
pbServDataSerializeFunction · 0.85
pbServMetaSerializeFunction · 0.85
pbCliSerializeFunction · 0.85
pbClientCredSerializeFunction · 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…