\x16\x00\x00\x00
\x表示16进制的方式
4个字节表示文档的大小,包括文档末尾的‘\0‘,‘\0‘是\x00 0x16十进制是22,这个文档的大小是22个字节
采用小端(Little Endian) 原文:Each type must be serialized in little-endian format.
每一种类型必须按照little-endian格式序列化。
原文:the array [‘red‘, ‘blue‘] would be encoded as the document {‘0‘: ‘red‘, ‘1‘: ‘blue‘}. The keys must be in ascending numerical order.
数组[‘red‘, ‘blue‘]将要编码为{‘0‘: ‘red‘, ‘1‘: ‘blue‘},key必须按照数值大小递增排序(升序)。
也就是["awesome", 5.05, 1986]将被编码为{ "0":"awesome", "1":5.05,"2":1986}
{"BSON": [ "0":"awesome", "1":5.05,"2":1986]}