| | | | Browse by category |
Article ID: 1058
Last updated: 05 Feb, 2008
Problem
This entry contains more information about the use of binaryStoreSize() and recursiveStoreSize().
Action
These two functions are used to calculate how much space an object will take up if it is persisted in an RWFile. (Note: this is not the same as persisting to a virtual stream. The amount of space needed for a stream varies depending on the implementation that is derived from the RWvostream base class.)
This entry contains more information about the use of binaryStoreSize() and recursiveStoreSize().
Action
These two functions are used to calculate how much space an object will take up if it is persisted in an RWFile. (Note: this is not the same as persisting to a virtual stream. The amount of space needed for a stream varies depending on the implementation that is derived from the RWvostream base class.)
To calculate the correct store size, there are four different functions to use:
- sizeof() for built-in types
- binaryStoreSize() for Rogue Wave types not derived from RWCollectable
- recursiveStoreSize() for RWCollectables
- nilStoreSize() for RWCollectable pointers that are nil.
This article was:
Helpful |
Not helpful
Report an issue
Article ID: 1058
Last updated: 05 Feb, 2008
Revision: 1
Views: 3112
Posted: 25 Jun, 1997 by
Dean J.
Updated: 05 Feb, 2008 by
Dean J.
Others in this category
Powered by KBPublisher (Knowledge base software)