Komentarze
This commit is contained in:
parent
608e382095
commit
c2bdcfe2b9
1 changed files with 15 additions and 7 deletions
22
DataStruct.h
22
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue