# 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  

bit_mem_stream.h File Reference

Bit-oriented memory stream. More...

#include "nel/misc/types_nl.h"
#include "nel/misc/mem_stream.h"

Go to the source code of this file.

Namespaces

namespace  NLMISC

Base type serialisation.

Those method are a specialisation of template method "void serial(T&)".

#define serialAdapt(b, type)
#define serialAdapt64(b)


Detailed Description

Bit-oriented memory stream.

Id:
bit_mem_stream.h,v 1.15 2002/10/29 10:44:23 legros Exp

Definition in file bit_mem_stream.h.


Define Documentation

#define serialAdapt b,
type   
 

Value:

uint32 ub=0; \
        if ( isReading() ) \
        { \
                serial( ub, sizeof(type)*8 ); \
                b = (type)ub; \
        } \
        else \
        { \
                ub = (uint32)b; \
                serial( ub, sizeof(type)*8 ); \
        }

Definition at line 216 of file bit_mem_stream.h.

Referenced by NLMISC::CBitMemStream::serial.

#define serialAdapt64  
 

Value:

serial( *((uint32*)(&b)+1), 32); \
        serial( *((uint32*)(&b)), 32);

Definition at line 255 of file bit_mem_stream.h.

Referenced by NLMISC::CBitMemStream::serial.