From 2ec8ce649ad0c33e71e084d17b5ddea72d58ca40 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Mon, 18 Oct 2021 14:10:51 +0200 Subject: ADDED: `EncodeDataBase64()` and `DecodeDataBase64()` --- src/raylib.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/raylib.h') diff --git a/src/raylib.h b/src/raylib.h index dd7a68bb..9f6ce25d 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1052,8 +1052,11 @@ 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) +// Compression/Encoding functionality RLAPI unsigned char *CompressData(unsigned char *data, int dataLength, int *compDataLength); // Compress data (DEFLATE algorithm) RLAPI unsigned char *DecompressData(unsigned char *compData, int compDataLength, int *dataLength); // Decompress data (DEFLATE algorithm) +RLAPI char *EncodeDataBase64(const unsigned char *data, int dataLength, int *outputLength); // Encode data to Base64 string +RLAPI unsigned char *DecodeDataBase64(unsigned char *data, int *outputLength); // Decode Base64 string data // Persistent storage management RLAPI bool SaveStorageValue(unsigned int position, int value); // Save integer value to storage file (to defined position), returns true on success -- cgit v1.2.3