Ignore:
Timestamp:
Oct 5, 2000, 9:27:57 AM (25 years ago)
Author:
bird
Message:

Implemented buffering of read and write in class kFile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/common/kFile.h

    r4402 r4426  
    1 /* $Id: kFile.h,v 1.6 2000-10-03 05:42:38 bird Exp $
     1/* $Id: kFile.h,v 1.7 2000-10-05 07:27:57 bird Exp $
    22 *
    33 * kFile - Simple (for the time being) file class.
     
    3838
    3939    /** @cat Buffering datamembers */
     40    char *          pachBuffer;         /* Pointer to the buffer. NULL if not buffering. */
     41    unsigned long   cbBuffer;           /* Count of allocated bytes. */
     42    unsigned long   offBuffer;          /* Virtual file offset where the buffer starts. */
     43    unsigned long   cbBufferValid;      /* Count of valid bytes in the buffer. */
     44    BOOL            fBufferDirty;       /* Dirty flag. Set when the buffer needs to be committed. */
     45
     46    /** @cat internal buffer methods */
     47    BOOL            bufferRead(ULONG offFile) throw (int);
     48    BOOL            bufferCommit(void) throw (int);
    4049
    4150    /** @cat internal methods for maintaing internal structures. */
Note: See TracChangeset for help on using the changeset viewer.