ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sat Oct 20, 2018 8:08 am

All times are UTC




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Oodle DLL binding
PostPosted: Fri Jan 26, 2018 2:22 am 
User avatar

Joined: Tue Oct 13, 2015 1:26 pm
Posts: 313
I'm working in a project which use Oodle data compression and I need to know the functions declaration to call oo2core_4_win64.dll, but I can't find any information on internet...
Looking in QuickBMS sources, there's this two functions:
Code:
OodleLZ_Compress(int algo, unsigned char *in, int insz, unsigned char *out, int max, void *a, void *b, void *c) = NULL;
OodleLZ_Decompress(unsigned char *in, int insz, unsigned char *out, int outsz, int a, int b, int c, void *d, void *e, void *f, void *g, void *h, void *i, int j) = NULL

That's it? And someone have more information about those parameters? Like these "int max, void *a, void *b, void *c" and decompression doesn't need set the algorithm?
PS.: I'm coding in Delphi but any information is useful.

Thanks in advance.

_________________
Tribo Gamer Brasil


Top
   
 Post subject: Re: Oodle DLL binding
PostPosted: Fri Jan 26, 2018 3:39 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9067
My oodle.c code available in the source code of quickbms is quite helpful about how to use this dll.
Compression:
Code:
outsz = OodleLZ_Compress(10, in, insz, out, 7, NULL, NULL, NULL);

Decompression:
Code:
outsz = OodleLZ_Decompress(in, insz, out, outsz, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 3 /*3 and 0 are the same*/);


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited