# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

mem_stream.h File Reference

From memory serialization implementation of IStream using ASCII format (look at stream.h). More...

#include "nel/misc/types_nl.h"
#include "nel/misc/stream.h"
#include "nel/misc/object_vector.h"
#include "nel/misc/fast_mem.h"

Go to the source code of this file.

Namespaces

namespace  NLMISC

Defines

#define readnumber(dest, thetype, digits, convfunc)
#define writenumber(src, format, digits)


Detailed Description

From memory serialization implementation of IStream using ASCII format (look at stream.h).

Id:
mem_stream.h,v 1.26 2002/11/18 13:43:35 cado Exp

Definition in file mem_stream.h.


Define Documentation

#define readnumber dest,
thetype,
digits,
convfunc   
 

Value:

char number_as_cstring [digits+1]; \
        uint realdigits = serialSeparatedBufferIn( (uint8*)&number_as_cstring, digits ); \
        number_as_cstring[realdigits] = '\0'; \
        dest = (thetype)convfunc( number_as_cstring );

Definition at line 422 of file mem_stream.h.

Referenced by NLMISC::CStringStream::serial, NLMISC::CMemStream::serial, NLMISC::CStringStream::serialHex, and NLMISC::CMemStream::serialHex.

#define writenumber src,
format,
digits   
 

Value:

char number_as_cstring [digits+1]; \
        sprintf( number_as_cstring, format, src ); \
        serialSeparatedBufferOut( (uint8*)&number_as_cstring, strlen(number_as_cstring) );

Definition at line 429 of file mem_stream.h.

Referenced by NLMISC::CStringStream::serial, NLMISC::COXml::serial, NLMISC::CMemStream::serial, NLMISC::CStringStream::serialHex, and NLMISC::CMemStream::serialHex.