Static Public Member Functions | |
static bool | Archive (int8 *buf, int &len, nAddress &addr) |
Definition at line 1949 of file nSocket.cpp.
static bool ReadArchiver< Archiver >::Archive | ( | int8 * | buf, | |
int & | len, | |||
nAddress & | addr | |||
) | [inline, static] |
Definition at line 1952 of file nSocket.cpp.
Referenced by nSocket::Read().
01952 { 01953 public: 01954 static bool Archive( int8 * buf, int & len, nAddress & addr ) 01955 { 01956 // start archive block if archiving is active 01957 Archiver archive; 01958 if( archive.Initialize( recordingSectionRead ) ) 01959 { 01960 // archive length of message 01961 archive.Archive( len ); 01962 if ( len < 0 ) 01963 return true; 01964 01965 // archive source address 01966 // BindArchiver< Archiver >::Archive( archive, addr ); 01967 archive.Archive( addr ); 01968 01969 // archive data 01970 for( int i = 0; i < len; ++i ) 01971 archive.Archive( buf[ i ] ); 01972 01973 archive.Separator(); 01974 01975 return true; 01976 } 01977