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

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

问题描述

我开始使用OOP编程,想知道OOP用语中序列化的含义是什么?

I am getting started with OOP programming 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天全站免登陆