syncthing/internal/model
Jakob Borg 2c8b627008 Integer type policy
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.
2015-01-19 10:34:36 -08:00
..
testdata Don't leave read only dir around, fails clean 2014-11-20 23:34:14 +01:00
debug.go Use more inclusive copyright header 2014-11-17 12:54:42 +01:00
deviceactivity.go Refactor out protocol and luhn (protocol dependency) packages 2015-01-13 13:22:56 +01:00
deviceactivity_test.go Refactor out protocol and luhn (protocol dependency) packages 2015-01-13 13:22:56 +01:00
doc.go Use more inclusive copyright header 2014-11-17 12:54:42 +01:00
model.go Integer type policy 2015-01-19 10:34:36 -08:00
model_test.go Integer type policy 2015-01-19 10:34:36 -08:00
progressemitter.go config.ConfigWrapper -> config.Wrapper 2014-12-08 16:39:11 +01:00
progressemitter_test.go All roads lead to Finisher (fixes #1201) 2015-01-10 13:45:48 +00:00
puller.go Integer type policy 2015-01-19 10:34:36 -08:00
puller_test.go Integer type policy 2015-01-19 10:34:36 -08:00
queue.go Repair buggy BringToFront 2015-01-02 15:54:04 +01:00
queue_test.go Don't use Go 1.4 range syntax in queue_test.go, since the listed requirement is Go 1.3. 2015-01-06 15:45:58 -06:00
scanner.go Merge pull request #1172 from syncthing/random-scanintv 2015-01-02 15:25:22 +00:00
sharedpullerstate.go Integer type policy 2015-01-19 10:34:36 -08:00
sharedpullerstate_test.go All roads lead to Finisher (fixes #1201) 2015-01-10 13:45:48 +00:00
tempname.go Use more inclusive copyright header 2014-11-17 12:54:42 +01:00
tempname_windows.go Use more inclusive copyright header 2014-11-17 12:54:42 +01:00
util.go Use more inclusive copyright header 2014-11-17 12:54:42 +01:00