mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-23 22:13:35 +00:00
4a6f3e44ee
* First iteration of pack reader and interface * Fix memory leak and remove logs * Complete packed asset interface and begin on file loading replacement * Implement proper BinaryIO error * Improve AssetMemoryBuffer for reading and implement more reading * Repair more file loading code and improve how navmeshes are loaded * Missing checks implementation * Revert addition of Manifest class and migration changes * Resolved all feedback.
19 lines
431 B
C++
19 lines
431 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
namespace ZCompression {
|
|
int32_t GetMaxCompressedLength(int32_t nLenSrc);
|
|
|
|
int32_t Compress(const uint8_t* abSrc, int32_t nLenSrc, uint8_t* abDst, int32_t nLenDst);
|
|
|
|
int32_t Decompress(const uint8_t* abSrc, int32_t nLenSrc, uint8_t* abDst, int32_t nLenDst, int32_t& nErr);
|
|
|
|
/**
|
|
* @brief Max size of an inflated sd0 zlib chunk
|
|
*
|
|
*/
|
|
constexpr uint32_t MAX_SD0_CHUNK_SIZE = 1024 * 256;
|
|
}
|
|
|