函数逻辑报告 |
Source Code:lib\hexdump.c |
Create Date:2022-07-27 07:23:23 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:hex_dump_to_buffer - convert a blob of data to "hex ASCII" in memory*@buf: data blob to dump*@len: number of bytes in the @buf*@rowsize: number of bytes to print per line; must be 16 or 32*@groupsize: number of bytes to print at a time (1, 2, 4, 8;
函数原型:int hex_dump_to_buffer(const void *buf, size_t len, int rowsize, int groupsize, char *linebuf, size_t linebuflen, bool ascii)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const void * | buf | |
| size_t | len | |
| int | rowsize | |
| int | groupsize | |
| char * | linebuf | |
| size_t | linebuflen | |
| bool | ascii |
| 111 | lx等于0 |
| 126 | ascii_column等于rowsize乘2加rowsize除groupsize加1 |
| 128 | 如果非linebuflen则转到:overflow1 |
| 134 | 如果groupsize恒等于8则 |
| 145 | 否则如果groupsize恒等于4则 |
| 156 | 否则如果groupsize恒等于2则 |
| 167 | 否则 |
| 169 | 如果linebuflen小于lx加2则转到:overflow2 |
| 172 | linebuf[lx++]等于hex_asc_hi(ch) |
| 173 | 如果linebuflen小于lx加2则转到:overflow2 |
| 175 | linebuf[lx++]等于hex_asc_lo(ch) |
| 176 | 如果linebuflen小于lx加2则转到:overflow2 |
| 186 | 当lx小于ascii_column循环 |
| 187 | 如果linebuflen小于lx加2则转到:overflow2 |
| 192 | 如果linebuflen小于lx加2则转到:overflow2 |
| 197 | nil : |
| 199 | 返回:lx |
| 200 | overflow2 : |
| 202 | overflow1 : |
| 203 | 返回:如果ascii则ascii_column加len否则groupsize乘2加1的和乘ngroups减1 |
| 名称 | 描述 |
|---|---|
| print_hex_dump | print_hex_dump - print a text hex dump to syslog for a binary blob of data*@level: kernel log level (e |
| test_hexdump | |
| test_hexdump_overflow | |
| seq_buf_hex_dump | seq_buf_hex_dump - print formatted hex dump into the sequence buffer*@s: seq_buf descriptor*@prefix_str: string to prefix each line with;* caller supplies trailing spaces for alignment if desired*@prefix_type: controls whether prefix of an offset, |
| seq_hex_dump | A complete analogue of print_hex_dump() |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |