the whole game
This commit is contained in:
39
project/lib_projects/raknet/jni/RaknetSources/FileListNodeContext.h
Executable file
39
project/lib_projects/raknet/jni/RaknetSources/FileListNodeContext.h
Executable file
@@ -0,0 +1,39 @@
|
||||
/// \file FileListNodeContext.h
|
||||
///
|
||||
/// This file is part of RakNet Copyright 2003 Jenkins Software LLC
|
||||
///
|
||||
/// Usage of RakNet is subject to the appropriate license agreement.
|
||||
|
||||
#ifndef __FILE_LIST_NODE_CONTEXT_H
|
||||
#define __FILE_LIST_NODE_CONTEXT_H
|
||||
|
||||
#include "BitStream.h"
|
||||
|
||||
struct FileListNodeContext
|
||||
{
|
||||
FileListNodeContext() {dataPtr=0; dataLength=0;}
|
||||
FileListNodeContext(unsigned char o, unsigned int f) : op(o), fileId(f) {dataPtr=0; dataLength=0;}
|
||||
~FileListNodeContext() {}
|
||||
|
||||
unsigned char op;
|
||||
unsigned int fileId;
|
||||
void *dataPtr;
|
||||
unsigned int dataLength;
|
||||
};
|
||||
|
||||
inline RakNet::BitStream& operator<<(RakNet::BitStream& out, FileListNodeContext& in)
|
||||
{
|
||||
out.Write(in.op);
|
||||
out.Write(in.fileId);
|
||||
return out;
|
||||
}
|
||||
inline RakNet::BitStream& operator>>(RakNet::BitStream& in, FileListNodeContext& out)
|
||||
{
|
||||
in.Read(out.op);
|
||||
bool success = in.Read(out.fileId);
|
||||
(void) success;
|
||||
assert(success);
|
||||
return in;
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user