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...
 
const sal_uInt64 * vcl_get_crc64_table ()
 
BitmapChecksum vcl_get_checksum (BitmapChecksum Checksum, const void *Data, sal_uInt32 DatLen)
 

Macro Definition Documentation

◆ BITMAP_CHECKSUM_SIZE

#define BITMAP_CHECKSUM_SIZE   8

Definition at line 28 of file checksum.hxx.

Typedef Documentation

◆ BitmapChecksum

typedef sal_uInt64 BitmapChecksum

Definition at line 30 of file checksum.hxx.

◆ BitmapChecksumOctetArray

typedef sal_uInt8 BitmapChecksumOctetArray[BITMAP_CHECKSUM_SIZE]

Definition at line 31 of file checksum.hxx.

Function Documentation

◆ BCToBCOA()

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

Definition at line 34 of file checksum.hxx.

References N, n, and p.

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

◆ BCToBCOA< BITMAP_CHECKSUM_SIZE >()

template<>
void BCToBCOA< BITMAP_CHECKSUM_SIZE > ( BitmapChecksum  ,
BitmapChecksumOctetArray   
)
inline

Definition at line 41 of file checksum.hxx.

◆ vcl_crc64()

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 Data, p, SAL_THROW_EXTERN_C, and UPDCRC64.

Referenced by vcl_get_checksum().

◆ vcl_get_checksum()

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

◆ vcl_get_crc64_table()

const sal_uInt64 * vcl_get_crc64_table ( )

Definition at line 149 of file checksum.cxx.

References vcl_crc64Table.