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

Function pbTopicSubSliceSerialize

server/pbconverter.go:955–965  ·  view source on GitHub ↗
(subs []MsgTopicSub)

Source from the content-addressed store, hash-verified

953}
954
955func pbTopicSubSliceSerialize(subs []MsgTopicSub) []*pbx.TopicSub {
956 if len(subs) == 0 {
957 return nil
958 }
959
960 out := make([]*pbx.TopicSub, len(subs))
961 for i := range subs {
962 out[i] = pbTopicSubSerialize(&subs[i])
963 }
964 return out
965}
966
967func pbTopicSubSerialize(sub *MsgTopicSub) *pbx.TopicSub {
968 out := &pbx.TopicSub{

Callers 1

pbServMetaSerializeFunction · 0.85

Calls 1

pbTopicSubSerializeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…