fix srcSize typo and add new UTIL func to comment

This commit is contained in:
shakeelrao
2019-03-28 17:50:34 -07:00
parent dcc6c7e9ae
commit dca73db30c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1136,7 +1136,7 @@ ZSTDLIB_API unsigned long long ZSTD_findDecompressedSize(const void* src, size_t
* note 3 : when the decompressed size field isn't available, the upper-bound for that frame is calculated by: * note 3 : when the decompressed size field isn't available, the upper-bound for that frame is calculated by:
* upper-bound = # blocks * min(128 KB, Window_Size) * upper-bound = # blocks * min(128 KB, Window_Size)
*/ */
ZSTDLIB_API unsigned long long ZSTD_decompressBound(const void* src, size_t srcSice); ZSTDLIB_API unsigned long long ZSTD_decompressBound(const void* src, size_t srcSize);
/*! ZSTD_frameHeaderSize() : /*! ZSTD_frameHeaderSize() :
* srcSize must be >= ZSTD_FRAMEHEADERSIZE_PREFIX. * srcSize must be >= ZSTD_FRAMEHEADERSIZE_PREFIX.
+1 -1
View File
@@ -24,7 +24,7 @@
* Includes * Includes
***************************************/ ***************************************/
#include "platform.h" /* Large Files support, SET_BINARY_MODE */ #include "platform.h" /* Large Files support, SET_BINARY_MODE */
#include "util.h" /* UTIL_getFileSize, UTIL_isRegularFile */ #include "util.h" /* UTIL_getFileSize, UTIL_isRegularFile, UTIL_isSameFile */
#include <stdio.h> /* fprintf, fopen, fread, _fileno, stdin, stdout */ #include <stdio.h> /* fprintf, fopen, fread, _fileno, stdin, stdout */
#include <stdlib.h> /* malloc, free */ #include <stdlib.h> /* malloc, free */
#include <string.h> /* strcmp, strlen */ #include <string.h> /* strcmp, strlen */