Compact Framework 3.5 的二进制序列化

发布于 2024-09-09 23:21:31 字数 191 浏览 2 评论 0原文

我刚刚意识到 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

狠疯拽 2024-09-16 23:21:32

我知道有两个:

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.

_蜘蛛 2024-09-16 23:21:32

我们使用:
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.

一场春暖 2024-09-16 23:21:32

您可以使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文