ZFFramework
 
Loading...
Searching...
No Matches
ZFCrc32.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFCrc32_h_
7#define _ZFI_ZFCrc32_h_
8
9#include "ZFAlgorithmDef.h"
11
16
17
25 ZF_IN const void *src
26 , ZF_IN zfindex srcLen
27 , ZF_IN_OPT zfflags prevResult = 0
28 );
37 , ZFMP_IN(const ZFInput &, callback)
38 , ZFMP_IN_OPT(zfflags, prevResult, 0)
39 )
44 , ZFMP_IN(const zfchar *, src)
45 , ZFMP_IN_OPT(zfindex, srcLen, zfindexMax())
46 , ZFMP_IN_OPT(zfflags, prevResult, 0)
47 )
48
50#endif // #ifndef _ZFI_ZFCrc32_h_
51
global header for ZFAlgorithm module
#define ZFLIB_ZFAlgorithm
used to export symbols
Definition ZFAlgorithmDef.h:14
_ZFT_t_zfchar zfchar
char wrapper
Definition ZFCoreTypeDef_CharType.h:17
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:180
#define ZF_IN_OPT
dummy macro that shows the param used as optional input
Definition ZFCoreTypeDef_ClassType.h:184
_ZFT_t_zfindex zfindex
similar to size_t, used for index and size only
Definition ZFCoreTypeDef_CoreType.h:154
_zft_zfflags zfflags
used to hold flags, ensured 32 bit, ensured unsigned
Definition ZFCoreTypeDef_CoreType.h:211
#define zfindexMax()
(zfindex)-1, indicate a max index value, see zfindex
Definition ZFCoreTypeDef_CoreType.h:159
ZFLIB_ZFAlgorithm zfflags ZFCrc32(const void *src, zfindex srcLen, zfflags prevResult=0)
calculate CRC32, return ZFCrc32Invalid if failed
zfflags const & ZFCrc32Invalid(void)
invalid value for CRC32
Definition ZFCrc32.h:15
#define ZFEXPORT_VAR_READONLY_DECLARE(ZFLIB_, Type, Name)
see ZFEXPORT_VAR_DECLARE
Definition ZFExport.h:115
#define ZFMP_IN_OPT(ParamType, paramName, DefaultValue)
see ZFMP_IN
Definition ZFMethod.h:108
#define ZFMP_IN(ParamType, paramName)
macro to wrap param types for ZFMETHOD_INLINE_0 series
Definition ZFMethod.h:105
#define ZFMETHOD_FUNC_DECLARE_2(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:763
#define ZFMETHOD_FUNC_DECLARE_3(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:910
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
general input callback
Definition ZFIOCallback_input.h:37