#include <DownloadableFileDescriptor.h>
Public Member Functions | |
| DownloadableFileDescriptor () | |
| ~DownloadableFileDescriptor () | |
| void | Clear (void) |
| 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 |
| unsigned | fileLength |
| bool | fileDataIsCompressed |
| unsigned | compressedFileLength |
| char | SHA1Code [SHA1_LENGTH] |
| char * | fileData |
A file descriptor contains informations used by the autopatcher to detect whether or not a file need to be updated or not.
|
|
Default Constructor |
|
|
Destructor |
|
|
Clear the file descriptor |
|
|
Retrieve File data
|
|
|
Retrieve Header information from a BitStream
|
|
|
Retrieve SHA1 hash
|
|
|
Append file content to the BitStream
|
|
|
Append to a BitStream the header for this file.
|
|
|
Append the SHA1 hash information to the BitStream
|
|
|
The size of the compressed file |
|
|
The data of the file. |
|
|
True if data is compressed using zlib |
|
|
The size of the file. |
|
|
The filename. It is a relative path. |
|
|
The SHA-1 hash key |
1.4.2