Store Size Functions
The following common member functions return the number of bytes of secondary storage necessary to store an object of type ClassName to an RWFile:
 
RWspace ClassName::binaryStoreSize() const;
RWspace ClassName::recursiveStoreSize() const;
The member functions use the function:
 
RWFile& operator<<(RWFile& file, const ClassName&);
The above member functions are good for storing objects using classes RWFileManager and RWBTreeOnDisk. For objects that inherit from RWCollectable, the second variant recursiveStoreSize() can calculate the number of bytes used in a recursive store. The variant uses the function:
 
RWFile& operator<<(RWFile& file, const RWCollectable&)
You can use class RWAuditStreamBuffer in conjunction with any stream to count the number of bytes that pass through the buffer. RWAuditStreamBuffer thus provides the same functionality for streams that the StoreSize member functions (discussed above) provide for files. For more information on class RWAuditStreamBuffer, see the SourcePro API Reference Guide.