VirtualBox

source: vbox/trunk/include/iprt/crc64.h@ 3810

Last change on this file since 3810 was 3630, checked in by vboxsync, 17 years ago

iprt_hdr_h -> _iprt_hdr_h

File size: 1.9 KB
Line 
1/** @file
2 * innotek Portable Runtime - CRC64.
3 */
4
5/*
6 * Copyright (C) 2006-2007 innotek GmbH
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License as published by the Free Software Foundation,
12 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
13 * distribution. VirtualBox OSE is distributed in the hope that it will
14 * be useful, but WITHOUT ANY WARRANTY of any kind.
15 *
16 * If you received this file as part of a commercial VirtualBox
17 * distribution, then only the terms of your commercial VirtualBox
18 * license agreement apply instead of the previous paragraph.
19 */
20
21#ifndef ___iprt_crc64_h
22#define ___iprt_crc64_h
23
24
25#include <iprt/cdefs.h>
26#include <iprt/types.h>
27
28
29__BEGIN_DECLS
30
31/** @defgroup grp_rt_crc64 RTCrc64 - CRC64 Calculation
32 * @ingroup grp_rt
33 * @{
34 */
35
36/**
37 * Calculate CRC64 for a memory block.
38 *
39 * @returns CRC64 for the memory block.
40 * @param pv Pointer to the memory block.
41 * @param cb Size of the memory block in bytes.
42 */
43RTDECL(uint64_t) RTCrc64(const void *pv, size_t cb);
44
45/**
46 * Start a multiblock CRC64 calculation.
47 *
48 * @returns Start CRC64.
49 */
50RTDECL(uint64_t) RTCrc64Start(void);
51
52/**
53 * Processes a multiblock of a CRC64 calculation.
54 *
55 * @returns Intermediate CRC64 value.
56 * @param uCRC64 Current CRC64 intermediate value.
57 * @param pv The data block to process.
58 * @param cb The size of the data block in bytes.
59 */
60RTDECL(uint64_t) RTCrc64Process(uint64_t uCRC64, const void *pv, size_t cb);
61
62/**
63 * Complete a multiblock CRC64 calculation.
64 *
65 * @returns CRC64 value.
66 * @param uCRC64 Current CRC64 intermediate value.
67 */
68RTDECL(uint64_t) RTCrc64Finish(uint64_t uCRC64);
69
70
71
72/** @} */
73
74__END_DECLS
75
76#endif
77
78
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette