简体   繁体   中英

Binary serialization for compact framework 3.5

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

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.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM