Difference between revisions of "Zlib.crc32"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 6: Line 6:
 
<translate>Without any parameters, returns the inicial crc32 value.
 
<translate>Without any parameters, returns the inicial crc32 value.
 
Call to update the crc32 value, crc is the current value, buffer is passed to crc32 zlib function and the updated value is returned.</translate>
 
Call to update the crc32 value, crc is the current value, buffer is passed to crc32 zlib function and the updated value is returned.</translate>
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(string) = zlib.crc32(crc32,buffer)
 
(string) = zlib.crc32(crc32,buffer)
 
</source>
 
</source>

Revision as of 14:32, 13 July 2023


Available since: Gideros 2015.04.18
Class: zlib

Description

Without any parameters, returns the inicial crc32 value. Call to update the crc32 value, crc is the current value, buffer is passed to crc32 zlib function and the updated value is returned. <syntaxhighlight lang="lua"> (string) = zlib.crc32(crc32,buffer) </source>

Parameters

crc32: (number) crc32 value optional
buffer: (string) buffer to modify value optional

Return values

Returns (string) without parameters returns initial value