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

Function pbDelQuerySerialize

server/pbconverter.go:1057–1068  ·  view source on GitHub ↗
(in []MsgRange)

Source from the content-addressed store, hash-verified

1055}
1056
1057func pbDelQuerySerialize(in []MsgRange) []*pbx.SeqRange {
1058 if in == nil {
1059 return nil
1060 }
1061
1062 out := make([]*pbx.SeqRange, len(in))
1063 for i, dq := range in {
1064 out[i] = &pbx.SeqRange{Low: int32(dq.LowId), Hi: int32(dq.HiId)}
1065 }
1066
1067 return out
1068}
1069
1070func pbDelQueryDeserialize(in []*pbx.SeqRange) []MsgRange {
1071 if in == nil {

Callers 3

pbServPresSerializeFunction · 0.85
pbCliSerializeFunction · 0.85
pbDelValuesSerializeFunction · 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…