mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
*** empty log message ***
This commit is contained in:
parent
40226e0e47
commit
2433fd2a1a
@ -576,7 +576,7 @@ bool Downloader::
|
|||||||
parse_http_response(const string &resp) {
|
parse_http_response(const string &resp) {
|
||||||
size_t ws = resp.find(" ", 0);
|
size_t ws = resp.find(" ", 0);
|
||||||
string httpstr = resp.substr(0, ws);
|
string httpstr = resp.substr(0, ws);
|
||||||
if (httpstr != "HTTP/1.1") {
|
if (!(httpstr == "HTTP/1.1")) {
|
||||||
downloader_cat.error()
|
downloader_cat.error()
|
||||||
<< "Downloader::parse_http_response() - not HTTP/1.1 - got: "
|
<< "Downloader::parse_http_response() - not HTTP/1.1 - got: "
|
||||||
<< httpstr << endl;
|
<< httpstr << endl;
|
||||||
|
@ -1,62 +1,62 @@
|
|||||||
// Filename: hashVal.I
|
// Filename: hashVal.I
|
||||||
// Created by: drose (14Nov00)
|
// Created by: drose (14Nov00)
|
||||||
//
|
//
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: HashVal::Constructor
|
// Function: HashVal::Constructor
|
||||||
// Access: Public
|
// Access: Public
|
||||||
// Description:
|
// Description:
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
INLINE HashVal::
|
INLINE HashVal::
|
||||||
HashVal(void) {
|
HashVal(void) {
|
||||||
hv[0] = hv[1] = hv[2] = hv[3] = 0;
|
hv[0] = hv[1] = hv[2] = hv[3] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: HashVal::operator ==
|
// Function: HashVal::operator ==
|
||||||
// Access: Public
|
// Access: Public
|
||||||
// Description:
|
// Description:
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
INLINE bool HashVal::
|
INLINE bool HashVal::
|
||||||
operator == (const HashVal &other) const {
|
operator == (const HashVal &other) const {
|
||||||
return (hv[0] == other.hv[0] &&
|
return (hv[0] == other.hv[0] &&
|
||||||
hv[1] == other.hv[1] &&
|
hv[1] == other.hv[1] &&
|
||||||
hv[2] == other.hv[2] &&
|
hv[2] == other.hv[2] &&
|
||||||
hv[3] == other.hv[3]);
|
hv[3] == other.hv[3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: HashVal::get_value
|
// Function: HashVal::get_value
|
||||||
// Access: Public
|
// Access: Public
|
||||||
// Description: Returns the integer value of the indicated component.
|
// Description: Returns the integer value of the indicated component.
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
INLINE uint HashVal::
|
INLINE uint HashVal::
|
||||||
get_value(int val) const {
|
get_value(int val) const {
|
||||||
nassertr(val >= 0 && val < 4, 0);
|
nassertr(val >= 0 && val < 4, 0);
|
||||||
return hv[val];
|
return hv[val];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: HashVal::set_value
|
// Function: HashVal::set_value
|
||||||
// Access: Public
|
// Access: Public
|
||||||
// Description: Sets the hash value at index val
|
// Description: Sets the hash value at index val
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
INLINE void HashVal::
|
INLINE void HashVal::
|
||||||
set_value(int val, uint hash) {
|
set_value(int val, uint hash) {
|
||||||
nassertv(val >= 0 && val < 4);
|
nassertv(val >= 0 && val < 4);
|
||||||
hv[val] = hash;
|
hv[val] = hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: HashVal::output
|
// Function: HashVal::output
|
||||||
// Access: Public
|
// Access: Public
|
||||||
// Description:
|
// Description:
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
INLINE void HashVal::
|
INLINE void HashVal::
|
||||||
output(ostream &out) const {
|
output(ostream &out) const {
|
||||||
out << "[" << hv[0] << " " << hv[1] << " " << hv[2] << " " << hv[3] << "]";
|
out << "[" << hv[0] << " " << hv[1] << " " << hv[2] << " " << hv[3] << "]";
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Filename: hashVal.cxx
|
// Filename: hashVal.cxx
|
||||||
// Created by: drose (14Nov00)
|
// Created by: drose (14Nov00)
|
||||||
//
|
//
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "hashVal.h"
|
#include "hashVal.h"
|
||||||
|
|
||||||
|
@ -1,34 +1,34 @@
|
|||||||
// Filename: hashVal.h
|
// Filename: hashVal.h
|
||||||
// Created by: drose (14Nov00)
|
// Created by: drose (14Nov00)
|
||||||
//
|
//
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef HASHVAL_H
|
#ifndef HASHVAL_H
|
||||||
#define HASHVAL_H
|
#define HASHVAL_H
|
||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
#include <typedef.h>
|
#include <typedef.h>
|
||||||
#include <notify.h>
|
#include <notify.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Class : HashVal
|
// Class : HashVal
|
||||||
// Description : A sixteen-byte hash value sent to the crypt library.
|
// Description : A sixteen-byte hash value sent to the crypt library.
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
class EXPCL_PANDAEXPRESS HashVal {
|
class EXPCL_PANDAEXPRESS HashVal {
|
||||||
public:
|
public:
|
||||||
INLINE HashVal();
|
INLINE HashVal();
|
||||||
INLINE bool operator == (const HashVal &other) const;
|
INLINE bool operator == (const HashVal &other) const;
|
||||||
INLINE uint get_value(int val) const;
|
INLINE uint get_value(int val) const;
|
||||||
INLINE void set_value(int val, uint hash);
|
INLINE void set_value(int val, uint hash);
|
||||||
INLINE void output(ostream &out) const;
|
INLINE void output(ostream &out) const;
|
||||||
uint hv[4];
|
uint hv[4];
|
||||||
};
|
};
|
||||||
|
|
||||||
INLINE ostream &operator << (ostream &out, const HashVal &hv) {
|
INLINE ostream &operator << (ostream &out, const HashVal &hv) {
|
||||||
hv.output(out);
|
hv.output(out);
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "hashVal.I"
|
#include "hashVal.I"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user