Go to the source code of this file.
Classes | |
struct | Mbuffer |
struct | Zio |
Macros | |
#define | EOZ (-1) /* end of stream */ |
#define | luaZ_buffer(buff) ((buff)->buffer) |
#define | luaZ_bufflen(buff) ((buff)->n) |
#define | luaZ_buffremove(buff, i) ((buff)->n -= (i)) |
#define | luaZ_freebuffer(L, buff) luaZ_resizebuffer(L, buff, 0) |
#define | luaZ_initbuffer(L, buff) ((buff)->buffer = NULL, (buff)->buffsize = 0) |
#define | luaZ_resetbuffer(buff) ((buff)->n = 0) |
#define | luaZ_resizebuffer(L, buff, size) |
#define | luaZ_sizebuffer(buff) ((buff)->buffsize) |
#define | zgetc(z) (((z)->n--)>0 ? cast_uchar(*(z)->p++) : luaZ_fill(z)) |
Typedefs | |
typedef struct Mbuffer | Mbuffer |
typedef struct Zio | ZIO |
Functions | |
LUAI_FUNC int | luaZ_fill (ZIO *z) |
LUAI_FUNC void | luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, void *data) |
LUAI_FUNC size_t | luaZ_read (ZIO *z, void *b, size_t n) |
#define luaZ_freebuffer | ( | L, | |
buff | |||
) | luaZ_resizebuffer(L, buff, 0) |
#define luaZ_initbuffer | ( | L, | |
buff | |||
) | ((buff)->buffer = NULL, (buff)->buffsize = 0) |
#define luaZ_resizebuffer | ( | L, | |
buff, | |||
size | |||
) |
#define zgetc | ( | z | ) | (((z)->n--)>0 ? cast_uchar(*(z)->p++) : luaZ_fill(z)) |
LUAI_FUNC void luaZ_init | ( | lua_State * | L, |
ZIO * | z, | ||
lua_Reader | reader, | ||
void * | data | ||
) |