Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: aminer Newsgroups: comp.programming,comp.programming.threads Subject: Re: Parallel archiver using my ParallelZlib is here... Date: Sat, 16 Feb 2013 08:42:51 -0800 Organization: A noiseless patient Spider Lines: 70 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 16 Feb 2013 13:42:05 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="8427fd05edc201bb6b1d125b80ca38e6"; logging-data="30142"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18r3z1gnCytqRxcZqtDoDt0pHYaA4PC/pM=" User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 In-Reply-To: Cancel-Lock: sha1:VR8HkkJ+V0UPHnHSAqbGvcmouyw= Xref: csiph.com comp.programming:3032 comp.programming.threads:1366 Hello And here are all the methods that you can use: PUBLIC METHODS: Constructor Create(file1:string,size,mrews:integer;casesensitive:boolean;nbrprocs); - Creates a new PZArchiver ready to use, size is the hashtable size for the index(Key file names and the correponding file position and with mrews The number of MREWs and casesensitive for case sensitive keys,the number of MREWS(multiple-readers-exclusive-writer) must be less or equal to the Hashtable size and file1 is the file archive, nbrprocs is the number of cores you have specify to run parallelzlib in parallel. Destructor Destroy; - Destroys the PZArchiver object and cleans up. procedure AddFiles; - Add the TStringList content to the archive. procedure DeleteFiles; - Delete the TStringList content to the archive. procedure ExtractFiles; - Extract the TStringList content from the archive. procedure Test; - Test the files inside the archive. procedure GetInfo; - Get the file info that is returned in a TPZArchiver record. procedure ClearFile; - Deletes all contents of the archive. function Clean:boolean - Clean the marked deleted items from the file. function DeletedItems:integer - Return the number of items marked deleted. function LoadIndex:boolean - Load the the the key indexed and there correpondant values from the file passed to the constructor. function Delete(Name : String):boolean; - Deletes the variable with Name. function Exists(Name : String) : Boolean; - Returns True if a variable with Name exists procedure GetKeys(Strings : Tstrings); - Fills up a TStrings descendant with all the file names. function Count : Integer; - Returns the number of files. Thank you, Amine Moulay Ramdane.