|
|
|
AddDirectory (character)
|
Adds a folder entry to the archive
Notes : A trailing slash is added to the name when missing. Folders
are created implicitly by the entries they contain, so folder
entries are only required for empty folders.
@param pcEntryName The name of the folder, e.g. data/images
*/
|
|
|
|
AddEntry (character, memptr)
|
Adds an entry with the content of a MEMPTR to the archive
Notes : The last modification date of the entry is the current date
and time
@param pcEntryName The name of the entry, e.g. data/customers.json
@param pmData The content of the entry
*/
|
|
|
|
AddEntry (character, memptr, datetime)
|
Adds an entry with the content of a MEMPTR to the archive
Notes : An empty or unallocated MEMPTR creates an empty entry
@param pcEntryName The name of the entry, e.g. data/customers.json
@param pmData The content of the entry
@param pdtLastModified The last modification date and time of the entry
*/
|
|
|
|
AddFile (character, character)
|
Adds an entry with the content of a file to the archive
Notes : The last modification date of the entry is the one of the file
@param pcEntryName The name of the entry, e.g. data/customers.json
@param pcFileName The name of the file
*/
|
|
|
|
AddText (character, longchar)
|
Adds an entry with a text to the archive
Notes : The text is stored UTF-8 encoded (without byte order mark)
@param pcEntryName The name of the entry, e.g. data/customers.json
@param plcText The text
*/
|
|
|
|
CreateEntry (character, logical, datetime)
|
Creates the entry record (positioned in the ttEntry buffer)
Notes :
@param pcEntryName The normalized entry name
@param plDirectory Logical value indicating if the entry is a folder
@param pdtLastModified The last modification date and time of the entry
*/
|
|
|
|
WriteToFile (character)
|
Writes the ZIP archive to a file
Notes : An existing file is overwritten
@param pcFileName The name of the file
*/
|
|
|
|
WriteToMemptr (memptr)
|
Writes the ZIP archive into a MEMPTR
Notes : The caller is responsible for freeing the MEMPTR
@param pmArchive OUTPUT The ZIP archive
*/
|