ZFFramework
 
Loading...
Searching...
No Matches
ZFCrc32.h File Reference

CRC32 utility. More...

#include "ZFAlgorithmDef.h"

Go to the source code of this file.

Functions

zfflags const & ZFCrc32Invalid (void)
 invalid value for CRC32
 
ZFLIB_ZFAlgorithm zfflags ZFCrc32 (const void *src, zfindex srcLen, zfflags prevResult=0)
 calculate CRC32, return ZFCrc32Invalid if failed
 
ZFLIB_ZFAlgorithm zfflags ZFCrc32 (const ZFInput &callback, zfflags prevResult=(0))
 calculate CRC32, return ZFCrc32Invalid if failed
 
ZFLIB_ZFAlgorithm zfflags ZFCrc32 (const zfchar *src, zfindex srcLen=(((zfindex) -1)), zfflags prevResult=(0))
 see ZFCrc32
 

Detailed Description

CRC32 utility.

Function Documentation

◆ ZFCrc32() [1/2]

ZFLIB_ZFAlgorithm zfflags ZFCrc32 ( const void * src,
zfindex srcLen,
zfflags prevResult = 0 )
extern

calculate CRC32, return ZFCrc32Invalid if failed

prevResult is used for continous calculation for performance, you may separate big buffer to small ones, and calculate separately

◆ ZFCrc32() [2/2]

ZFLIB_ZFAlgorithm zfflags ZFCrc32 ( const ZFInput & callback,
zfflags prevResult = (0) )
extern

calculate CRC32, return ZFCrc32Invalid if failed

prevResult is used for continous calculation for performance, you may separate big buffer to small ones, and calculate separately