* Add util functions or zlib inflation/deflation.

This commit is contained in:
iProgramInCpp
2023-08-12 13:53:35 +03:00
parent 1918bf2a7e
commit 944eb3ace4
4 changed files with 86 additions and 7 deletions

View File

@@ -564,6 +564,10 @@ constexpr float Lerp(float a, float b, float progress)
bool createFolderIfNotExists(const char* pDir);
bool DeleteDirectory(const std::string& name, bool unused);
// compress and decompress stuff with zlib: ( you must SAFE_DELETE_ARRAY what it returns )
uint8_t* ZlibInflateToMemory(uint8_t* pInput, size_t compressedSize, size_t decompressedSize);
uint8_t* ZlibDeflateToMemory(uint8_t* pInput, size_t sizeBytes, size_t *compressedSizeOut);
// things that we added:
#ifndef ORIGINAL_CODE