LibreOffice Module package (master) 1
|
#include <CRC32.hxx>
Public Member Functions | |
CRC32 () | |
A class to compute the CRC32 value of a data stream. More... | |
sal_Int64 | updateStream (css::uno::Reference< css::io::XInputStream > const &xStream) |
void | updateSegment (const css::uno::Sequence< sal_Int8 > &b, sal_Int32 len) |
Update CRC32 with specified sequence of bytes. More... | |
void | update (const css::uno::Sequence< sal_Int8 > &b) |
Update CRC32 with specified sequence of bytes. More... | |
sal_Int32 | getValue () const |
void | reset () |
Private Attributes | |
sal_uInt32 | nCRC |
CRC32::CRC32 | ( | ) |
sal_Int32 CRC32::getValue | ( | ) | const |
css::uno::RuntimeException |
Definition at line 39 of file CRC32.cxx.
References nCRC.
Referenced by ZipOutputEntryBase::closeEntry(), ImplSetStoredData(), XUnbufferedStream::readBytes(), and ZipPackage::WriteMimetypeMagicFile().
void CRC32::reset | ( | ) |
css::uno::RuntimeException |
Definition at line 35 of file CRC32.cxx.
References nCRC.
Referenced by ZipOutputEntryBase::closeEntry().
void CRC32::update | ( | const css::uno::Sequence< sal_Int8 > & | b | ) |
Update CRC32 with specified sequence of bytes.
css::uno::RuntimeException |
Definition at line 51 of file CRC32.cxx.
References nCRC.
Referenced by ZipOutputEntryBase::processDeflated(), XUnbufferedStream::readBytes(), and ZipPackage::WriteMimetypeMagicFile().
void CRC32::updateSegment | ( | const css::uno::Sequence< sal_Int8 > & | b, |
sal_Int32 | len | ||
) |
Update CRC32 with specified sequence of bytes.
css::uno::RuntimeException |
Definition at line 45 of file CRC32.cxx.
References nCRC.
Referenced by ZipOutputEntryBase::processInput(), updateStream(), and ZipOutputEntryParallel::writeStream().
sal_Int64 CRC32::updateStream | ( | css::uno::Reference< css::io::XInputStream > const & | xStream | ) |
css::uno::RuntimeException |
Definition at line 56 of file CRC32.cxx.
References aSeq, n_ConstBufferSize, nLength, updateSegment(), and xStream.
Referenced by ImplSetStoredData().
|
private |
Definition at line 30 of file CRC32.hxx.
Referenced by getValue(), reset(), update(), and updateSegment().