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

Function luaZ_fill

third-party/lua-5.2.4/src/lzio.c:21–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

luaZ_readFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected