Jump to content
Sign in to follow this  
RandomGuest

Decompressing ZLib-Streams

Recommended Posts

RandomGuest

Hi

I want to decompress a ZLib-stream, but I dont know how to do that in Autoit.

In VB, it'd look like this:

Declare Function uncompress Lib "zlib.dll" (ByRef dest As Any, ByRef destLen As Any, ByRef src As Any, ByVal srcLen As Long) As Long

Here, "dest" is the Variable to save the output in, destLen is the expected length of the decompressed dara, src is the compressed data and srcLen is the length of the compressed data.

I dont know how to use that with Autoit's DllCall.

Thanks for your advice

Share this post


Link to post
Share on other sites
GaryFrost

just a guess:

$ret = DllCall("zlib.dll","int","uncompress", "str", $dest, "int", $destlen, "str", $source, "int", $sourcelen)

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
RandomGuest

just a guess:

$ret = DllCall("zlib.dll","int","uncompress", "str", $dest, "int", $destlen, "str", $source, "int", $sourcelen)
No, that won't work. In the above mentioned example, the output is stored in the variable "Dest". Zlib.dll can't set Au3-Variables.

Share this post


Link to post
Share on other sites
drlava

Just solved, hee here:

#374145

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×