2015-05-15 03:36:57 +02:00
|
|
|
|
|
|
|
#include "net_file.h"
|
2015-06-25 05:59:39 +02:00
|
|
|
#include "base/bitfile.h"
|
2015-05-15 03:36:57 +02:00
|
|
|
|
|
|
|
namespace NetHandlers
|
|
|
|
{
|
2015-06-19 02:23:26 +02:00
|
|
|
bool Net_File_BitRead_Internal(BitRead& bitbuf, SourceGameContext& context, NetMsg::Net_File* data)
|
2015-05-15 03:36:57 +02:00
|
|
|
{
|
|
|
|
data->transferID = bitbuf.ReadUBitLong(32);
|
|
|
|
bitbuf.ReadString(data->filename, sizeof(data->filename));
|
|
|
|
data->isRequest = bitbuf.ReadOneBit() != 0;
|
|
|
|
return !bitbuf.IsOverflowed();
|
|
|
|
}
|
|
|
|
}
|