Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为我正在制作的服务器使用Minecraft Server To Client 协议文档。
它说数据包是 18+ 字节,但我似乎无法弄清楚每个字节的用途。
实体 ID = int = 4 字节映射种子 = 长 = 8 字节维度 = 字节 = 1 字节?
字符串是变量大小,因此它说“总大小:18 字节 + 字符串长度”
对不起,我不能更具体,需要更多细节
它还说字符串是一个短的(2 字节)长度,后跟字符串。
了解每个领域的价值是一个更加复杂的问题,我怀疑这里的任何人都可以提供帮助。