Compact Framework 3.5 的二进制序列化
我刚刚意识到 CF3.5 不支持二进制格式化程序。我正在使用它通过网络发送对象,现在需要使用其他东西来序列化我的数据...... 我听说过 Google protocol buffers,但发现一个版本在 CF 下有 bug...
什么序列化框架适合 CF?
更新: 我忘了提及,我需要它用于商业产品......所以 GPL 没有帮助
I just realized that CF3.5 doesn't support the binary formatter. I'm using it to send objects over the network and now need to use something else to serialize my data...
I heard about Google protocol buffers but found a version that has a bug under CF...
What serialization framework is good for CF?
Update:
I forgot to mention, I need it for a commercial product... so GPL won't help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我知道有两个:
protobuf-net
OpenNxSerialization
我对这两者都有过经验(尽管不是在 CF 上),而且它们都是非常快速且易于使用。我相信他们都指定了对 CF 的支持。
There are two that I know of:
protobuf-net
OpenNxSerialization
I've had experience with both (though not on CF) and they are both very quick and easy to use. They both specify support for CF I believe.
我们使用:
CompactFormatterPlus + DotNetRemoting (已更正)
我相信其中也有一个二进制序列化器:
OpenNETCFIOSerial
更正我们实际上使用的是CompactFormatterPlus。我确实认为 OpenNetCF 也有一个二进制序列化器。每个设备同步的数据大小最多可达 20 Meg。
We use:
CompactFormatterPlus + DotNetRemoting (Corrected)
I belive this also has a binary serializer in it:
OpenNETCFIOSerial
Correction we actually use the CompactFormatterPlus. I do think that OpenNetCF also has a binary serializer as well. Our data that we sync can be up to 20 Meg in size per device.
您可以使用 db4o 并将其配置为使用 MemoryBin 作为后备存储,然后通过线路发送字节。
PS:该链接指向 Java 文档,因为 db4o .Net文档采用 CHM 格式。
You can use db4o and configure it to use a MemoryBin as the backing storage and then send the bytes over the wire.
PS: the link points to Java documentation because db4o .Net documentation is in CHM format.