MCPcopy Index your code
hub / github.com/tinode/chat / rangeSerialize

Function rangeSerialize

server/utils.go:56–67  ·  view source on GitHub ↗

Convert wire protocol ranges into database ranges.

(in []MsgRange)

Source from the content-addressed store, hash-verified

54
55// Convert wire protocol ranges into database ranges.
56func rangeSerialize(in []MsgRange) []types.Range {
57 if len(in) == 0 {
58 return nil
59 }
60
61 out := make([]types.Range, 0, len(in))
62 for _, r := range in {
63 out = append(out, types.Range{Low: r.LowId, Hi: r.HiId})
64 }
65
66 return out
67}
68
69// stringSliceDelta extracts the slices of added and removed strings from two slices:
70//

Callers 1

msgOpts2storeOptsFunction · 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…