Skip to content
Andrew Lambert edited this page Sep 8, 2015 · 9 revisions

#zlib.Adler32

##Method Signature

 Protected Function Adler32(NewData As MemoryBlock, LastAdler As UInt32) As UInt32

##Parameters

Name Type Comment
NewData MemoryBlock The next chunk of data to process
LastAdler UInt32 The previous hash value

##Return value The running hash value. Pass this value as LastAdler on the next call.

##Notes This function computes an Adler32 checksum.

You must call this method once with NIL to initialize, and then pass back the returned value to each pass.

 Dim adler As UInt32 = zlib.Adler32(Nil, 0) //initialize
 While True
   adler = zlib.Adler32(NextInputData, adler)
 Wend

##See also

Entry-level points of interest denoted by "☜"



Clone this wiki locally