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

Function checkbuffer

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

Source from the content-addressed store, hash-verified

48/* --------------------------------------------------------------- read --- */
49
50static int checkbuffer (ZIO *z) {
51 if (z->n == 0) { /* no bytes in buffer? */
52 if (luaZ_fill(z) == EOZ) /* try to read more */
53 return 0; /* no more input */
54 else {
55 z->n++; /* luaZ_fill consumed first byte; put it back */
56 z->p--;
57 }
58 }
59 return 1; /* now buffer has something */
60}
61
62
63size_t luaZ_read (ZIO *z, void *b, size_t n) {

Callers 2

luaZ_readFunction · 0.85
luaZ_getaddrFunction · 0.85

Calls 1

luaZ_fillFunction · 0.70

Tested by

no test coverage detected