Marshalling
It is a processing of converting a data residing in memory to a form that can be transmitted or stored. Mostly used with passing the data from one system to another system for remote calls. In this case, function call in another language.
Marshalling vs Serialisation
- Marshalling is serialisation plus information about data type and codebase.
Note:
Codebase: It stores the information about the implementation of the serialised object from where the receiver can know where to find the code to implement the object.
Why Marshalling in Python (Need to move into another file)
To create python bindings for c/c++, marshalling is used to move data between python and c/c++ because both languages use different mechanism to store data.