Writing and Reading the Object State
The Serialization package reads and writes the object state, including associations with other objects.
The object state is a logical representation of primitive data elements, not the bits in memory that represent the object. For example, the state of a linked list can be expressed as the length of the list and the elements in the list. The state of an ordered vector is expressed in the same way, though the internal representation is different.