diff options
author | Yann Collet <cyan@fb.com> | 2022-07-13 13:55:56 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2022-07-13 13:55:56 (GMT) |
commit | 7deae4bd22c0d3d264a5928058668ff177cc7323 (patch) | |
tree | cf8f5903498f0e733a3076c2638809d43a94ff93 /lib | |
parent | 16ac87590124d474fd8fc0c27eb0941c46a55b62 (diff) | |
download | lz4-7deae4bd22c0d3d264a5928058668ff177cc7323.zip lz4-7deae4bd22c0d3d264a5928058668ff177cc7323.tar.gz lz4-7deae4bd22c0d3d264a5928058668ff177cc7323.tar.bz2 |
minor : proper interface for LZ4F_getBlockSize()
and proper documentation.
Also : updated manual
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lz4frame.c | 2 | ||||
-rw-r--r-- | lib/lz4frame.h | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c index aec2728..2b20a87 100644 --- a/lib/lz4frame.c +++ b/lib/lz4frame.c @@ -285,7 +285,7 @@ unsigned LZ4F_getVersion(void) { return LZ4F_VERSION; } int LZ4F_compressionLevel_max(void) { return LZ4HC_CLEVEL_MAX; } -size_t LZ4F_getBlockSize(unsigned blockSizeID) +size_t LZ4F_getBlockSize(LZ4F_blockSizeID_t blockSizeID) { static const size_t blockSizes[4] = { 64 KB, 256 KB, 1 MB, 4 MB }; diff --git a/lib/lz4frame.h b/lib/lz4frame.h index 2c5a559..1de09d8 100644 --- a/lib/lz4frame.h +++ b/lib/lz4frame.h @@ -545,7 +545,11 @@ typedef enum { LZ4F_LIST_ERRORS(LZ4F_GENERATE_ENUM) LZ4FLIB_STATIC_API LZ4F_errorCodes LZ4F_getErrorCode(size_t functionResult); -LZ4FLIB_STATIC_API size_t LZ4F_getBlockSize(unsigned); +/*! LZ4F_getBlockSize() : + * Return, in scalar format (size_t), + * the maximum block size associated with blockSizeID. +**/ +LZ4FLIB_STATIC_API size_t LZ4F_getBlockSize(LZ4F_blockSizeID_t blockSizeID); /*! LZ4F_uncompressedUpdate() : * LZ4F_uncompressedUpdate() can be called repetitively to add as much data uncompressed data as necessary. |