24 INLINE PN_stdfloat Patchfile::
25 get_progress()
const {
28 <<
"Patchfile::get_progress() - Patch has not been initiated" << endl;
31 nassertr(_total_bytes_to_process > 0, 0.0f);
32 return ((PN_stdfloat)_total_bytes_processed / (PN_stdfloat)_total_bytes_to_process);
48 INLINE
void Patchfile::
49 set_allow_multifile(
bool allow_multifile) {
50 _allow_multifile = allow_multifile;
58 INLINE
bool Patchfile::
59 get_allow_multifile() {
60 return _allow_multifile;
68 INLINE
void Patchfile::
69 set_footprint_length(
int length) {
71 _footprint_length = length;
79 INLINE
int Patchfile::
80 get_footprint_length() {
81 return _footprint_length;
89 INLINE
void Patchfile::
90 reset_footprint_length() {
91 _footprint_length = _DEFAULT_FOOTPRINT_LENGTH;
101 INLINE
bool Patchfile::
102 has_source_hash()
const {
103 return (_version_number >= 1);
111 INLINE
const HashVal &Patchfile::
112 get_source_hash()
const {
113 nassertr(has_source_hash(), _MD5_ofSource);
114 return _MD5_ofSource;
123 INLINE
const HashVal &Patchfile::
124 get_result_hash()
const {
125 return _MD5_ofResult;
Stores a 128-bit value that represents the hashed contents (typically MD5) of a file or buffer...