Function report |
Source Code:lib\decompress_bunzip2.c |
Create Date:2022-07-28 06:16:51 |
| Last Modify:2020-03-15 22:49:38 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Example usage: decompress src_fd to dst_fd. (Stops at end of bzip2 data,not end of file.)
Proto:STATIC int __attribute__((__section__(".init.text"))) __attribute__((__cold__))bunzip2(unsigned char *buf, long len, long (*fill)(void *, unsigned long ), long (*flush)(void *, unsigned long ), unsigned char *outbuf, long *pos, void (*error)(char *x))
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned char * | buf | |
| long | len | |
| long (* | fill | |
| long (* | flush | |
| unsigned char * | outbuf | |
| long * | pos | |
| void (* | error |
| 687 | i = -1 |
| 693 | If Not outbuf Then |
| 694 | error("Could not allocate output buffer") |
| 695 | Return RETVAL_OUT_OF_MEMORY |
| 701 | If Not inbuf Then |
| 707 | If Not i Then |
| 708 | cycle |
| 710 | If i <= 0 Then Break |
| 717 | Break |
| 722 | If i == RETVAL_LAST_BLOCK Then |
| 723 | If The CRC values stored in the block header and calculated from thedata != The CRC values stored in the block header and calculated from thedata Then error("Data integrity error when decompressing.") |
| 725 | Else i = Status return values |
| 727 | Else if i == RETVAL_UNEXPECTED_OUTPUT_EOF Then |
| 728 | error("Compressed file ends unexpectedly") |
| 732 | If Intermediate buffer and its size (in bytes) Then large_free(Intermediate buffer and its size (in bytes) ) |
| 734 | If pos Then pos = , outbufPos |
| 737 | exit_1 : |
| 740 | exit_0 : |
| 743 | Return i |
| Name | Describe |
|---|---|
| __decompress |
| 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 |