Open Source Continuous File Synchronization
Go to file
Jakob Borg 3450b5f80c 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-18 02:13:25 +01:00
AUTHORS Relicense as MIT 2015-01-13 13:31:14 +01:00
common_test.go Relicense as MIT 2015-01-13 13:31:14 +01:00
CONTRIBUTING.md Relicense as MIT 2015-01-13 13:31:14 +01:00
counting.go Integer type policy 2015-01-18 02:13:25 +01:00
debug.go Relicense as MIT 2015-01-13 13:31:14 +01:00
deviceid_test.go Relicense as MIT 2015-01-13 13:31:14 +01:00
deviceid.go Relicense as MIT 2015-01-13 13:31:14 +01:00
doc.go Relicense as MIT 2015-01-13 13:31:14 +01:00
header.go Relicense as MIT 2015-01-13 13:31:14 +01:00
LICENSE Relicense as MIT 2015-01-13 13:31:14 +01:00
message_xdr.go Integer type policy 2015-01-18 02:13:25 +01:00
message.go Integer type policy 2015-01-18 02:13:25 +01:00
nativemodel_darwin.go Relicense as MIT 2015-01-13 13:31:14 +01:00
nativemodel_unix.go Relicense as MIT 2015-01-13 13:31:14 +01:00
nativemodel_windows.go Relicense as MIT 2015-01-13 13:31:14 +01:00
protocol_test.go Relicense as MIT 2015-01-13 13:31:14 +01:00
protocol.go Integer type policy 2015-01-18 02:13:25 +01:00
README.md Relicense as MIT 2015-01-13 13:31:14 +01:00
wireformat.go Relicense as MIT 2015-01-13 13:31:14 +01:00

The BEPv1 Protocol

Latest Build API Documentation MIT License

This is the protocol implementation used by Syncthing.

License

MIT