2010-10-27 13:13:11 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-11-19 19:45:04 +00:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2000-09-18 14:18:43 +00:00
|
|
|
|
2013-10-23 19:18:54 +02:00
|
|
|
#ifndef INCLUDED_RTL_CRC_H
|
|
|
|
#define INCLUDED_RTL_CRC_H
|
2000-09-18 14:18:43 +00:00
|
|
|
|
2013-11-09 15:13:51 -06:00
|
|
|
#include <sal/config.h>
|
2012-09-15 12:21:17 +02:00
|
|
|
|
2013-11-09 15:13:51 -06:00
|
|
|
#include <sal/saldllapi.h>
|
|
|
|
#include <sal/types.h>
|
2000-09-18 14:18:43 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*========================================================================
|
|
|
|
*
|
|
|
|
* rtl_crc32 interface.
|
|
|
|
*
|
|
|
|
*======================================================================*/
|
|
|
|
/** Evaluate CRC32 over given data.
|
2013-03-18 21:55:24 -04:00
|
|
|
|
|
|
|
This function evaluates the CRC polynomial 0xEDB88320.
|
2001-11-04 19:35:50 +00:00
|
|
|
|
|
|
|
@param Crc [in] CRC32 over previous data or zero.
|
|
|
|
@param Data [in] data buffer.
|
|
|
|
@param DatLen [in] data buffer length.
|
|
|
|
@return new CRC32 value.
|
2000-09-18 14:18:43 +00:00
|
|
|
*/
|
2011-12-17 13:22:02 +01:00
|
|
|
SAL_DLLPUBLIC sal_uInt32 SAL_CALL rtl_crc32 (
|
2000-09-18 14:18:43 +00:00
|
|
|
sal_uInt32 Crc,
|
2001-11-04 19:35:50 +00:00
|
|
|
const void *Data, sal_uInt32 DatLen
|
|
|
|
) SAL_THROW_EXTERN_C();
|
2000-09-18 14:18:43 +00:00
|
|
|
|
|
|
|
/*========================================================================
|
|
|
|
*
|
|
|
|
* The End.
|
|
|
|
*
|
|
|
|
*======================================================================*/
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2013-10-23 19:18:54 +02:00
|
|
|
#endif // INCLUDED_RTL_CRC_H
|
2000-09-18 14:18:43 +00:00
|
|
|
|
2010-10-27 13:13:11 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|