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.

Macros

#define BITMAP_CHECKSUM_SIZE   8
 

Typedefs

typedef sal_uInt64 BitmapChecksum
 
typedef sal_uInt8 BitmapChecksumOctetArray[BITMAP_CHECKSUM_SIZE]
 

Functions

template<sal_uInt8 N = 0>
void BCToBCOA (BitmapChecksum n, BitmapChecksumOctetArray p)
 
template<>
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...
 
VCL_DLLPUBLIC const sal_uInt64 * vcl_get_crc64_table ()
 
BitmapChecksum vcl_get_checksum (BitmapChecksum Checksum, const void *Data, sal_uInt32 DatLen)
 

Macro Definition Documentation

#define BITMAP_CHECKSUM_SIZE   8

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 
)
inline

Definition at line 34 of file checksum.hxx.

References N.

Referenced by Animation::GetChecksum(), BitmapEx::GetChecksum(), and GDIMetaFile::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.

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

Definition at line 129 of file checksum.cxx.

References SAL_THROW_EXTERN_C, and UPDCRC64.

Referenced by vcl_get_checksum().

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

Definition at line 149 of file checksum.cxx.

References vcl_crc64Table.