[Gcblue-commits] gcb_wx/src/common tcStream.cpp,1.8,1.9
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-04-29 18:53:36
|
Update of /cvsroot/gcblue/gcb_wx/src/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27631/src/common Modified Files: tcStream.cpp Log Message: Index: tcStream.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/common/tcStream.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** tcStream.cpp 16 Apr 2005 20:44:42 -0000 1.8 --- tcStream.cpp 29 Apr 2005 18:52:53 -0000 1.9 *************** *** 138,141 **** --- 138,147 ---- } + tcStream& tcStream::operator<<(char& val) + { + write((char*)&val, sizeof(val)); + return *this; + } + tcStream& tcStream::operator<<(unsigned char& val) { *************** *** 211,214 **** --- 217,225 ---- } + tcStream& tcStream::operator>>(char& val) + { + read((char*)&val, sizeof(val)); + return *this; + } tcStream& tcStream::operator>>(unsigned char& val) |