什么是序列化? [英] What is Serialization?

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

问题描述

我刚开始使用面向对象编程 (OOP),想知道:OOP 术语中的序列化是什么意思?

I am getting started with Object-Oriented Programming (OOP) and would like to know: what is the meaning of serialization in OOP parlance?

推荐答案

序列化是将内存中的对象转换为字节流的过程,以便您可以执行诸如将其存储在磁盘上或通过网络发送之类的操作.

Serialization is the process of turning an object in memory into a stream of bytes so you can do stuff like store it on disk or send it over the network.

反序列化是相反的过程:将字节流转换为内存中的对象.

Deserialization is the reverse process: turning a stream of bytes into an object in memory.

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

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