mem_stream.h File Reference


Detailed Description

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

Id
mem_stream.h,v 1.35 2004/02/19 09:57:14 vizerie Exp

Definition in file mem_stream.h.

#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)


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 525 of file mem_stream.h.

#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 532 of file mem_stream.h.


Generated on Tue Mar 16 06:42:54 2004 for NeL by doxygen 1.3.6