Internalising a Swizzle from a stream has assignment semantics.
The process of internalisation assumes that the current position within the stream contains the external representation of a stream ID. The stream which corresponds to this ID contains the external representation of some object.
The result is a Swizzle which represents the object by stream ID.
The following code fragments illustrate the process.
The example assumes that the stream ID of the swizzled object has been externalised as in
CClassB's RestoreL() and InternalizeL() functions are implemented as:
Here,
Internalising a Swizzle from a stream has assignment semantics.
The process of internalisation assumes that the current position within the stream contains the external representation of a stream ID. The stream which corresponds to this ID contains the external representation of some object.
The result is a Swizzle which represents the object by stream ID.
The following code fragments illustrate the process.
The example assumes that the stream ID of the swizzled object has been externalised as in
CClassB's RestoreL() and InternalizeL() functions are implemented as:
Here,