Function report |
Source Code:lib\xz\xz_dec_stream.c |
Create Date:2022-07-28 07:08:20 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Decode a variable-length integer (little-endian base-128 encoding)
Proto:static enum xz_ret dec_vli(struct xz_dec *s, const uint8_t *in, size_t *in_pos, size_t in_size)
Type:enum xz_ret
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct xz_dec * | s | |
| const uint8_t * | in | |
| size_t * | in_pos | |
| size_t | in_size |
| 180 | If Position in variable-length integers and Check fields == 0 Then Variable-length integer decoded by dec_vli() = 0 |
| 185 | ++in_pos |
| 187 | Variable-length integer decoded by dec_vli() |= (byte & 0x7F) << Position in variable-length integers and Check fields |
| 189 | If (byte & 0x80) == 0 Then |
| 191 | If byte == 0 && Position in variable-length integers and Check fields != 0 Then Return XZ_DATA_ERROR |
| 195 | Return XZ_STREAM_END |
| 199 | If Position in variable-length integers and Check fields == 7 * Maximum encoded size of a VLI Then Return XZ_DATA_ERROR |
| 203 | Return XZ_OK |
| Name | Describe |
|---|---|
| dec_index | Decode the Number of Records, Unpadded Size, and Uncompressed Size* fields from the Index field. That is, Index Padding and CRC32 are not* decoded by this function.* This can return XZ_OK (more input needed), XZ_STREAM_END (everything |
| dec_block_header | Decode the Block Header and initialize the filter chain. |
| 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 |