Definition – Serialization / Deserialization
Serialization / Deserialization
Serialization is the process of translating data structures or object state into a format that can be stored (for example, in a file or memory buffer) or transmitted (for example, across a network connection link) and reconstructed later (possibly in a different computer environment).
Serialization is used when we want to store and load the data back into memory (at a later point in time).
We can use this in games, when we want to save the progress or the inventory of a profile.
This will allow us to load the bytes and reconstruct the object so we can use it afterwards.
In order to make use of serialization / deserialization process, we will need to use persistency (such as a file, or a db) so we can have the data stored after the application is closed.
More on serialization can be read here.