syncthing/internal/db
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 Rename package internal/files to internal/db 2015-01-12 20:57:22 +01:00
.gitignore Rename package internal/files to internal/db 2015-01-12 20:57:22 +01:00
blockmap_test.go Integer type policy 2015-01-19 10:34:36 -08:00
blockmap.go Integer type policy 2015-01-19 10:34:36 -08:00
concurrency_test.go Rename package internal/files to internal/db 2015-01-12 20:57:22 +01:00
debug.go Rename package internal/files to internal/db 2015-01-12 20:57:22 +01:00
leveldb_test.go Rename package internal/files to internal/db 2015-01-12 20:57:22 +01:00
leveldb_xdr.go Integer type policy 2015-01-19 10:34:36 -08:00
leveldb.go Integer type policy 2015-01-19 10:34:36 -08:00
set_test.go Integer type policy 2015-01-19 10:34:36 -08:00
set.go Integer type policy 2015-01-19 10:34:36 -08:00
truncated_xdr.go Integer type policy 2015-01-19 10:34:36 -08:00
truncated.go Integer type policy 2015-01-19 10:34:36 -08:00