Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

QBMS Compression

Featured Replies

  • Author
  • Localization

michalss, posted Thu Nov 06, 2014 10:20 pm (1582)


Hi Aluigi,

I have 1 sugestion to you mate. :) Is there any chance you can do single file (de)compression natively without the bms sctipt ? Someting like qbms InfileName OutFilename.
that would be absolutely perfect :)

- also to make possible to attach it as assemlby to .Net and use your classes and Unmanaged libs ?


thx
Mike
  • Author
  • Localization

aluigi, posted Fri Nov 07, 2014 10:30 am (1587)


I have just improved the -s option to allow multiple commands using the ';' separator.
So in the next version of quickbms that I will release, it's enough to use something like the following:
Code:
quickbms -s "comtype zlib ; get ZSIZE asize ; xmath SIZE \"ZSIZE * 10\" ; clog \"dump.dat\" 0 ZSIZE SIZE" "" input_file.dat output_folder


*update*
Note that various decompression algorithms are sensitive to the output uncompressed size, so if you specify a wrong SIZE the algorithm may fail, crash or fill the whole SIZE with bad data.
  • Author
  • Localization

michalss, posted Fri Nov 07, 2014 11:59 am (1590)


yeah thx this is perfect exactly i need :)

And my other question please ? Is it possible to do such a thing about .Net assemblies ?
  • Author
  • Localization

aluigi, posted Fri Nov 07, 2014 5:20 pm (1594)


What you mean exactly?
I don't know much about .Net.
  • Author
  • Localization

michalss, posted Sat Nov 08, 2014 11:44 am (1636)


for example to use your compressions in .NET as unmanaged code
  • Author
  • Localization

aluigi, posted Sat Nov 08, 2014 5:26 pm (1640)


I think you need to compile one or more compression functions as dll with the stdcall calling convention.
Then you should be able to use them in .NET
  • Author
  • Localization

michalss, posted Sat Nov 08, 2014 6:48 pm (1649)


aluigi wrote:
I think you need to compile one or more compression functions as dll with the stdcall calling convention.
Then you should be able to use them in .NET



Well i was playing with your qbms code and i have to admin it is over my head. :( Temporarly i used qbms and wrote special class for it in .NET using compressions, but it is not very friendly sort of speak. It would be nice to actually use qbms to use in .NET projects. This is example i was talking about : http://www.codeproject.com/Articles/141 ... Applicatio
  • Author
  • Localization

aluigi, posted Sat Nov 08, 2014 10:23 pm (1652)


You must not play with all the quickbms code. Check the C and H files in src\compression and check also unz.c.
The decompression functions are very simple and usually need only the input buffer, input size, output buffer and often also the output size.

What compression algorithms do you need?
  • Author
  • Localization

michalss, posted Sun Nov 09, 2014 9:56 am (1662)


aluigi wrote:
You must not play with all the quickbms code. Check the C and H files in src\compression and check also unz.c.
The decompression functions are very simple and usually need only the input buffer, input size, output buffer and often also the output size.

What compression algorithms do you need?



Well most common one :) It would be gr8 all of them but it would be to much work i guess.
  • Author
  • Localization

aluigi, posted Sun Nov 09, 2014 10:38 am (1665)


zlib/deflate, lzma, bzip, gzip, lz4 and some others already have a .net implementation, others like those of Nintendo are natively in .NET (I translated them to C).
For the others I think the easiest solution is to use quickbms.exe that will handle everything.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.