RetroArch
Classes | Macros | Typedefs | Functions
lzio.h File Reference
#include "lua.h"
#include "lmem.h"
Include dependency graph for lzio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Mbuffer
 
struct  Zio
 

Macros

#define EOZ   (-1) /* end of stream */
 
#define zgetc(z)   (((z)->n--)>0 ? cast_uchar(*(z)->p++) : luaZ_fill(z))
 
#define luaZ_initbuffer(L, buff)   ((buff)->buffer = NULL, (buff)->buffsize = 0)
 
#define luaZ_buffer(buff)   ((buff)->buffer)
 
#define luaZ_sizebuffer(buff)   ((buff)->buffsize)
 
#define luaZ_bufflen(buff)   ((buff)->n)
 
#define luaZ_buffremove(buff, i)   ((buff)->n -= (i))
 
#define luaZ_resetbuffer(buff)   ((buff)->n = 0)
 
#define luaZ_resizebuffer(L, buff, size)
 
#define luaZ_freebuffer(L, buff)   luaZ_resizebuffer(L, buff, 0)
 

Typedefs

typedef struct Zio ZIO
 
typedef struct Mbuffer Mbuffer
 

Functions

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)
 
LUAI_FUNC int luaZ_fill (ZIO *z)
 

Macro Definition Documentation

◆ EOZ

#define EOZ   (-1) /* end of stream */

◆ luaZ_buffer

#define luaZ_buffer (   buff)    ((buff)->buffer)

◆ luaZ_bufflen

#define luaZ_bufflen (   buff)    ((buff)->n)

◆ luaZ_buffremove

#define luaZ_buffremove (   buff,
 
)    ((buff)->n -= (i))

◆ luaZ_freebuffer

#define luaZ_freebuffer (   L,
  buff 
)    luaZ_resizebuffer(L, buff, 0)

◆ luaZ_initbuffer

#define luaZ_initbuffer (   L,
  buff 
)    ((buff)->buffer = NULL, (buff)->buffsize = 0)

◆ luaZ_resetbuffer

#define luaZ_resetbuffer (   buff)    ((buff)->n = 0)

◆ luaZ_resizebuffer

#define luaZ_resizebuffer (   L,
  buff,
  size 
)
Value:
((buff)->buffer = luaM_reallocvchar(L, (buff)->buffer, \
(buff)->buffsize, size), \
(buff)->buffsize = size)
#define luaM_reallocvchar(L, b, on, n)
Definition: lmem.h:38
GLsizeiptr size
Definition: glext.h:6559
Ιστορικό Εικόνα Πληροφορίες Όλοι Οι Χρήστες Χειρίζονται Το Μενού Αριστερό Αναλογικό Αριστερό Αναλογικό Αριστερό Αναλογικό Y Αριστερό Αναλογικό Δεξί Αναλογικό X Δεξί Αναλογικό Δεξί Αναλογικό Y Δεξί Αναλογικό Σκανδάλη Όπλου Όπλο Aux A Όπλο Aux C Όπλο Select Όπλο D pad Κάτω Όπλο D pad Δεξιά Νεκρή Ζώνη Αναλογικού Σύνδεση Όλων Λήξη Χρόνου Σύνδεσης Hide Unbound Core Input Descriptors Κατάλογος Συσκευών Κατάλογος Ποντικιού Duty Cycle Keyboard Gamepad Mapping Enable Κουμπί D pad κάτω Κουμπί Κουμπί L(πίσω)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_LEFT
Definition: video4linux2.c:51

◆ luaZ_sizebuffer

#define luaZ_sizebuffer (   buff)    ((buff)->buffsize)

◆ zgetc

#define zgetc (   z)    (((z)->n--)>0 ? cast_uchar(*(z)->p++) : luaZ_fill(z))

Typedef Documentation

◆ Mbuffer

typedef struct Mbuffer Mbuffer

◆ ZIO

typedef struct Zio ZIO

Function Documentation

◆ luaZ_fill()

LUAI_FUNC int luaZ_fill ( ZIO z)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaZ_init()

LUAI_FUNC void luaZ_init ( lua_State L,
ZIO z,
lua_Reader  reader,
void data 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaZ_read()

LUAI_FUNC size_t luaZ_read ( ZIO z,
void b,
size_t  n 
)
Here is the call graph for this function:
Here is the caller graph for this function: