streaming #14

Merged
yanczi merged 2 commits from streaming into master 2025-12-21 11:54:29 +01:00
Showing only changes of commit c2bdcfe2b9 - Show all commits

View file

@ -51,6 +51,7 @@
#define PROGRAM_COMPILING "19 December 2025" #define PROGRAM_COMPILING "19 December 2025"
#define PROGRAM_LICENSE "GNU LGPL v3" #define PROGRAM_LICENSE "GNU LGPL v3"
// Pliki
namespace fl { namespace fl {
inline constexpr std::string_view sigpak = "XPAK"; inline constexpr std::string_view sigpak = "XPAK";
inline constexpr std::string_view sigkey = "XKEY"; inline constexpr std::string_view sigkey = "XKEY";
@ -59,21 +60,28 @@ namespace fl {
inline constexpr std::string_view extkey = "key"; inline constexpr std::string_view extkey = "key";
} }
// Size
namespace ds namespace ds
{ {
inline constexpr int chunk_stream = 268435456; // Chunki streamowania
inline constexpr int block_size = 131072; inline constexpr int chunk_stream = 268435456; // 256MB
inline constexpr int maxFileSize = 8589934592; // Blok chunków
inline constexpr int block_size = 131072; // 128KB
// Maksymalny rozmiar pliku do spakowania
inline constexpr int maxFileSize = 8589934592; // 8GB
} }
// Flagi
namespace flag namespace flag
{ {
inline constexpr uint8_t raw = 0x00; inline constexpr uint8_t raw = 0x00; // Surowy plik
inline constexpr uint8_t zip = 0x0F; inline constexpr uint8_t zip = 0x0F; // Kompresja
inline constexpr uint8_t enc = 0xF0; inline constexpr uint8_t enc = 0xF0; // Szyfrowanie
inline constexpr uint8_t ezd = 0xFF; inline constexpr uint8_t ezd = 0xFF; // Kompresja z szyfrowaniem
// Flaga do aktywacji filtra zdefiniowanego w json
inline constexpr uint8_t filter = 0xAB; inline constexpr uint8_t filter = 0xAB;
} }