LibreOffice Module vcl (master)  1
Macros | Functions | Variables
checksum.cxx File Reference
#include <sal/types.h>
#include <vcl/checksum.hxx>
Include dependency graph for checksum.cxx:

Go to the source code of this file.


#define UPDCRC64(crc, octet)   (vcl_crc64Table[((crc) ^ (octet)) & 0xff] ^ ((crc) >> 8))


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


const sal_uInt64 vcl_crc64Table [256]

Macro Definition Documentation

#define UPDCRC64 (   crc,
)    (vcl_crc64Table[((crc) ^ (octet)) & 0xff] ^ ((crc) >> 8))

Definition at line 123 of file checksum.cxx.

Referenced by vcl_crc64().

Function Documentation

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().

const sal_uInt64* vcl_get_crc64_table ( )

Definition at line 149 of file checksum.cxx.

References vcl_crc64Table.

Variable Documentation

const sal_uInt64 vcl_crc64Table[256]

Definition at line 29 of file checksum.cxx.

Referenced by vcl_get_crc64_table().