"The code is exactly
how I would like to write code and the algorithms used are very
efficient and well-documented."
Van T. Dinh, Microsoft MVP
|
|
Class: CCRC32
Calculate the 32-bit CRC of a file or string
|
Procedure Name
|
Type
|
Description
|
|
(Declarations)
|
Declarations
|
Declarations and private variables for the CCRC32 class
|
|
InputFileName
|
Property
|
Sets the name of the input file
|
|
ConstructCRCTable
|
Private
|
Fills the CRC table with precalculated values. This is more efficient than calculating CRC's each time they are needed.
|
|
GetCRCFromFile
|
Method
|
Generates a CRC for the file specified in the InputFile property
|
|
GetCRCFromString
|
Method
|
Generates a CRC for the string specified in the strInput parameter.
This is the Unicode version of this method. For an ASCII version, see GetCRCFromStringAscii.
|
|
GetCRCFromStringAscii
|
Method
|
Generates a CRC for the string specified in the strInput parameter.
This is the ASCII version of this method. For a Unicode version, see GetStringFromCRC.
|
|
ReadFile
|
Private
|
Reads the specified number of bytes from the file.
Using this function significantly increases the speed of processing files. The alternative to using a file buffer is reading a byte at a time from the file.
|
|
UpdateCRC32
|
Private
|
Calculates the new CRC based on the current CRC and the byte value
|
Overview of Total Visual SourceBook
The source code in Total Visual
SourceBook includes modules and classes for Microsoft Access, Visual
Basic 6 (VB6), and Visual Basic for Applications (VBA) developers. Easily
add this professionally written, tested, and documented royalty-free code
into your applications to simplify your application development efforts.
Additional Resources
|
|