Important: The information in this document is obsolete and should not be used for new development.
StreamToStorageUnit
Writes this Cyberdog item to a storage unit.
void StreamToStorageUnit (in ODStorageUnit su);
su
- The
ODStorageUnit
object in which the Cyberdog item is to be written.DISCUSSION
This method callsFlatten
to flatten this Cyberdog item to a byte stream and then writes the stream to the specified storage unit. This method is called to write a Cyberdog item to a storage unit in a single format. You can call this method to store a Cyberdog item when the stored Cyberdog item will not be used for data interchange. For example, this method is called by the notebook to store the contents of the notebook to a storage unit.This method assumes that the specified storage unit is focused on the correct storage unit property and value. To read a Cyberdog item saved using
StreamToStorageUnit
, you should call theCyberSession::CreateCyberItemFromSU
method.If you subclass
CyberItem
, do not override this method.SEE ALSO
TheFlatten
method (page 233).
TheCyberSession::CreateCyberItemFromSU
method (page 355).