- into the same order as the characters occur in the string. The emitter
- computes then the longuest sequence of successives 0 (say, m) and 1 (n).
- A signature is then chosen :
+ into the same order as the characters occur in the string.
+
+ The header is composed by the "utf8" bit (if the data has to be decoded
+ to UTF-8), the "sign" bit (if sender gives its PID in the header), and
+ then 24 bits representing the sender's PID (with highest weight coming
+ first) if the "sign" bit is set.
+
+ The emitter computes then the longuest sequence of successives 0 (say,
+ m) and 1 (n) in the concatenation of the header and the data. A
+ signature is then chosen :
+
+ - If m > n, we take n+1 times 1 followed by one 0 ;
+ - Otherwise, we take m+1 times 0 followed by one 1.