What is the difference between Serialization and Marshaling?

前端 未结 12 1578
忘了有多久
忘了有多久 2020-12-02 03:30

I know that in terms of several distributed techniques (such as RPC), the term "Marshaling" is used but don\'t understand how it differs from Serialization. Aren\'

12条回答
  •  不思量自难忘°
    2020-12-02 04:08

    I think that the main difference is that Marshalling supposedly also involves the codebase. In other words, you would not be able to marshal and unmarshal an object into a state-equivalent instance of a different class. .

    Serialization just means that you can store the object and reobtain an equivalent state, even if it is an instance of another class.

    That being said, they are typically synonyms.

提交回复
热议问题