MCPcopy Create free account
hub / github.com/DFHack/dfhack / internal_memmove

Function internal_memmove

library/LuaApi.cpp:3919–3927  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3917}
3918
3919static int internal_memmove(lua_State *L)
3920{
3921 void *dest = checkaddr(L, 1);
3922 void *src = checkaddr(L, 2);
3923 int size = luaL_checkint(L, 3);
3924 if (size < 0) luaL_argerror(L, 1, "negative size");
3925 memmove(dest, src, size);
3926 return 0;
3927}
3928
3929static int internal_memcmp(lua_State *L)
3930{

Callers

nothing calls this directly

Calls 2

checkaddrFunction · 0.85
luaL_argerrorFunction · 0.85

Tested by

no test coverage detected