PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
sComputeCrc32 (Function)
In French: sCalculeCrc32
Calculates the Cyclical Redundancy Check (CRC) of buffer.
Note: The CRC is equivalent to a buffer signature. Any modification made to the buffer changes the CRC value. The use of CRC allows you to detect the possible file modifications during a transfer via network. You can compare the CRC of the file before and after transmission. If they are identical, the file was probably not modified during the transfer.
Versions 15 and later
Java This function is now available for the Java applications.
Android This function is now available for the Android applications.
New in version 15
Java This function is now available for the Java applications.
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
Android This function is now available for the Android applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Calculates the CRC of a string
CRC is int
CRC = sComputeCrc32(MyString)

// Transmits the string and the CRC

// Check the integrity of string
IF sComputeCrc32(MyString) <> CRC THEN Info("Modified string")
Syntax
<Result> = sComputeCrc32(<Buffer> [, <Partial CRC>])
<Result>: Integer
Control value of string (CRC)
<Buffer>: Buffer or character string (with quotes)
String or buffer used to calculate the control value (CRC)
<Partial CRC>: Optional integer
Result of a previous CRC calculation. This parameter is used to calculate the CRC of two buffers in a row: there is no need to concatenate the buffers. This parameter corresponds to 0 (a single buffer is managed) by default.
JavaPHP This parameter is ignored. A single buffer is managed.
Remarks
sComputeCrc32 is identical to sComputeCrc16 but this function is faster and more efficient.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Windows Mobile wp230std.dll
Java wd230java.jar
Linux wd230std.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment