19 #define zgetc(z) (((z)->n--)>0 ? cast_uchar(*(z)->p++) : luaZ_fill(z))
28 #define luaZ_initbuffer(L, buff) ((buff)->buffer = NULL, (buff)->buffsize = 0)
30 #define luaZ_buffer(buff) ((buff)->buffer)
31 #define luaZ_sizebuffer(buff) ((buff)->buffsize)
32 #define luaZ_bufflen(buff) ((buff)->n)
34 #define luaZ_resetbuffer(buff) ((buff)->n = 0)
37 #define luaZ_resizebuffer(L, buff, size) \
38 (luaM_reallocvector(L, (buff)->buffer, (buff)->buffsize, size, char), \
39 (buff)->buffsize = size)
41 #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)
GLint GLenum GLsizei GLint GLsizei const GLvoid * data
GLdouble GLdouble GLdouble b
LUAI_FUNC int luaZ_fill(ZIO *z)
LUAI_FUNC char * luaZ_openspace(lua_State *L, Mbuffer *buff, size_t n)
static const char * reader(lua_State *L, void *ud, size_t *size)
LUAI_FUNC void luaZ_init(lua_State *L, ZIO *z, lua_Reader reader, void *data)