MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaZ_getaddr

Function luaZ_getaddr

third-party/lua-5.5.0/src/lzio.c:79–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78
79const void *luaZ_getaddr (ZIO* z, size_t n) {
80 const void *res;
81 if (!checkbuffer(z))
82 return NULL; /* no more input */
83 if (z->n < n) /* not enough bytes? */
84 return NULL; /* block not whole; cannot give an address */
85 res = z->p; /* get block address */
86 z->n -= n; /* consume these bytes */
87 z->p += n;
88 return res;
89}

Callers 1

getaddr_Function · 0.85

Calls 1

checkbufferFunction · 0.85

Tested by

no test coverage detected