LibreOffice Module vcl (master)  1
Macros | Typedefs | Functions
checksum.hxx File Reference
#include <sal/config.h>
#include <sal/types.h>
#include <vcl/dllapi.h>
Include dependency graph for checksum.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.




typedef sal_uInt64 BitmapChecksum
typedef sal_uInt8 BitmapChecksumOctetArray[BITMAP_CHECKSUM_SIZE]


template<sal_uInt8 N = 0>
void BCToBCOA (BitmapChecksum n, BitmapChecksumOctetArray p)
void BCToBCOA< BITMAP_CHECKSUM_SIZE > (BitmapChecksum, BitmapChecksumOctetArray)
VCL_DLLPUBLIC sal_uInt64 vcl_crc64 (sal_uInt64 Crc, const void *Data, sal_uInt32 DatLen) SAL_THROW_EXTERN_C()
 Evaluate CRC64 over given data. More...
const sal_uInt64 * vcl_get_crc64_table ()
BitmapChecksum vcl_get_checksum (BitmapChecksum Checksum, const void *Data, sal_uInt32 DatLen)

Macro Definition Documentation


Typedef Documentation

typedef sal_uInt64 BitmapChecksum

Definition at line 30 of file checksum.hxx.

typedef sal_uInt8 BitmapChecksumOctetArray[BITMAP_CHECKSUM_SIZE]

Definition at line 31 of file checksum.hxx.

Function Documentation

template<sal_uInt8 N = 0>
void BCToBCOA ( BitmapChecksum  n,
BitmapChecksumOctetArray  p 

Definition at line 34 of file checksum.hxx.

References N.

Referenced by SvmWriter::GetChecksum(), Animation::GetChecksum(), and BitmapEx::GetChecksum().

Definition at line 41 of file checksum.hxx.

VCL_DLLPUBLIC sal_uInt64 vcl_crc64 ( sal_uInt64  Crc,
const void Data,
sal_uInt32  DatLen 

Evaluate CRC64 over given data.

This function evaluates the CRC polynomial 0xEDB88320.

Crc[in] CRC64 over previous data or zero.
Data[in] data buffer.
DatLen[in] data buffer length.
new CRC64 value.

Definition at line 129 of file checksum.cxx.

References Data, p, SAL_THROW_EXTERN_C, and UPDCRC64.

Referenced by vcl_get_checksum().

BitmapChecksum vcl_get_checksum ( BitmapChecksum  Checksum,
const void Data,
sal_uInt32  DatLen 
const sal_uInt64* vcl_get_crc64_table ( )

Definition at line 149 of file checksum.cxx.

References vcl_crc64Table.