Raised This Month: $51 Target: $400
 12% 

[EXTENSION] bzip2 Compression v0.0.2 (2011-12-29)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Thrawn2
Veteran Member
Join Date: Apr 2009
Old 12-29-2011 , 14:37   [EXTENSION] bzip2 Compression v0.0.2 (2011-12-29)
Reply With Quote #1

This is a very basic (yet threaded) wrapper around libbzip2.
I give no guarantees that this works nor that you won't throw up if you start looking at the code. You have been warned.

This extension registers as the 'bzip2' library.

Natives:
PHP Code:
BZ2_DecompressFile(String:inFile[], String:outFile[], BZ2Callback:cbany:data 0);
BZ2_CompressFile(String:inFile[], String:outFile[], iCompressionLevelBZ2Callback:cbany:data 0); 
Callback: The same for both compression and decompression
PHP Code:
public(BZ_Error:iErrorString:inFile[], String:outFile[], any:data
Source, changelog and binaries
are on github.
Direct link to the include file: here.
__________________
einmal mit profis arbeiten. einmal.
Thrawn2 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode