Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 30, 2006, 1:50:25 PM (18 years ago)
Author:
rennerc
Message:

finished some SynchronizeableVars classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/synchronizeable_var/synchronizeable_var.h

    r7444 r7459  
    2222    inline bool beWatched(){ return this->bWatched; }
    2323   
    24     virtual int writeToBuf( byte * buf, int maxLength );
    25     virtual int readFromBuf( byte * buf, int maxLength );
     24    /**
     25     * write var data to byte buffer
     26     * @param buf pointer to write to
     27     * @param maxLength writeToBuf will not write more than maxLength bytes
     28     * @return number bytes written
     29     */
     30    virtual int writeToBuf( byte * buf, int maxLength ) = 0;
     31   
     32    /**
     33     * read var data from byte buffer
     34     * @param buf pointer to read from
     35     * @param maxLength readFromBuf will not read more than maxLength bytes
     36     * @return number bytes read
     37     */
     38    virtual int readFromBuf( byte * buf, int maxLength ) = 0;
     39   
     40    /**
     41     * check if writeToBuf will return the same size every time
     42     * @return true if same size every time
     43     */
     44    virtual bool hasStaticSize() = 0;
    2645   
    2746    /**
Note: See TracChangeset for help on using the changeset viewer.