hash/adler32.bi

Summary
hash/adler32.bi
LicenseCopyright © 2007-2011, FreeBASIC Extended Library Development Group
ext.hashes
Functions
adler32Returns the adler32 hash of a memory buffer.
adler32Returns the adler32 hash of a string.

License

Copyright © 2007-2011, FreeBASIC Extended Library Development Group

Distributed under the FreeBASIC Extended Library Group license.  See accompanying file LICENSE.txt or copy at http://code.google.com/p/fb-extended-lib/wiki/License

ext.hashes

Summary
Functions
adler32Returns the adler32 hash of a memory buffer.
adler32Returns the adler32 hash of a string.

Functions

adler32

declare function adler32 overload (byval buf As const any ptr,  
byval buf_len as uinteger,  
byval adler as uinteger =  0) As uinteger

Returns the adler32 hash of a memory buffer.

Parameters

bufpointer to the buffer to hash.
buf_lenthe length of the buffer in bytes.
adleroptional value to initalize the hash with, defaults to 0

Returns

uinteger containing the hash.

adler32

declare function adler32 overload (byref buf as const string) as uinteger

Returns the adler32 hash of a string.

Parameters

bufthe string to hash.

Returns

uinteger containing the hash.

declare function adler32 overload (byval buf As const any ptr,  
byval buf_len as uinteger,  
byval adler as uinteger =  0) As uinteger
Returns the adler32 hash of a memory buffer.