mirror of
				https://github.com/raysan5/raylib.git
				synced 2025-10-26 12:27:01 +00:00 
			
		
		
		
	REVIEWED: DecodeDataBase64(), follow convention:
				
					
				
			- All `char *` refer to text strings - All `unsigned char *` refer to generic byte arrays
This commit is contained in:
		| @@ -1154,7 +1154,7 @@ RLAPI long GetFileModTime(const char *fileName);                  // Get file mo | ||||
| RLAPI unsigned char *CompressData(const unsigned char *data, int dataSize, int *compDataSize);        // Compress data (DEFLATE algorithm), memory must be MemFree() | ||||
| RLAPI unsigned char *DecompressData(const unsigned char *compData, int compDataSize, int *dataSize);  // Decompress data (DEFLATE algorithm), memory must be MemFree() | ||||
| RLAPI char *EncodeDataBase64(const unsigned char *data, int dataSize, int *outputSize);               // Encode data to Base64 string, memory must be MemFree() | ||||
| RLAPI unsigned char *DecodeDataBase64(const unsigned char *data, int *outputSize);                    // Decode Base64 string data, memory must be MemFree() | ||||
| RLAPI unsigned char *DecodeDataBase64(const char *data, int *outputSize);                             // Decode Base64 string data, memory must be MemFree() | ||||
| RLAPI unsigned int ComputeCRC32(unsigned char *data, int dataSize);  // Compute CRC32 hash code | ||||
| RLAPI unsigned int *ComputeMD5(unsigned char *data, int dataSize);   // Compute MD5 hash code, returns static int[4] (16 bytes) | ||||
| RLAPI unsigned int *ComputeSHA1(unsigned char *data, int dataSize);  // Compute SHA1 hash code, returns static int[5] (20 bytes) | ||||
|   | ||||
| @@ -2575,7 +2575,7 @@ char *EncodeDataBase64(const unsigned char *data, int dataSize, int *outputSize) | ||||
| } | ||||
|  | ||||
| // Decode Base64 string data | ||||
| unsigned char *DecodeDataBase64(const unsigned char *data, int *outputSize) | ||||
| unsigned char *DecodeDataBase64(const char *data, int *outputSize) | ||||
| { | ||||
|     static const unsigned char base64decodeTable[] = { | ||||
|         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ray
					Ray