forked from mirrors/kolyah35-minecraft-pe-0.6.1
the whole game
This commit is contained in:
parent
816e9060b4
commit
f0617a5d22
2069 changed files with 581500 additions and 0 deletions
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue