mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-17 10:58:49 -07:00
2c8b627008
Integers are for numbers, enabling arithmetic like subtractions and for loops without getting shot in the foot. Unsigneds are for bitfields. - "int" for numbers that will always be laughably smaller than four billion, and where we don't care about the serialization format. - "int32" for numbers that will always be laughably smaller than four billion, and will be serialized to four bytes. - "int64" for numbers that may approach four billion or will be serialized to eight bytes. - "uint32" and "uint64" for bitfields, depending on required number of bits and serialization format. Likewise "uint8" and "uint16", although rare in this project since they don't exist in XDR. - "int8", "int16" and plain "uint" are almost never useful. |
||
---|---|---|
.. | ||
testdata | ||
debug.go | ||
deviceactivity_test.go | ||
deviceactivity.go | ||
doc.go | ||
model_test.go | ||
model.go | ||
progressemitter_test.go | ||
progressemitter.go | ||
puller_test.go | ||
puller.go | ||
queue_test.go | ||
queue.go | ||
scanner.go | ||
sharedpullerstate_test.go | ||
sharedpullerstate.go | ||
tempname_windows.go | ||
tempname.go | ||
util.go |