From c2bdcfe2b9e781662ef5d883128cd5cf8d4326f5 Mon Sep 17 00:00:00 2001 From: yanczi Date: Sun, 21 Dec 2025 11:54:10 +0100 Subject: [PATCH] Komentarze --- DataStruct.h | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/DataStruct.h b/DataStruct.h index 9f3c655..af4da80 100644 --- a/DataStruct.h +++ b/DataStruct.h @@ -51,6 +51,7 @@ #define PROGRAM_COMPILING "19 December 2025" #define PROGRAM_LICENSE "GNU LGPL v3" +// Pliki namespace fl { inline constexpr std::string_view sigpak = "XPAK"; inline constexpr std::string_view sigkey = "XKEY"; @@ -59,21 +60,28 @@ namespace fl { inline constexpr std::string_view extkey = "key"; } +// Size namespace ds { - inline constexpr int chunk_stream = 268435456; - inline constexpr int block_size = 131072; + // Chunki streamowania + 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 { - inline constexpr uint8_t raw = 0x00; - inline constexpr uint8_t zip = 0x0F; - inline constexpr uint8_t enc = 0xF0; - inline constexpr uint8_t ezd = 0xFF; + inline constexpr uint8_t raw = 0x00; // Surowy plik + inline constexpr uint8_t zip = 0x0F; // Kompresja + inline constexpr uint8_t enc = 0xF0; // Szyfrowanie + inline constexpr uint8_t ezd = 0xFF; // Kompresja z szyfrowaniem + // Flaga do aktywacji filtra zdefiniowanego w json inline constexpr uint8_t filter = 0xAB; }