Browse Source

Add comments

pull/1530/head
Ray 4 years ago
parent
commit
dfa11e22cf
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/core.c

+ 2
- 0
src/core.c View File

@ -2558,6 +2558,7 @@ unsigned char *CompressData(unsigned char *data, int dataLength, int *compDataLe
unsigned char *compData = NULL; unsigned char *compData = NULL;
#if defined(SUPPORT_COMPRESSION_API) #if defined(SUPPORT_COMPRESSION_API)
// TODO: WARNING: This function actually codes (and compresses) a valid zlib stream
compData = stbi_zlib_compress(data, dataLength, compDataLength, COMPRESSION_QUALITY_DEFLATE); compData = stbi_zlib_compress(data, dataLength, compDataLength, COMPRESSION_QUALITY_DEFLATE);
#endif #endif
@ -2570,6 +2571,7 @@ unsigned char *DecompressData(unsigned char *compData, int compDataLength, int *
char *data = NULL; char *data = NULL;
#if defined(SUPPORT_COMPRESSION_API) #if defined(SUPPORT_COMPRESSION_API)
// TODO: WARNING: This function actually decodes (and decompresses) a valid zlib stream
data = stbi_zlib_decode_malloc((char *)compData, compDataLength, dataLength); data = stbi_zlib_decode_malloc((char *)compData, compDataLength, dataLength);
#endif #endif

Loading…
Cancel
Save