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

Function luaZ_fill

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

Source from the content-addressed store, hash-verified

22
23
24int luaZ_fill (ZIO *z) {
25 size_t size;
26 lua_State *L = z->L;
27 const char *buff;
28 lua_unlock(L);
29 buff = z->reader(L, z->data, &size);
30 lua_lock(L);
31 if (buff == NULL || size == 0)
32 return EOZ;
33 z->n = size - 1; /* discount char being returned */
34 z->p = buff;
35 return cast_uchar(*(z->p++));
36}
37
38
39void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, void *data) {

Callers 1

checkbufferFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected