Function report |
Source Code:lib\hexdump.c |
Create Date:2022-07-28 06:26:09 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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;
Proto:int hex_dump_to_buffer(const void *buf, size_t len, int rowsize, int groupsize, char *linebuf, size_t linebuflen, bool ascii)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 | If Not linebuflen Then Go to overflow1 |
134 | If groupsize == 8 Then |
145 | Else if groupsize == 4 Then |
156 | Else if groupsize == 2 Then |
167 | Else |
169 | If linebuflen < lx + 2 Then Go to overflow2 |
172 | linebuf[lx++] = hex_asc_hi(ch) |
173 | If linebuflen < lx + 2 Then Go to overflow2 |
175 | linebuf[lx++] = hex_asc_lo(ch) |
176 | If linebuflen < lx + 2 Then Go to overflow2 |
186 | When lx < ascii_column cycle |
187 | If linebuflen < lx + 2 Then Go to overflow2 |
192 | If linebuflen < lx + 2 Then Go to overflow2 |
197 | nil : |
199 | Return lx |
200 | overflow2 : |
202 | overflow1 : |
203 | Return If ascii Then ascii_column + len Else ( groupsize * 2 + 1) * ngroups - 1 |
Name | Describe |
---|---|
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, |
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 |