Function report |
Source Code:lib\xz\xz_dec_stream.c |
Create Date:2022-07-28 07:08:25 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Decode the Block Header and initialize the filter chain.
Proto:static enum xz_ret dec_block_header(struct xz_dec *s)
Type:enum xz_ret
Parameter:
Type | Parameter | Name |
---|---|---|
struct xz_dec * | s |
457 | size -= 4 |
462 | pos = 2 |
471 | If buf[1] & 0x3F Then Return XZ_OPTIONS_ERROR |
476 | If buf[1] & 0x40 Then |
477 | If Decode a variable-length integer (little-endian base-128 encoding) != XZ_STREAM_END Then Return XZ_DATA_ERROR |
482 | Else |
487 | If buf[1] & 0x80 Then |
488 | If Decode a variable-length integer (little-endian base-128 encoding) != XZ_STREAM_END Then Return XZ_DATA_ERROR |
493 | Else |
518 | If size - pos < 2 Then Return XZ_DATA_ERROR |
522 | If buf[pos++] != 0x21 Then Return XZ_OPTIONS_ERROR |
526 | If buf[pos++] != 0x01 Then Return XZ_OPTIONS_ERROR |
530 | If size - pos < 1 Then Return XZ_DATA_ERROR |
533 | ret = xz_dec_lzma2_reset(lzma2, buf[pos++]) |
539 | If buf[pos++] != 0x00 Then Return XZ_OPTIONS_ERROR |
542 | pos = 0 |
546 | Return XZ_OK |
Name | Describe |
---|---|
dec_main |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |