mathieuchartier / mcm

MCM file compressor
GNU General Public License v3.0
110 stars 24 forks source link

Provide a simple API #3

Open nemequ opened 9 years ago

nemequ commented 9 years ago

Assuming MCM.cpp is an example of how to use mcm, it is way too complicated for people to bother integrating it into their software.

mathieuchartier commented 9 years ago

MCM.cpp is fairly complicated, but the main thing you need to do is pretty simple. You just need an input and output stream and pass those as args to CM::compress. Either way, I'll try to add a simple example some time in the future.

nemequ commented 9 years ago

That would be very helpful, thanks.

nemequ commented 9 years ago

I don't suppose you would be interested in moving ArchiveHeader out of MCM.cpp? That would definitely help make things simpler…

Or do you want people to use the raw data instead of the archive format?