| FastCRC Library | Type Library |
|
FastCRC Type Library Overview
FastCRC Library includes fastcrc.tlb file (FastCRC Type Library) with declarations of all functions. This allows to use the FastCRC Library in different programming languages which have the possibility to reference a Type Library, such as VB 5.0, VB 6.0, VBA, etc. )
CRC32 checksums can be generated in two modes: accumulative and non-accumulative.
The accumulative mode is applied when the data for which the checksum is calculated (data) represents one or more continuous memory block(s) or when the data is created at runtime in many steps (for instance, when reading a file).
Non-accumulative mode can be applied when the data represents one continuous memory block, a null-terminated string, or a file.
To generate the checksum in the accumulative mode, perform the following:
Call the FCRC32_Init function to initialize the crc variable.
Call the FCRC32_Update function for each continuous memory block of data to perform the calculations.
Note. You can use FCRC32_UpdateStr function (instead of FCRC32_Update function) if the data represents a null-terminated string.
Call the FCRC32_Final function to obtain the checksum.
To generate the checksum in the non-accumulative mode, perform one of the following:
Call the FCRC32_Calculate function if the data represents a continuous memory block.
Call the FCRC32_CalculateStr function if the data represents a null-terminated string.
Call the FCRC32_CalculateFile function if the data represents a file.
Type Library Functions | Useful Links | HashCalc
Samples CRC32 checksum generation for a file
CRC32 checksum generation for a string
| Send Feedback to SlavaSoft Inc. | Tell a friend about FastCRC Library |