20INLINE PN_stdfloat Patchfile::
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);
40INLINE
void Patchfile::
41set_allow_multifile(
bool allow_multifile) {
42 _allow_multifile = allow_multifile;
48INLINE
bool Patchfile::
49get_allow_multifile() {
50 return _allow_multifile;
56INLINE
void Patchfile::
57set_footprint_length(
int length) {
59 _footprint_length = length;
66get_footprint_length() {
67 return _footprint_length;
73INLINE
void Patchfile::
74reset_footprint_length() {
75 _footprint_length = _DEFAULT_FOOTPRINT_LENGTH;
82INLINE
bool Patchfile::
83has_source_hash()
const {
84 return (_version_number >= 1);
90INLINE
const HashVal &Patchfile::
91get_source_hash()
const {
92 nassertr(has_source_hash(), _MD5_ofSource);
99INLINE
const HashVal &Patchfile::
100get_result_hash()
const {
101 return _MD5_ofResult;
Stores a 128-bit value that represents the hashed contents (typically MD5) of a file or buffer.