lua/lzio.c File Reference

#include <string.h>
#include "lua.h"
#include "llimits.h"
#include "lmem.h"
#include "lzio.h"

Go to the source code of this file.

Defines

#define lzio_c

Functions

int luaZ_fill (ZIO *z)
int luaZ_lookahead (ZIO *z)
void luaZ_init (ZIO *z, lua_Chunkreader reader, void *data, const char *name)
size_t luaZ_read (ZIO *z, void *b, size_t n)
char * luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n)


Define Documentation

#define lzio_c

Definition at line 10 of file lzio.c.


Function Documentation

int luaZ_fill ( ZIO z  ) 

Definition at line 19 of file lzio.c.

References char2int, Zio::data, EOZ, Zio::n, Zio::p, and Zio::reader.

Referenced by luaZ_lookahead(), and luaZ_read().

void luaZ_init ( ZIO z,
lua_Chunkreader  reader,
void *  data,
const char *  name 
)

Definition at line 40 of file lzio.c.

References Zio::data, Zio::n, Zio::name, Zio::p, and Zio::reader.

Referenced by lua_load().

int luaZ_lookahead ( ZIO z  ) 

Definition at line 29 of file lzio.c.

References char2int, EOZ, luaZ_fill(), Zio::n, and Zio::p.

Referenced by lua_load().

char* luaZ_openspace ( lua_State L,
Mbuffer buff,
size_t  n 
)

Definition at line 72 of file lzio.c.

References Mbuffer::buffer, Mbuffer::buffsize, LUA_MINBUFFER, and luaM_reallocvector.

Referenced by LoadString(), and luaV_concat().

size_t luaZ_read ( ZIO z,
void *  b,
size_t  n 
)

Definition at line 50 of file lzio.c.

References EOZ, luaZ_fill(), Zio::n, and Zio::p.

Referenced by ezread().


Generated on Fri Oct 12 08:44:56 2007 for rpm by  doxygen 1.5.2