Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is object marshalling?

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

like image 804
Brian G Avatar asked Sep 30 '08 17:09

Brian G


People also ask

What does marshalling data mean?

To prepare data for processing or for transport over a network. Data marshalling may collect data from a single source or from multiple sources, but then performs the necessary conversion to a common format for processing or for transmission.

What is marshalling and its types?

Marshalling is the process of transforming types when they need to cross between managed and native code. Marshalling is needed because the types in the managed and unmanaged code are different.

What is marshalling and why do we need it?

Marshalling is a "medium" for want of a better word or a gateway, to communicate with the unmanaged world's data types and vice versa, by using the pinvoke, and ensures the data is returned back in a safe manner.

Why is it called marshalling?

Usually the word "marshalling" is used when you're crossing some sort of boundary. Three obvious use cases: Remoting: the RPC data is marshalled to a separate machine (usually) AppDomains: an object crossing an AppDomain boundary needs to be marshalled (or it may be marshalled by reference)


2 Answers

Converting an object in memory into a format that can be written to disk, or sent over the wire, etc.

Wikipedia's description.

like image 140
Adrian Avatar answered Sep 24 '22 15:09

Adrian


I beg to differ, Wikipedia is pretty clear on this.

In computer science, marshalling (similar to serialization) is the process of transforming the memory representation of an object to a data format suitable for storage or transmission. It is typically used when data must be moved between different parts of a computer program or from one program to another.

http://en.wikipedia.org/wiki/Marshalling_(computer_science)

like image 22
GEOCHET Avatar answered Sep 24 '22 15:09

GEOCHET