Jump to content

Decompressing ZLib-Streams


Recommended Posts

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

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

  • 1 month later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...