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

Method ToWire

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

Source from the content-addressed store, hash-verified

50}
51
52func (v *Vector) ToWire() *bep.Vector {
53 counters := make([]*bep.Counter, len(v.Counters))
54 for i, c := range v.Counters {
55 counters[i] = c.toWire()
56 }
57 return &bep.Vector{
58 Counters: counters,
59 }
60}
61
62func VectorFromWire(w *bep.Vector) Vector {
63 var v Vector

Callers 8

encryptFileInfoFunction · 0.45
toWireMethod · 0.45
toWireMethod · 0.45
toWireMethod · 0.45
writeEncryptionTrailerFunction · 0.45
encryptionTrailerSizeFunction · 0.45
AppendMethod · 0.45
UpdateMethod · 0.45

Calls 1

toWireMethod · 0.45

Tested by

no test coverage detected