neyi neyiPaylaşım için teşekkürler. kullanabilmek için sahte ehliyeti nerden temin edebilirim hocam
ehliyetim var da orda onu anlamadım ne bilimB,c1,a1,a2 kullanmiyormu hasan hocam![]()

struct FileCompressor
{
std::vector<unsigned char> data;
std::vector<unsigned char> src;
unsigned int compressed;
unsigned int decompressed;
unsigned int hash;
FileCompressor()
{
data.resize(FILE_COMPRESSOR_MEM);
src.resize(FILE_COMPRESSOR_MEM);
}
bool operator()(const std::string& source)
{
compressed = 0;
decompressed = 0;
hash = 0;
std::ifstream input(source.c_str(), std::ifstream::binary | std::ifstream::in);
bool r = false;
if (input)
{
input.seekg(0, std::ifstream::end);
decompressed = input.tellg();
input.seekg(0, std::ifstream::beg);
input.read(reinterpret_cast<char*>(&src[0]), MIN(src.size(), decompressed));
input.close();
hash = XXH32(reinterpret_cast<char*>(&src[0]), decompressed, FOXFS_MAGIC);
// LZ4_compress_HC kullanıldı
if ((compressed = LZ4_compress_HC(reinterpret_cast<char*>(&src[0]), reinterpret_cast<char*>(&data[0]), decompressed, data.size(), 9)) >= decompressed)
{
// Eğer sıkıştırma oranı düşerse, veriyi kopyala (özellikle sıkıştırma başarısız olursa)
memcpy(&data[0], &src[0], src.size());
compressed = decompressed;
}
r = true;
}
return r;
}
};
biraz uyarlama gerekiyo pack yollarını yanılmıyosam öyleydi@hasanmacit konu tekrar açıldıda canım bunun ekstra bir şeyi gerekiyor mu kullanacağımda
mainline üzerinden gidicem gece pack yolları basit çoktan ayarladımda ekstra bir clientte eklenti yapmam lazım mı onu merak ettim bu iki mesaj bir düşündürdü beni debiraz uyarlama gerekiyo pack yollarını yanılmıyosam öyleydi
lzt xxhash gibi externeleri güncellemek isterseniz hata verecektir.
gücnel lz uyumu
için
atchive main.cc
Kod:struct FileCompressor { std::vector<unsigned char> data; std::vector<unsigned char> src; unsigned int compressed; unsigned int decompressed; unsigned int hash; FileCompressor() { data.resize(FILE_COMPRESSOR_MEM); src.resize(FILE_COMPRESSOR_MEM); } bool operator()(const std::string& source) { compressed = 0; decompressed = 0; hash = 0; std::ifstream input(source.c_str(), std::ifstream::binary | std::ifstream::in); bool r = false; if (input) { input.seekg(0, std::ifstream::end); decompressed = input.tellg(); input.seekg(0, std::ifstream::beg); input.read(reinterpret_cast<char*>(&src[0]), MIN(src.size(), decompressed)); input.close(); hash = XXH32(reinterpret_cast<char*>(&src[0]), decompressed, FOXFS_MAGIC); // LZ4_compress_HC kullanıldı if ((compressed = LZ4_compress_HC(reinterpret_cast<char*>(&src[0]), reinterpret_cast<char*>(&data[0]), decompressed, data.size(), 9)) >= decompressed) { // Eğer sıkıştırma oranı düşerse, veriyi kopyala (özellikle sıkıştırma başarısız olursa) memcpy(&data[0], &src[0], src.size()); compressed = decompressed; } r = true; } return r; } };
not pack boyutu yüysekse geç açılır.
PropertyGen.exe için source var mı? Bulamadım.
yok heralde bilmiyom ki yav baya oldumainline üzerinden gidicem gece pack yolları basit çoktan ayarladımda ekstra bir clientte eklenti yapmam lazım mı onu merak ettim bu iki mesaj bir düşündürdü beni de