18 #include "pandabase.h" 23 #include "datagramIterator.h" 24 #include "streamWriter.h" 25 #include "streamReader.h" 35 INLINE HashVal(
const HashVal ©);
36 INLINE
void operator = (
const HashVal ©);
38 INLINE
bool operator == (
const HashVal &other)
const;
39 INLINE
bool operator != (
const HashVal &other)
const;
40 INLINE
bool operator < (
const HashVal &other)
const;
41 INLINE
int compare_to(
const HashVal &other)
const;
43 INLINE
void merge_with(
const HashVal &other);
45 INLINE
void output_dec(ostream &out)
const;
46 INLINE
void input_dec(istream &in);
47 void output_hex(ostream &out)
const;
48 void input_hex(istream &in);
49 void output_binary(ostream &out)
const;
50 void input_binary(istream &in);
52 INLINE
void output(ostream &out)
const;
54 string as_dec()
const;
55 bool set_from_dec(
const string &text);
57 string as_hex()
const;
58 bool set_from_hex(
const string &text);
60 string as_bin()
const;
61 bool set_from_bin(
const string &text);
63 INLINE
void write_datagram(
Datagram &destination)
const;
65 INLINE
void write_stream(
StreamWriter &destination)
const;
69 bool hash_file(
const Filename &filename);
70 bool hash_stream(istream &stream);
71 INLINE
void hash_ramfile(
const Ramfile &ramfile);
72 INLINE
void hash_string(
const string &data);
73 void hash_buffer(
const char *buffer,
int length);
74 #endif // HAVE_OPENSSL 77 static void encode_hex(PN_uint32 val,
char *buffer);
78 static void decode_hex(
const char *buffer, PN_uint32 &val);
79 INLINE
static char tohex(
unsigned int nibble);
80 INLINE
static unsigned int fromhex(
char digit);
85 INLINE ostream &operator << (ostream &out,
const HashVal &hv);
A StreamWriter object is used to write sequential binary data directly to an ostream.
Stores a 128-bit value that represents the hashed contents (typically MD5) of a file or buffer...
The name of a file, such as a texture file or an Egg file.
An in-memory buffer specifically designed for downloading files to memory.
An STL function object class, this is intended to be used on any ordered collection of class objects ...
A class to retrieve the individual data elements previously stored in a Datagram. ...
A class to read sequential binary data directly from an istream.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...