Delphi 协议缓冲区?
有谁知道在 Delphi 中实现 Google Protocol Buffers 的项目吗?
Does anyone know of a project to do a Google Protocol Buffers implementation in Delphi?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
此处:
Fundamentals Protocol Buffers 4.00.01(2013 年 2 月 10 日)
Google Protocol Buffers
http://fundementals.sourceforge.net/dl.html< /a>
Here:
Fundamentals Protocol Buffers 4.00.01 (10 Feb 2013)
Google Protocol Buffers
http://fundementals.sourceforge.net/dl.html
该项目包含 Delphi 的 Protocol Buffers 的实现。从该项目中实现了特定项目所需的有限功能。当时,我认为转移整个项目代码没有任何意义。
http://sourceforge.net/projects/protobuf-delphi/
This project contains the implementation of Protocol Buffers for Delphi. From the project was implemented limited functionality necessary for a specific project. At that time, I do not see any sense to transfer the whole project code.
http://sourceforge.net/projects/protobuf-delphi/
您可能最好找到/制作一个 C++/Delphi 桥接器,而不是重新实现 Protocol Buffers。代码库相当大。
You may be better off finding / making a C++ / Delphi bridge, rather than re-implementing Protocol Buffers. The codebase is rather large.
我在 github 上找到了另一个。 (从2014年2月开发到2016年7月,截至2017年6月)
似乎有 初步 proto3支持。
我还没有测试,但它可能是今天最好的。https: //github.com/stijnsanders/DelphiProtocolBuffer
编辑:
我测试了这个,但它似乎是用旧的 delphi 编写的,并且没有准备好 unicode。
我可以编译生成器(使用 10 Seattle),但编译后的 exe 无法生成 pas 文件:-(
EDIT2:
代码生成器只需将 TStream 替换为 TStreamReader/Writer。
我确认生成器可以转换最近的地址簿示例。
I found another one on the github. (developped from Feb.2014 to Jul.2016, as of June 2017)
It seems to have preliminary proto3 support.
I didn't test yet, but it may be the best as of today.https://github.com/stijnsanders/DelphiProtocolBuffer
EDIT:
I tested this but it seems to be written in old delphi and not unicode ready.
I could compile the generator (using 10 Seattle), but compiled exe couldn't generate pas file :-(
EDIT2:
The code generator works just replacing TStream to TStreamReader/Writer.
I confirmed generator can convert recent address book sample.
我想知道您对使用 JSON 或 BSON 似乎是一项正在进行的工作)作为一个协议。
I wonder what you think of using either JSON or BSON seems like a work in progress) as a protocol.