Difference between revisions of "Zlib.crc32"

From GiderosMobile
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''Available since:''' Gideros 2015.04.18<br/>
 
'''Available since:''' Gideros 2015.04.18<br/>
 +
'''Class:''' [[zlib]]<br/>
 +
 
=== Description ===
 
=== Description ===
Without any parameters, returns the inicial crc32 value.
+
Without any parameters, returns the initial crc32 value.
 +
<syntaxhighlight lang="lua">
 +
(string) = zlib.crc32(crc32,buffer)
 +
</syntaxhighlight>
 +
 
 
Call to update the crc32 value, crc is the current value, buffer is passed to crc32 zlib function and the updated value is returned.
 
Call to update the crc32 value, crc is the current value, buffer is passed to crc32 zlib function and the updated value is returned.
<source lang="lua">
+
 
(string) = zlib.crc32(crc32,buffer)
+
=== Parameters ===
</source>
 
 
'''crc32''': (number) crc32 value '''optional'''<br/>
 
'''crc32''': (number) crc32 value '''optional'''<br/>
 
'''buffer''': (string) buffer to modify value '''optional'''<br/>
 
'''buffer''': (string) buffer to modify value '''optional'''<br/>
 +
 +
=== Return values ===
 
'''Returns''' (string) without parameters returns initial value<br/>
 
'''Returns''' (string) without parameters returns initial value<br/>
 +
 +
{{Zlib}}

Latest revision as of 23:34, 1 December 2023

Available since: Gideros 2015.04.18
Class: zlib

Description

Without any parameters, returns the initial crc32 value.

(string) = zlib.crc32(crc32,buffer)

Call to update the crc32 value, crc is the current value, buffer is passed to crc32 zlib function and the updated value is returned.

Parameters

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

Return values

Returns (string) without parameters returns initial value