ZipAddBuffer
Add a file from memory to a zip archive created with ZipCreateBuffer or ZipCreateFile.
OutputVar := ZipAddBuffer(ZipHandle, Address, Size, FileName)
Command Example: ZipAddBuffer hZip, &var;, sz, "MyScript.ahk" Function Example: Success := ZipAddBuffer(hZip, &var;, sz, "MyScript.ahk")
Parameters
- OutputVar
The name of the variable in which to store 1 / true if file was added successfully or 0 / false if operation failed.
- ZipHandle
Zip handle returned from ZipCreateFile or ZipCreateBuffer.
- Address
Address of data to be added to zip archive.
- Size
Size in bytes of data in memory.
- FileName
Name of the file that will be added to zip archive.
Related
ZipCreateFile, ZipCloseFile, ZipOptions, UnZip, ZipCreateBuffer, ZipAddFile, ZipCloseBuffer, UnZipBuffer, ZipRawMemory, UnZipRawMemory, ZipInfo, ZipAddFolder
Examples
hZip:=ZipCreateBuffer(10000000) ZipAddBuffer(hZip, "C:\MyScript.ahk", &var;, sz) sz := ZipCloseBuffer(hZip, var)