#include <DownloadableFileDescriptor.h>
Public Member Functions | |
DownloadableFileDescriptor () | |
Default Constructor. | |
~DownloadableFileDescriptor () | |
Destructor. | |
void | Clear (void) |
Clear the file descriptor. | |
void | SerializeHeader (RakNet::BitStream *out) |
void | SerializeSHA1 (RakNet::BitStream *out) |
void | SerializeFileData (RakNet::BitStream *out) |
bool | DeserializeHeader (RakNet::BitStream *in) |
bool | DeserializeSHA1 (RakNet::BitStream *in) |
bool | DeserializeFileData (RakNet::BitStream *in) |
Public Attributes | |
char * | filename |
The filename obviously. | |
unsigned | fileLength |
The length of the file, in bytes. | |
bool | fileDataIsCompressed |
True if data is compressed using zlib. | |
unsigned | compressedFileLength |
The size of the compressed file. | |
char | SHA1Code [SHA1_LENGTH] |
The SHA-1 hash key. | |
char * | fileData |
The data of the file. |
A file descriptor contains informations used by the autopatcher to detect whether or not a file need to be updated or not.
|
Read the file data from a bitstream
|
|
Read the header from a bitstream
|
|
Read the SHA1 file signature from a bitstream
|
|
Write the file data to a bitstream
|
|
Write the header to a bitstream
|
|
Write the SHA1 to a bitstream
|