mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
33 lines
1.1 KiB
C++
33 lines
1.1 KiB
C++
#include <Core/Core.h>
|
|
#include "bin.brc"
|
|
#include <plugin/bz2/bz2.h>
|
|
|
|
using namespace Upp;
|
|
|
|
//**
|
|
|
|
CONSOLE_APP_MAIN
|
|
{
|
|
puts(String().Cat() << "brc length: " << bin_brc_length);
|
|
fflush(stdout);
|
|
puts(String().Cat() << "cpp length: " << bin_cpp_length);
|
|
fflush(stdout);
|
|
puts(String().Cat() << "all count: " << bin_all_count);
|
|
fflush(stdout);
|
|
// puts(String().Cat() << "cpp: <<<\n" << (const char *)bin_cpp << "\n>>>");
|
|
MemReadStream in1(bin_cpp, bin_cpp_length);
|
|
puts(String().Cat() << "cpp: <<<\n" << BZ2Decompress(in1) << "\n>>>");
|
|
fflush(stdout);
|
|
// puts(String().Cat() << "brc: <<<\n" << (const char *)bin_brc << "\n>>>");
|
|
MemReadStream in2(bin_brc, bin_brc_length);
|
|
puts(String().Cat() << "brc: <<<\n" << BZ2Decompress(in2) << "\n>>>");
|
|
fflush(stdout);
|
|
for(int i = 0; i < bin_all_count; i++) {
|
|
puts(String().Cat() << "all length[" << i << "]: " << bin_all_length[i]);
|
|
fflush(stdout);
|
|
puts(String().Cat() << "all files[" << i << "]: " << bin_all_files[i]);
|
|
fflush(stdout);
|
|
puts(String().Cat() << "all[" << i << "]: <<<\n" << BZ2Decompress(String(bin_all[i], bin_all_length[i])) << "\n>>>");
|
|
fflush(stdout);
|
|
}
|
|
}
|