Add a file from memory to a zip archive created with ZipCreateBuffer or ZipCreateFile.
OutputVar := ZipAddBuffer(ZipHandle, Address or BufferObject , Size, FileName)Function Example: Success := ZipAddBuffer(hZip, varBuffer,, "MyScript.ahk")
The name of the variable in which to store 1 / true if file was added successfully or 0 / false if operation failed.
Zip handle returned from ZipCreateFile or ZipCreateBuffer.
Address of data or Buffer object to be added to zip archive.
Size in bytes of data in memory. Not required for Buffer object.
Name of the file that will be added in zip archive.
ZipCreateFile, ZipCloseFile, ZipOptions, UnZip, ZipCreateBuffer, ZipAddFile, ZipCloseBuffer, UnZipBuffer, ZipRawMemory, UnZipRawMemory, ZipInfo, ZipAddFolder
hZip:=ZipCreateBuffer(10000000) ZipAddBuffer(hZip, &script, StrPut(script), "MyScript.ahk") zipBuffer := ZipCloseBuffer(hZip)