Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.12 KB

README.md

File metadata and controls

21 lines (16 loc) · 1.12 KB

xz_test

brief

xz_test is a simple C++-wrapper for xz utils, based on the sample programs from xz.

usage

Add all files from src/xz and log.hpp to your source files. Then you can use xz::compress( std::istream& istream, std::ostream& ostream ), which is based on 01_compress_easy.c and xz::decompress( std::istream& istream, std::ostream& ostream ) which is based on 02_decompress.c

building

To build 64 Bit static libs for Linux, Mac and Windows, just run the corresponding build script from the scripts folder. Note: The Windows build script builds MT and MD libs.

examples

In build/qmake are two sample projects, which use xz::compress and xz::decompress with std::cin and std::cout. Note: These are linked with static CRT (MT) under Windows.

In testing/roundtrip_test is a Qt based unit test, which tests xz::compress and xz::decompress with std::strings and files. Note: These are linked with dynamic CRT (MD) under Windows.