| 41 | } |
| 42 | |
| 43 | const uint8_t *block_req_get(struct block_req *p_block_req, |
| 44 | const uint8_t *p_buf, const uint8_t *p_buf_end, |
| 45 | int comdbg_flags) |
| 46 | { |
| 47 | if (p_buf_end < p_buf || BLOCK_REQ_LEN > (p_buf_end - p_buf)) |
| 48 | return NULL; |
| 49 | GETFUNC |
| 50 | |
| 51 | p_buf = getfunc(&(p_block_req->flags), sizeof(p_block_req->flags), p_buf, |
| 52 | p_buf_end); |
| 53 | p_buf = getfunc(&(p_block_req->offset), sizeof(p_block_req->offset), p_buf, |
| 54 | p_buf_end); |
| 55 | p_buf = getfunc(&(p_block_req->num_reqs), sizeof(p_block_req->num_reqs), |
| 56 | p_buf, p_buf_end); |
| 57 | |
| 58 | return p_buf; |
| 59 | } |
| 60 | |
| 61 | uint8_t *block_fwd_put(const struct block_fwd *p_block_fwd, uint8_t *p_buf, |
| 62 | const uint8_t *p_buf_end, int comdbg_flags) |
no test coverage detected