MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / luaZ_fill

Function luaZ_fill

deps/lua/src/lzio.c:21–32  ·  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) return EOZ;
29 z->n = size - 1;
30 z->p = buff;
31 return char2int(*(z->p++));
32}
33
34
35int luaZ_lookahead (ZIO *z) {

Callers 1

luaZ_lookaheadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected