MCPcopy
hub / github.com/syncthing/syncthing / toWire

Method toWire

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

Source from the content-addressed store, hash-verified

103}
104
105func (c *Counter) toWire() *bep.Counter {
106 return &bep.Counter{
107 Id: uint64(c.ID),
108 Value: c.Value,
109 }
110}
111
112func counterFromWire(w *bep.Counter) Counter {
113 return Counter{

Callers 7

TestWriteCompressedFunction · 0.45
ToWireMethod · 0.45
IndexMethod · 0.45
IndexUpdateMethod · 0.45
RequestMethod · 0.45
DownloadProgressMethod · 0.45
writerLoopMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestWriteCompressedFunction · 0.36