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

Function luaZ_lookahead

deps/lua/src/lzio.c:35–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34
35int luaZ_lookahead (ZIO *z) {
36 if (z->n == 0) {
37 if (luaZ_fill(z) == EOZ)
38 return EOZ;
39 else {
40 z->n++; /* luaZ_fill removed first byte; put back it */
41 z->p--;
42 }
43 }
44 return char2int(*z->p);
45}
46
47
48void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, void *data) {

Callers 2

luaZ_readFunction · 0.85
f_parserFunction · 0.85

Calls 1

luaZ_fillFunction · 0.85

Tested by

no test coverage detected