MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / mp_realloc

Function mp_realloc

deps/lua/src/lua_cmsgpack.c:98–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96} mp_buf;
97
98void *mp_realloc(lua_State *L, void *target, size_t osize,size_t nsize) {
99 void *(*local_realloc) (void *, void *, size_t osize, size_t nsize) = NULL;
100 void *ud;
101
102 local_realloc = lua_getallocf(L, &ud);
103
104 return local_realloc(ud, target, osize, nsize);
105}
106
107mp_buf *mp_buf_new(lua_State *L) {
108 mp_buf *buf = NULL;

Callers 3

mp_buf_newFunction · 0.85
mp_buf_appendFunction · 0.85
mp_buf_freeFunction · 0.85

Calls 1

lua_getallocfFunction · 0.85

Tested by

no test coverage detected