Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.2 . Technical Reference - <b>gocold()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 goCold()
 Perform write to data store of workarea memory
------------------------------------------------------------------------------
 Prototype

     ERRCODE goCold(
                     WORKAREAP wa
                   )

 Arguments

     wa is a pointer to self.

 Description

     Forces the RDD to ensure that any data contained in memory matches that
     stored in the data store (usually a disk).

 Default Behavior

     You must implement the default behavior of this method through a
     subclass.

 Implementation Notes

     .  The concept of hot and cold refers to the current state of
        information in memory as it relates to information on disk.  If the
        information in memory, has changed since last written to disk, it is
        considered hot.  A cold workarea's memory is in sync with its disk-
        based counterpart.

        In any implementation of goCold(), you should determine whether the
        buffer holding the current cursor's data has been written to.  If so,
        it is hot and must be turned cold by flushing or writing it to disk.

     .  wa should remain cold until it is marked hot by goHot().

 Files:  Header file is Rdd.api.


See Also: WORKAREA append() flush() goHot()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson