Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
105
func
(c *Counter) toWire() *bep.Counter {
106
return
&bep.Counter{
107
Id: uint64(c.ID),
108
Value: c.Value,
109
}
110
}
111
112
func
counterFromWire(w *bep.Counter) Counter {
113
return
Counter{
Callers
7
TestWriteCompressed
Function · 0.45
ToWire
Method · 0.45
Index
Method · 0.45
IndexUpdate
Method · 0.45
Request
Method · 0.45
DownloadProgress
Method · 0.45
writerLoop
Method · 0.45
Calls
no outgoing calls
Tested by
1
TestWriteCompressed
Function · 0.36