MCPcopy Index your code
hub / github.com/syncthing/syncthing / HumanString

Method HumanString

lib/protocol/vector.go:41–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41func (v *Vector) HumanString() string {
42 var buf strings.Builder
43 for i, c := range v.Counters {
44 if i > 0 {
45 buf.WriteRune(',')
46 }
47 fmt.Fprintf(&buf, "%s:%d", c.ID, c.Value)
48 }
49 return buf.String()
50}
51
52func (v *Vector) ToWire() *bep.Vector {
53 counters := make([]*bep.Counter, len(v.Counters))

Callers 2

DebugCountsMethod · 0.45
DebugFilePatternMethod · 0.45

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected