Some documentation.

This commit is contained in:
Ben Wiederhake 2015-10-17 00:25:47 +02:00
parent 134e53c0ec
commit b80178eb54
2 changed files with 4 additions and 1 deletions

View File

@ -2741,7 +2741,7 @@ void wstr (const char *s) {
assert (0);
}
wdata (s, x);
x ++;
x ++; // The header, containing the length, which is 1 byte
int t = 0;
if (x & 3) {
wdata (&t, 4 - (x & 3));

View File

@ -25,6 +25,9 @@
#ifndef __TL_TL_H__
#define __TL_TL_H__
// Current tl-tl schema is V2
// See https://core.telegram.org/mtproto/TL-tl
#define TLS_SCHEMA_V2 0x3a2f9be2
#define TLS_TYPE 0x12eb4386
#define TLS_COMBINATOR 0x5c0a1ed5