Features supported:
- MacOS, Linux and Windows
ASCII and Unicode
32-Bit and 64-Bit
restores Filedate
restores Fileattributes (only on same os)
Paths in Archiv
Encrypt Fileinfoheader with AES 256-Bit
Catch to memory
Find Pack included in File (IncludeBinary, Append or in a windows-resource Section)
Interface Packroutines:
Code: Select all
Interface zBinPackObject
AddPackFile.i(File.s, level = 9, PathInArchiv.s = "")
; Add a file to pack.
; Parameters:
; File.s = File name with path.
; level (optional) = Pack level (between 0 and 9)
; PathInArchiv.s (optional) = Relative path in archive. When extracting this path will be restored.
AddPackDir.i(Dir.s, level = 9, contentonly.i = #False)
; Add a folder to pack.
; Parameters:
; Dir.s = Absolute Path to folder which should be added in pack.
; level (optional) = Pack level (between 0 and 9)
; contentonly.i = If #TRUE then only content of specified folder will be added.
; Otherwise packs also the folder. (PathInArchiv.s is considered to be packed!)
GetError.i()
; Returns Errorcode for some Methode
ClosePack.i()
; zBin file will be closed and the object will be destroyed.
EndInterface
Code: Select all
Interface zBinUnPackObject
CountFiles.i()
; Returns the number of files that resides in a pack.
GetFileNumber.i(Name.s)
; Returns the pack number with specified name. Warning: It finds only the first file matching the name!
GetFileName.s(Number)
; Returns the file name of pack number.
GetFilePath.s(Number)
; Returns the path of pack number.
GetUnpackedSize.i(Number)
; Returns the file size of pack number.
CatchFile.i(Number)
; Unpacks the pack of number and returns memory address.
; FreeMemory() frees the memory.
ExtractFile.i(Number, Path.s = "")
; Restores specified pack file in directory path.
; Subdirectories are also restored.
ExtractArchiv.i(Path.s = "")
; Restores complete pack with subdirectories in directory path.
GetError.i()
; Returns Errorcode for some Methode
ClosePack.i()
; Closes the zBin file and destroys the object.
EndInterface
Preview:

Download: http://www.realsource.de/downloads/doc_ ... packer-sdk
Feedback welcome