summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-02-11 19:20:43 -0500
committerirungentoo <irungentoo@gmail.com>2014-02-11 19:20:43 -0500
commit95dd3dfdde08dcc6dd1c6caca067e69242a21f03 (patch)
tree46a1371f629db1768b8872e61da2c1acdd8246df
parentd6e2f903a71981b26c86198fb20f8c00bb0452b1 (diff)
Added paragraph explaining how strings work in Tox.
-rw-r--r--toxcore/tox.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h
index 0597c435..75e1a303 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -128,6 +128,14 @@ TOX_USERSTATUS;
128typedef struct Tox Tox; 128typedef struct Tox Tox;
129#endif 129#endif
130 130
131/* NOTE: Strings in Tox are all UTF-8, also the last byte in all strings must be NULL (0).
132 *
133 * The length when passing those strings to the core includes that NULL character.
134 *
135 * It wont do anything if you send you send non NULL terminated strings because Tox force NULL terminates them anyways
136 * when it receives them.
137 */
138
131/* return TOX_FRIEND_ADDRESS_SIZE byte address to give to others. 139/* return TOX_FRIEND_ADDRESS_SIZE byte address to give to others.
132 * format: [client_id (32 bytes)][nospam number (4 bytes)][checksum (2 bytes)] 140 * format: [client_id (32 bytes)][nospam number (4 bytes)][checksum (2 bytes)]
133 */ 141 */