#include <downloadDb.h>
Public Member Functions | |
Db (void) | |
void | write (ostream &out) const |
int | get_num_multifiles (void) const |
string | get_multifile_name (int index) const |
bool | multifile_exists (string mfname) const |
PointerTo< MultifileRecord > | get_multifile_record_named (string mfname) const |
void | add_multifile_record (PointerTo< MultifileRecord > mfr) |
int | parse_header (uchar *start, int size) |
Verifies magic number, returns the number of multifiles or -1 if invalid. | |
int | parse_record_header (uchar *start, int size) |
Parses a file record (fr) header and returns the length of the next file record. | |
PointerTo< MultifileRecord > | parse_mfr (uchar *start, int size) |
Parses a multifile record (mfr) and returns one. | |
PointerTo< FileRecord > | parse_fr (uchar *start, int size) |
Parses a file record (fr) and returns one. | |
bool | read (istream &read_stream, bool want_server_info) |
bool | write (ofstream &write_stream, bool want_server_info) |
bool | write_header (ofstream &write_stream) |
Writes the header uncompressed with platform- independent byte ordering. | |
bool | write_bogus_header (ofstream &write_stream) |
Writes the bogus header uncompressed with platform- independent byte ordering. | |
Public Attributes | |
Filename | _filename |
MultifileRecords | _mfile_records |
Private Attributes | |
PN_int32 | _header_length |
Datagram | _datagram |
|
Definition at line 663 of file downloadDb.cxx. References _datagram, Datagram::append_data(), Datagram::clear(), DatagramIterator::get_uint32(), and PN_uint32. |
|
Definition at line 757 of file downloadDb.cxx. Referenced by DownloadDb::get_server_multifile_hash(). |
|
Definition at line 705 of file downloadDb.cxx. References _datagram, Datagram::append_data(), and Datagram::clear(). Referenced by DownloadDb::get_client_multifile_name(), and DownloadDb::get_server_num_multifiles(). |
|
|
Definition at line 693 of file downloadDb.cxx. Referenced by DownloadDb::get_client_num_multifiles(), and write(). |
|
Definition at line 717 of file downloadDb.cxx. References PN_int32. |
|
Parses a file record (fr) and returns one.
Definition at line 893 of file downloadDb.cxx. |
|
Verifies magic number, returns the number of multifiles or -1 if invalid.
Definition at line 773 of file downloadDb.cxx. References _datagram, Datagram::append_data(), back_to_front_slash(), Datagram::clear(), DatagramIterator::extract_bytes(), DatagramIterator::get_int32(), PN_int32, and PT. |
|
Parses a multifile record (mfr) and returns one.
Definition at line 844 of file downloadDb.cxx. References uchar. |
|
Parses a file record (fr) header and returns the length of the next file record.
Definition at line 821 of file downloadDb.cxx. |
|
Definition at line 927 of file downloadDb.cxx. References _datagram. |
|
Definition at line 1028 of file downloadDb.cxx. References _datagram, Datagram::add_int32(), Datagram::add_uint32(), Datagram::clear(), Datagram::get_message(), and get_num_multifiles(). |
|
Definition at line 677 of file downloadDb.cxx. Referenced by DownloadDb::~DownloadDb(). |
|
Writes the bogus header uncompressed with platform- independent byte ordering. This header will get overwritten with the real magic number as the last step in the write Definition at line 1135 of file downloadDb.cxx. |
|
Writes the header uncompressed with platform- independent byte ordering.
Definition at line 1160 of file downloadDb.cxx. References nassertv. |
|
Definition at line 208 of file downloadDb.h. Referenced by Db(), get_multifile_name(), get_multifile_record_named(), parse_header(), read(), and write(). |
|
Definition at line 200 of file downloadDb.h. Referenced by DownloadDb::DownloadDb(), DownloadDb::get_client_multifile_size(), DownloadDb::get_server_multifile_phase(), DownloadDb::set_client_multifile_incomplete(), and DownloadDb::~DownloadDb(). |
|
Definition at line 205 of file downloadDb.h. |
|
Definition at line 201 of file downloadDb.h. |