LibreOffice Module package (master) 1
Public Member Functions | Private Attributes | List of all members
CRC32 Class Referencefinal

#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
 

Detailed Description

Definition at line 28 of file CRC32.hxx.

Constructor & Destructor Documentation

◆ CRC32()

CRC32::CRC32 ( )

A class to compute the CRC32 value of a data stream.

Definition at line 31 of file CRC32.cxx.

Member Function Documentation

◆ getValue()

sal_Int32 CRC32::getValue ( ) const
Exceptions
css::uno::RuntimeException

Definition at line 39 of file CRC32.cxx.

References nCRC.

Referenced by ZipOutputEntryBase::closeEntry(), ImplSetStoredData(), XUnbufferedStream::readBytes(), and ZipPackage::WriteMimetypeMagicFile().

◆ reset()

void CRC32::reset ( )
Exceptions
css::uno::RuntimeException

Definition at line 35 of file CRC32.cxx.

References nCRC.

Referenced by ZipOutputEntryBase::closeEntry().

◆ update()

void CRC32::update ( const css::uno::Sequence< sal_Int8 > &  b)

Update CRC32 with specified sequence of bytes.

Exceptions
css::uno::RuntimeException

Definition at line 51 of file CRC32.cxx.

References nCRC.

Referenced by ZipOutputEntryBase::processDeflated(), XUnbufferedStream::readBytes(), and ZipPackage::WriteMimetypeMagicFile().

◆ updateSegment()

void CRC32::updateSegment ( const css::uno::Sequence< sal_Int8 > &  b,
sal_Int32  len 
)

Update CRC32 with specified sequence of bytes.

Exceptions
css::uno::RuntimeException

Definition at line 45 of file CRC32.cxx.

References nCRC.

Referenced by ZipOutputEntryBase::processInput(), updateStream(), and ZipOutputEntryParallel::writeStream().

◆ updateStream()

sal_Int64 CRC32::updateStream ( css::uno::Reference< css::io::XInputStream > const &  xStream)
Exceptions
css::uno::RuntimeException

Definition at line 56 of file CRC32.cxx.

References aSeq, n_ConstBufferSize, nLength, updateSegment(), and xStream.

Referenced by ImplSetStoredData().

Member Data Documentation

◆ nCRC

sal_uInt32 CRC32::nCRC
private

Definition at line 30 of file CRC32.hxx.

Referenced by getValue(), reset(), update(), and updateSegment().


The documentation for this class was generated from the following files: