MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / clone_request

Function clone_request

libCacheSim/include/libCacheSim/request.h:105–109  ·  view source on GitHub ↗

* clone the given request * @param req * @return */

Source from the content-addressed store, hash-verified

103 * @return
104 */
105static inline request_t *clone_request(const request_t *req) {
106 request_t *req_new = my_malloc(request_t);
107 copy_request(req_new, req);
108 return req_new;
109}
110
111/**
112 * free the memory used by req

Callers

nothing calls this directly

Calls 1

copy_requestFunction · 0.85

Tested by

no test coverage detected