对象序列化 - 从C#或Java为目标C [英] Object serialization - from C# or java to Objective C
问题描述
服务器端 - C#或Java
Server side - C# or java
客户端目标C
我需要一种方法来序列化对象在C#\java和反序列化的目标C
我新的目标C,我想知道我在哪里可以得到有关此问题的信息。
I need a way to serialize an object in C#\java and de-serialize it in Objective C. I'm new to Objective C and I was wondering where I can get information about this issue.
感谢
推荐答案
除了明显的JSON / XML解决方案的 protobuf的也很有趣。有它的Java // C ++ / Python的后端和第三方创造了C#和Objective-C(从来没有使用过,一个虽然)以及后端。
Apart from the obvious JSON/XML solutions, protobuf may also be interesting. There are Java//c++/python backends for it and 3rd parties have created backends for C# and objective-c (never used that one though) as well.
主要优点是它是快得多解析[1],小得多[2],因为它是一个二进制格式与事实版本是从一开始的一个重要因素。
The main advantages are it being much, much faster to parse[1], much smaller[2] since it's a binary format and the fact that versioning was an important factor from the beginning.
[1]谷歌权利要求20-100times相比XML
[1] google claims 20-100times compared to XML
[2] 3-10times根据同一来源
[2] 3-10times according to the same source
相似protobufs另一项技术是阿帕奇节俭。
Another technology similar to protobufs is Apache Thrift.
阿帕奇节俭是可伸缩的跨语言服务开发一个软件框架。 Apache的节俭让你在一个简单的定义文件中定义的数据类型和服务接口。采取这一文件作为输入,编译器产生的代码可以用来方便地构建RPC客户端和服务器跨编程语言的无缝通信。
Apache Thrift is a software framework for scalable cross-language services development. Apache Thrift allows you to define data types and service interfaces in a simple definition file. Taking that file as input, the compiler generates code to be used to easily build RPC clients and servers that communicate seamlessly across programming languages.
这篇关于对象序列化 - 从C#或Java为目标C的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!