如何实际看到 protobuf 在网络上或文件中传递一些字节? 步骤:

问题描述

我是 protobuf 的新手,想尝试一下,通过网络或文件传递一些数据,例如

2-byte unsigned int: 15
2-byte unsigned int: 15 and -1
4-byte unsigned int: 256,and then a string "Peter"
4-byte unsigned int: 256,and then two strings "Peter","Mary"
4-byte signed int: (3,4) as a point
4-byte signed int: a point above twice,such as (3,4) and (10,11) as a line
4-byte signed int and a string: the line above,and a name for this line

可以将字节由 Python / Ruby 写入文件中,然后由 JavaScript 读回吗? (也可以全部用 JavaScript 编写)。

我认为能够在本地网站上传递它可能要复杂一些?如果是这样,将其写入文件并能够读回就可以了。怎么可能做到?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)