20 INLINE PN_stdfloat Patchfile::
21 get_progress()
const {
24 <<
"Patchfile::get_progress() - Patch has not been initiated" << std::endl;
27 nassertr(_total_bytes_to_process > 0, 0.0f);
28 return ((PN_stdfloat)_total_bytes_processed / (PN_stdfloat)_total_bytes_to_process);
40 INLINE
void Patchfile::
41 set_allow_multifile(
bool allow_multifile) {
42 _allow_multifile = allow_multifile;
48 INLINE
bool Patchfile::
49 get_allow_multifile() {
50 return _allow_multifile;
56 INLINE
void Patchfile::
57 set_footprint_length(
int length) {
59 _footprint_length = length;
65 INLINE
int Patchfile::
66 get_footprint_length() {
67 return _footprint_length;
73 INLINE
void Patchfile::
74 reset_footprint_length() {
75 _footprint_length = _DEFAULT_FOOTPRINT_LENGTH;
82 INLINE
bool Patchfile::
83 has_source_hash()
const {
84 return (_version_number >= 1);
90 INLINE
const HashVal &Patchfile::
91 get_source_hash()
const {
92 nassertr(has_source_hash(), _MD5_ofSource);
99 INLINE
const HashVal &Patchfile::
100 get_result_hash()
const {
101 return _MD5_ofResult;
Stores a 128-bit value that represents the hashed contents (typically MD5) of a file or buffer.