Shadowrun: Awakened 29 September 2011 - Build 871
FileListNodeContext.h
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 #ifndef __FILE_LIST_NODE_CONTEXT_H
00008 #define __FILE_LIST_NODE_CONTEXT_H
00009 
00010 #include "BitStream.h"
00011 
00012 struct FileListNodeContext
00013 {
00014     FileListNodeContext() {dataPtr=0; dataLength=0;}
00015     FileListNodeContext(unsigned char o, unsigned int f) : op(o), fileId(f) {dataPtr=0; dataLength=0;}
00016     ~FileListNodeContext() {}
00017 
00018     unsigned char op;
00019     unsigned int fileId;
00020     void *dataPtr;
00021     unsigned int dataLength;
00022 };
00023 
00024 inline RakNet::BitStream& operator<<(RakNet::BitStream& out, FileListNodeContext& in)
00025 {
00026     out.Write(in.op);
00027     out.Write(in.fileId);
00028     return out;
00029 }
00030 inline RakNet::BitStream& operator>>(RakNet::BitStream& in, FileListNodeContext& out)
00031 {
00032     in.Read(out.op);
00033     bool success = in.Read(out.fileId);
00034     assert(success);
00035     return in;
00036 }
00037 
00038 #endif

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net