With the latest version 1.1.33.10-H004 (x64W haven`t tested with other variants), UnZipRawMemory function is not working. Below is my test code
Code: Select all
FileGetSize, Sz, %A_ScriptFullPath%
MsgBox, % "Org Size: " Sz
FileRead, Data, *c %A_ScriptFullPath%
MsgBox, % "Org Data:`n" StrGet(&Data, "UTF-8")
;VarSetCapacity(Bin, Sz, 0)
CompSize := ZipRawMemory(&Data, sizeOfvar, Bin)
MsgBox, % "Comp Size: " CompSize
MsgBox, % "Comp Data:`n" StrGet(&Bin, "UTF-8")
;VarSetCapacity(Var, Sz*2, 0)
UnCompSize := UnZipRawMemory(&Bin, CompSize, var)
;UnCompSize := UnZipRawMemory(&Bin, CompSize, &var)
MsgBox, % "UnCompSize: " UnCompSize
MsgBox, % "UnCompressed Data:`n" StrGet(&Var, "UTF-8")
;MsgBox, % "UnCompressed Data:`n" StrGet(&Var, "CP0")
;MsgBox, % "UnCompressed Data:`n" StrGet(&Var)
Please Help. Thank You.