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_string.cc

    r7444 r7459  
    1616
    1717#include "synchronizeable_string.h"
     18#include "converter.h"
    1819
    1920
     
    4445int SynchronizeableString::writeToBuf( byte * buf, int maxLength )
    4546{
    46 #warning implement this
     47  int res = Converter::stringToByteArray( *vPtrIn, buf, maxLength );
     48 
     49  assert( res > 0 );
     50 
     51  return res;
    4752}
    4853
     
    5560int SynchronizeableString::readFromBuf( byte * buf, int maxLength )
    5661{
    57 #warning implement this
     62  int res = Converter::byteArrayToString( buf, *vPtrOut, maxLength );
     63 
     64  assert( res > 0 );
     65 
     66  return res;
    5867}
Note: See TracChangeset for help on using the changeset viewer.