diff options
Diffstat (limited to 'CPP/7zip/Archive/Common/OutStreamWithCRC.h')
-rw-r--r--[-rwxr-xr-x] | CPP/7zip/Archive/Common/OutStreamWithCRC.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CPP/7zip/Archive/Common/OutStreamWithCRC.h b/CPP/7zip/Archive/Common/OutStreamWithCRC.h index d9eb646..0cc9a85 100755..100644 --- a/CPP/7zip/Archive/Common/OutStreamWithCRC.h +++ b/CPP/7zip/Archive/Common/OutStreamWithCRC.h @@ -28,6 +28,7 @@ public: _calculate = calculate;
_crc = CRC_INIT_VAL;
}
+ void EnableCalc(bool calculate) { _calculate = calculate; }
void InitCRC() { _crc = CRC_INIT_VAL; }
UInt64 GetSize() const { return _size; }
UInt32 GetCRC() const { return CRC_GET_DIGEST(_crc); }
|