AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de Windows / Funciones varias de Windows
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
sComputeCrc32 (Function)
Calculates the Cyclical Redundancy Check (CRC) of buffer.
Remark: CRC is comparable to a stamp 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.
Ejemplo
// 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")
Sintaxis
<Result> = sComputeCrc32(<Buffer> [, <Partial CRC>])
<Result>: Integer
Control value of string (CRC)
<Buffer>: Buffer or character string
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 consecutive buffers: it is not necessary to concatenate the buffers. This parameter corresponds to 0 (a single buffer is managed) by default.
Observaciones
sComputeCrc32 is identical to sComputeCrc16, but it is faster and more efficient.
Clasificación Lógica de negocio / UI: Lógica de negocio
Componente: wd300std.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local