We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Software

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

In Computer Programming, what is Marshalling?

Malcolm Tatum
By
Updated: May 16, 2024
Views: 13,743
Share

Marshalling in the context of computer programming is the transformation of components stored in the memory of the device into usable data that may be utilized by one or more of the programs residing on the hard drive. The action of gathering data into storage areas for easy retrieval is greatly enhanced by the process of marshalling, as it allows programs to recover the data for use without the need to translate the components each time the action is called for. From this perspective, marshalling aids in the speedy function of many of the software programs used in homes and businesses every day.

Along with converting objects into data and preparing the data for storage or transmission when needed, marshalling also acts as a buffer between the stored data and the various files or programs that make use of the data. This buffer helps to maintain the integrity of the stored data and allow it to be used for simultaneous actions involving more than one file or one program. The overall effect is to keep the system functioning at optimal levels without delays. For example, marshalling helps to make it possible to work with a spreadsheet, a word processing document, and an open Internet connection all at the same time, without delays. Marshalled data may be in use by all of these applications simultaneously without creating a drain on the resources of the hard drive.

Many persons who are knowledgeable about computer science in general consider marshalling to be somewhat similar to a process that is known as serialization. Serializing an object involves converting the object from the original state into a byte stream, but in a manner where the byte stream can be converted back into the original state if necessary. Marshalling differs from serialization in that serialization does not record codebases. Marshalling handles both the functions of conversion and the recording of codebases. In addition, marshalling can be utilized with remote objects, whereas serialization cannot. This means that for some configurations, the marshall approach to object conversion, storage, and transmission may be preferable.

Share
EasyTechJunkie is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.
Malcolm Tatum
By Malcolm Tatum
Malcolm Tatum, a former teleconferencing industry professional, followed his passion for trivia, research, and writing to become a full-time freelance writer. He has contributed articles to a variety of print and online publications, including EasyTechJunkie, and his work has also been featured in poetry collections, devotional anthologies, and newspapers. When not writing, Malcolm enjoys collecting vinyl records, following minor league baseball, and cycling.
Discussion Comments
By NathanG — On May 06, 2011

@Charred - They sold their development division so they don’t make the compilers anymore. Another company bought that out.

By Charred — On May 05, 2011

@MrMoody - Did you say you worked with Borland? Are they still around?

By MrMoody — On May 03, 2011

@bteck - I agree. Marshalling can get to be a difficult concept to master for newcomers, but basically it’s all about converting data from one form to another in order to share between resources—at least that’s one take. I worked with a company that developed both Borland and Microsoft products, and we often had to use marshalling to convert data in memory so that both development environments could transfer the information back and forth. Microsoft has some built-in classes, especially in their .NET platform, which make marshalling fairly straightforward. You can find a lot of examples online.

By bteck — On Mar 19, 2011

Well written explanation, clear and simple. Keep it up!

Malcolm Tatum
Malcolm Tatum
Malcolm Tatum, a former teleconferencing industry professional, followed his passion for trivia, research, and writing...
Learn more
Share
https://www.easytechjunkie.com/in-computer-programming-what-is-marshalling.htm
Copy this link
EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.

EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.