Changeset 1f799c2 for thirdparty
- Timestamp:
- 09/28/18 16:51:09 (6 years ago)
- Branches:
- master, pympi
- Children:
- dc29e2e
- Parents:
- 03ba282
- git-author:
- Hal Finkel <hfinkel@…> (09/28/18 16:51:09)
- git-committer:
- Hal Finkel <hfinkel@…> (09/28/18 16:51:09)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
thirdparty/SZ/sz/src/utility.c
r03ba282 r1f799c2 156 156 int is_lossless_compressed_data(unsigned char* compressedBytes, size_t cmpSize) 157 157 { 158 #if ZSTD_VERSION_NUMBER >= 10300 158 159 int frameContentSize = ZSTD_getFrameContentSize(compressedBytes, cmpSize); 159 160 if(frameContentSize != ZSTD_CONTENTSIZE_ERROR) 160 161 return ZSTD_COMPRESSOR; 162 #else 163 int frameContentSize = ZSTD_getDecompressedSize(compressedBytes, cmpSize); 164 if(frameContentSize == 0) 165 return ZSTD_COMPRESSOR; 166 #endif 161 167 162 168 int flag = isZlibFormat(compressedBytes[0], compressedBytes[1]);
Note: See TracChangeset
for help on using the changeset viewer.