20 #define zgetc(z) (((z)->n--)>0 ? cast_uchar(*(z)->p++) : luaZ_fill(z)) 29 #define luaZ_initbuffer(L, buff) ((buff)->buffer = NULL, (buff)->buffsize = 0) 31 #define luaZ_buffer(buff) ((buff)->buffer) 32 #define luaZ_sizebuffer(buff) ((buff)->buffsize) 33 #define luaZ_bufflen(buff) ((buff)->n) 35 #define luaZ_buffremove(buff,i) ((buff)->n -= (i)) 36 #define luaZ_resetbuffer(buff) ((buff)->n = 0) 39 #define luaZ_resizebuffer(L, buff, size) \ 40 ((buff)->buffer = luaM_reallocvchar(L, (buff)->buffer, \ 41 (buff)->buffsize, size), \ 42 (buff)->buffsize = size) 44 #define luaZ_freebuffer(L, buff) luaZ_resizebuffer(L, buff, 0)
LUAI_FUNC size_t luaZ_read(ZIO *z, void *b, size_t n)
const char *(* lua_Reader)(lua_State *L, void *ud, size_t *sz)
LUAI_FUNC int luaZ_fill(ZIO *z)
LUAI_FUNC void luaZ_init(lua_State *L, ZIO *z, lua_Reader reader, void *data)