函数逻辑报告 |
Source Code:lib\zstd\decompress.c |
Create Date:2022-07-27 08:05:14 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: : the compressed size of the frame starting at `src`
函数原型:size_t ZSTD_findFrameCompressedSize(const void *src, size_t srcSize)
返回类型:size_t
参数:
类型 | 参数 | 名称 |
---|---|---|
const void * | src | |
size_t | srcSize |
1512 | 如果srcSize大于等于magic number + skippable frame length 且ZSTD_readLE32(src)按位与0xFFFFFFF0U的值恒等于ZSTD_MAGIC_SKIPPABLE_START则 |
1513 | 返回:magic number + skippable frame length 加ZSTD_readLE32((constBYTE * )src + 4) |
1514 | 否则 |
1517 | remainingSize等于srcSize |
1533 | ip加等于headerSize |
1534 | remainingSize减等于headerSize |
1537 | 当1循环 |
1539 | cBlockSize等于! ZSTD_getcBlockSize() :* Provides the size of compressed block from block header `src` |
1540 | 如果ZSTD_isError() - tells if a size_t function result is an error code*@code: The function result to check for error.* Return: Non-zero iff the code is an error.则返回:cBlockSize |
1543 | 如果ZSTD_blockHeaderSize加cBlockSize大于remainingSize则返回:-***************************************** Error codes handling(srcSize_wrong) |
1546 | ip加等于ZSTD_blockHeaderSize加cBlockSize |
1553 | 如果checksumFlag则 |
1554 | 如果remainingSize小于4则返回:-***************************************** Error codes handling(srcSize_wrong) |
1556 | ip加等于4 |
1557 | remainingSize减等于4 |
名称 | 描述 |
---|---|
ZSTD_findDecompressedSize | : decompressed size of the frames contained |
ZSTD_decompressStream |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |
摘要:ZSTD_findFrameCompressedSize() :* compatible with legacy mode* `src` must point to the start of a ZSTD frame, ZSTD legacy frame, or skippable frame* `srcSize` must be at least as large as the frame contained