diff options
| author | raysan5 <[email protected]> | 2021-10-18 14:10:51 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-10-18 14:10:51 +0200 |
| commit | 2ec8ce649ad0c33e71e084d17b5ddea72d58ca40 (patch) | |
| tree | 85d1ddcffadcc938f8a398cc31380992513cbf08 /src/raylib.h | |
| parent | bc47d36e907caece15e111d1f748656aa678a594 (diff) | |
| download | raylib-2ec8ce649ad0c33e71e084d17b5ddea72d58ca40.tar.gz raylib-2ec8ce649ad0c33e71e084d17b5ddea72d58ca40.zip | |
ADDED: `EncodeDataBase64()` and `DecodeDataBase64()`
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 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 |
