序列化还是存档? [英] Serialization vs. Archiving?

查看:88
本文介绍了序列化还是存档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iOS文档区分序列化"和存档".这是一般性区别(即以其他语言保留)还是特定于Objective-C?还有,这两者之间有什么区别?

The iOS docs differentiate between "serializing" and "archiving." Is this a general distinction (i.e., holds in other languages) or is it specific to Objective-C? Also, what is the difference between these two?

推荐答案

在这种情况下,某个时间是另一个(但不是全部)时间是另一个.

This is a case of one being the other some (but not all) of the time.

维基百科关于序列化的说法是这样的:

Wikipedia has this to say about serialization:

串行化"是将数据结构或对象转换为位序列的过程,以便可以将其存储在文件或内存缓冲区中,或通过网络连接链路传输,以在以后以相同或更高的方式复活".另一个计算机环境"

"Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or transmitted across a network connection link to be "resurrected" later in the same or another computer environment"

因此,存档可能只是,例如,也可以是序列化和压缩的组合.也许它添加了某种标题信息.因此,序列化是归档的一种形式,但是归档不一定是序列化.

So, archiving may only be serialization, but it could also be the combination of serialization and compresssion, for example. Or perhaps it adds some kind of header info. So serialization is a form of archive, but an archive is not necessarily a serialization.

这并不是真的专门针对iOS-这些术语到处都是.但是,它们在iOS上下文中的特定含义可能非常具体.

This isn't really specific to iOS - these terms are thrown around all over. Their specific meaning in the context of iOS could be quite specific, though.

这篇关于序列化还是存档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆