DownloadableFileDescriptor Struct Reference

File information. More...

#include <DownloadableFileDescriptor.h>

List of all members.

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.


Detailed Description

File information.

A file descriptor contains informations used by the autopatcher to detect whether or not a file need to be updated or not.


Member Function Documentation

bool DownloadableFileDescriptor::DeserializeFileData RakNet::BitStream in  ) 
 

Read the file data from a bitstream

Parameters:
[in] in The bitstream to read from

bool DownloadableFileDescriptor::DeserializeHeader RakNet::BitStream in  ) 
 

Read the header from a bitstream

Parameters:
[in] in The bitstream to read from

bool DownloadableFileDescriptor::DeserializeSHA1 RakNet::BitStream in  ) 
 

Read the SHA1 file signature from a bitstream

Parameters:
[in] in The bitstream to read from

void DownloadableFileDescriptor::SerializeFileData RakNet::BitStream out  ) 
 

Write the file data to a bitstream

Parameters:
[out] out The bitstream to write to

void DownloadableFileDescriptor::SerializeHeader RakNet::BitStream out  ) 
 

Write the header to a bitstream

Parameters:
[out] out The bitstream to write to

void DownloadableFileDescriptor::SerializeSHA1 RakNet::BitStream out  ) 
 

Write the SHA1 to a bitstream

Parameters:
[out] out The bitstream to write to


The documentation for this struct was generated from the following files:
Generated on Wed May 3 09:11:54 2006 for RakNet by  doxygen 1.4.6-NO