MTProto 字符串类型:长度是以字节为单位还是以 UTF-8 字符串长度为单位?
MTProto string type: are lengths measured in bytes or UTF-8 string length?
查看 https://core.telegram.org/type/string 我不清楚这里讨论的长度是 UTF-8 字符串长度,还是字符串编码后的字节数。
第二次阅读似乎是字节数:
then L bytes of the string followed by 0 to 3 characters containing 0
查看 https://core.telegram.org/type/string 我不清楚这里讨论的长度是 UTF-8 字符串长度,还是字符串编码后的字节数。
第二次阅读似乎是字节数:
then L bytes of the string followed by 0 to 3 characters containing 0