MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaZ_fill

Function luaZ_fill

Source/Misc/lua/src/lua.c:10151–10162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10149
10150
10151int luaZ_fill (ZIO *z) {
10152size_t size;
10153lua_State *L = z->L;
10154const char *buff;
10155lua_unlock(L);
10156buff = z->reader(L, z->data, &size);
10157lua_lock(L);
10158if (buff == NULL || size == 0) return EOZ;
10159z->n = size - 1;
10160z->p = buff;
10161return char2int(*(z->p++));
10162}
10163
10164
10165int luaZ_lookahead (ZIO *z) {

Callers 1

luaZ_lookaheadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected