Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
20 lines
473 B
C++
20 lines
473 B
C++
#ifndef _MINI_LZO_WRAPPER_H_
|
|
#define _MINI_LZO_WRAPPER_H_
|
|
|
|
namespace CMiniLZO
|
|
{
|
|
bool CheckLZOUsable();
|
|
|
|
bool Compress(const char* in, unsigned long in_len,
|
|
char* out, unsigned long* lp_out_len);
|
|
|
|
bool Decompress(const char* in, unsigned long in_len,
|
|
char* out, unsigned long* buffersize_in_out_len);
|
|
|
|
inline unsigned long GetLeastCompressBuffer(unsigned long dwInputBlockSize)
|
|
{
|
|
return dwInputBlockSize + (dwInputBlockSize / 64) + 16 + 3;
|
|
}
|
|
};
|
|
|
|
#endif |