Skip to content

Commit

Permalink
Update serialization.md
Browse files Browse the repository at this point in the history
修正序列化相关描述
  • Loading branch information
qksuki authored Sep 16, 2024
1 parent b5469fc commit b6d1a8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/java/basis/serialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ tag:

简单来说:

- **序列化**将数据结构或对象转换成二进制字节流的过程
- **反序列化**将在序列化过程中所生成的二进制字节流转换成数据结构或者对象的过程
- **序列化**将数据结构或对象转换成可以存储或传输的形式,通常是二进制字节流,也可以是 JSON, XML 等文本格式
- **反序列化**将在序列化过程中所生成的数据转换为原始数据结构或者对象的过程

对于 Java 这种面向对象编程语言来说,我们序列化的都是对象(Object)也就是实例化后的类(Class),但是在 C++这种半面向对象的语言中,struct(结构体)定义的是数据结构类型,而 class 对应的是对象类型。

Expand Down

0 comments on commit b6d1a8c

Please sign in to comment.