mirror of
https://github.com/weechat/weechat.git
synced 2026-06-26 04:46:37 +02:00
doc: fix styles in relay protocol
This commit is contained in:
@@ -1339,7 +1339,7 @@ Objects are identified by 3 letters, called _type_. Following types are used:
|
||||
| chr | Signed char | 1 byte
|
||||
| int | Signed integer | 4 bytes
|
||||
| lon | Signed long integer | 1 byte + length of integer as string
|
||||
| str | String | 4 bytes + length of string (without final _\0_)
|
||||
| str | String | 4 bytes + length of string (without final `\0`)
|
||||
| buf | Buffer of bytes | 4 bytes + length of data
|
||||
| ptr | Pointer | 1 byte + length of pointer as string
|
||||
| tim | Time | 1 byte + length of time as string
|
||||
@@ -1409,7 +1409,7 @@ length '-' '1' '2' '3' '4' '5' '6' '7' '8' '9' '0'
|
||||
[[object_string]]
|
||||
==== String
|
||||
|
||||
A string is a length (integer on 4 bytes) + content of string (without final _\0_).
|
||||
A string is a length (integer on 4 bytes) + content of string (without final `\0`).
|
||||
|
||||
Example:
|
||||
|
||||
|
||||
@@ -1365,7 +1365,7 @@ sont utilisés :
|
||||
| chr | Caractère signé | 1 octet
|
||||
| int | Entier signé | 4 octets
|
||||
| lon | Entier long signé | 1 octet + longueur de l'entier sous forme de chaîne
|
||||
| str | Chaîne | 4 octets + longueur de la chaîne (sans le _\0_ final)
|
||||
| str | Chaîne | 4 octets + longueur de la chaîne (sans le `\0` final)
|
||||
| buf | Tampon d'octets | 4 octets + longueur des données
|
||||
| ptr | Pointeur | 1 octet + longueur du pointeur sous forme de chaîne
|
||||
| tim | Date/heure | 1 octet + longueur de la date/heure sous forme de chaîne
|
||||
@@ -1437,7 +1437,7 @@ long. '-' '1' '2' '3' '4' '5' '6' '7' '8' '9' '0'
|
||||
==== Chaîne de caractères
|
||||
|
||||
Une chaîne de caractère est une longueur (un entier sur 4 octets) + le contenu
|
||||
de la chaîne (sans le _\0_ final).
|
||||
de la chaîne (sans le `\0` final).
|
||||
|
||||
Exemple :
|
||||
|
||||
|
||||
@@ -1345,7 +1345,7 @@ _WeeChat バージョン 0.3.8 以上で利用可。_
|
||||
| chr | 符号付文字 | 1 バイト
|
||||
| int | 符号付整数 | 4 バイト
|
||||
| lon | 符号付長整数 | 1 バイト + 文字列で表現した整数の長さ
|
||||
| str | 文字列 | 4 バイト + 文字列の長さ (最後の _\0_ を含まない)
|
||||
| str | 文字列 | 4 バイト + 文字列の長さ (最後の `\0` を含まない)
|
||||
| buf | バッファのバイト数 | 4 バイト + データの長さ
|
||||
| ptr | ポインタ | 1 バイト + 文字列で表現したポインタの長さ
|
||||
| tim | 時間 | 1 バイト + 文字列で表現した時間の長さ
|
||||
@@ -1415,7 +1415,7 @@ length '-' '1' '2' '3' '4' '5' '6' '7' '8' '9' '0'
|
||||
[[object_string]]
|
||||
==== 文字列
|
||||
|
||||
1 つの文字列はその長さ (4 バイト表現した整数) + 文字列の内容 (最後の _\0_ を除く) で表現されています。
|
||||
1 つの文字列はその長さ (4 バイト表現した整数) + 文字列の内容 (最後の `\0` を除く) で表現されています。
|
||||
|
||||
例:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user