What is object marshalling?

后端 未结 10 959
后悔当初
后悔当初 2020-12-13 01:42

I have heard this concept used frequently, but I don\'t have a really good grasp of what it is.

10条回答
  •  庸人自扰
    2020-12-13 02:21

    Basically it's an expression for generically transforming an object (or similar) into another representation that (e.g.) can be sent over the wire or stored to disk (typically string or binary stream. The opposite, unmarshalling, describes the opposite direction of reading the marshalled representation and re-creating an object or whatever in-memory-structure existed earlier.

    Another current everyday example is JSON

提交回复
热议问题