序列化的作用 serializer

# 硬件的serializer 和 deserialier

減少硬件引腳

 

# 軟件的序列化

序列化是一種快速簡單的在其他環境中恢復object或data structure的方法。

應用場景1,通過網絡,跨計算機網絡通信。

應用場景2,登錄狀態的數據,保存到內存,

 

Serialization, in short, is a way to translate objects or data structures into a format that can be easily used later on to retrieve some data (in another computer environment, in most cases).

 

序列化的方法

XML ,JSON是文本格式

Protocol buffer是二進制格式。是google開發的數據描述語言

 

序列化後的體積小,反序列速度快。向下的兼容性。

 

參考

https://www.codeproject.com/Articles/1239398/Creating-a-custom-de-serializer

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章