diff options
| author | Ray <[email protected]> | 2019-09-09 21:56:16 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2019-09-09 21:56:16 +0200 |
| commit | ae2452d280a07952529ea82bcc2288d73bc3ccdf (patch) | |
| tree | a5c7d94b2a34392e11855e4abd17b094ead9491a /src/raylib.h | |
| parent | 2d6bc1ff429a25313415c55f6683956cf6f5ebdc (diff) | |
| download | raylib-ae2452d280a07952529ea82bcc2288d73bc3ccdf.tar.gz raylib-ae2452d280a07952529ea82bcc2288d73bc3ccdf.zip | |
ADDED small compression API
- ADDED: CompressData()
- ADDED: DecompressData()
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h index ed0314d3..3bbf471b 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -955,6 +955,9 @@ RLAPI char **GetDroppedFiles(int *count); // Get dropped RLAPI void ClearDroppedFiles(void); // Clear dropped files paths buffer (free memory) RLAPI long GetFileModTime(const char *fileName); // Get file modification time (last write time) +RLAPI unsigned char *CompressData(unsigned char *data, int dataLength, int *compDataLength); // Compress data (DEFLATE algorythm) +RLAPI char *DecompressData(char *compData, int compDataLength, int *dataLength); // Decompress data (DEFLATE algorythm) + // Persistent storage management RLAPI void StorageSaveValue(int position, int value); // Save integer value to storage file (to defined position) RLAPI int StorageLoadValue(int position); // Load integer value from storage file (from defined position) |
