Sidebar

Using Directory Opus
Configuration
Programming
Reference Section
reference:plugins:plugin_sdk:utility_functions:calccrc32

CalcCRC32(
     DWORD:dwCRCIn,
     LPCBYTE:pData,
     DWORD:dwSize
)
→ DWORD

Arguments

dwCRCIn

[in] The previous CRC value. Set to 0 the first time you call this function.

pData

[in] Pointer to data to checksum.

dwSize

[in] The size of the data to checksum, in bytes.

Return value

Returns the updated CRC value for the new data.

Description

The CalcCRC32 function is used to calculate a 32-bit CRC checksum.

You can call this function repeatedly to progressively checksum a file. The previous CRC value should be passed as the dwCRCIn parameter.