Function report |
Source Code:kernel\relay.c |
Create Date:2022-07-28 11:47:29 |
| Last Modify:2020-03-17 19:20:22 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lay_file_read_end_pos - return the new read position*@read_pos: file read position*@buf: relay channel buffer*@count: number of bytes to be read
Proto:static size_t relay_file_read_end_pos(struct rchan_buf *buf, size_t read_pos, size_t count)
Type:size_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct rchan_buf * | buf | |
| size_t | read_pos | |
| size_t | count |
| 1102 | subbuf_size = sub-buffer size |
| 1105 | read_subbuf = read_pos / subbuf_size |
| 1107 | If read_pos % subbuf_size + count + padding == subbuf_size Then end_pos = (read_subbuf + 1) * subbuf_size |
| 1111 | If end_pos >= subbuf_size * n_subbufs Then end_pos = 0 |
| 1114 | Return end_pos |
| Name | Describe |
|---|---|
| relay_file_read |
| 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 |