MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / block_req_get

Function block_req_get

db/block_internal.c:43–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43const 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
61uint8_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)

Callers 2

toblock_req_intFunction · 0.85
toblock_main_intFunction · 0.85

Calls 1

getfuncFunction · 0.85

Tested by

no test coverage detected