Lugre::cFIFO_L Class Reference

Inheritance diagram for Lugre::cFIFO_L:

Inheritance graph
[legend]
Collaboration diagram for Lugre::cFIFO_L:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void RegisterMethods (lua_State *L)
 called by Register(), registers object-methods (see cLuaBind constructor for examples)
virtual const char * GetLuaTypeName ()

Static Public Member Functions

static int CreateFIFO (lua_State *L)
 cFIFO* CreateFIFO (); for lua
static int Destroy (lua_State *L)
static int Clear (lua_State *L)
 make empty
static int Size (lua_State *L)
 for debugging from lua
static int GetQuickHandle (lua_State *L)
 get handle usable with the static FIFO_QUICK_ functions above, doesn't do typechecking
static int GetTotalPopped (lua_State *L)
static int PopRaw (lua_State *L)
 drop a specific number of bytes
static int HackRestore (lua_State *L)
 hack for bug-handling in network, try to restore previously popped data
static int PushFIFOPartRaw (lua_State *L)
static int PopFIFO (lua_State *L)
static int PushC (lua_State *L)
static int PushI (lua_State *L)
static int PushU (lua_State *L)
static int PushF (lua_State *L)
static int PushS (lua_State *L)
static int PushFIFO (lua_State *L)
static int PushPlainText (lua_State *L)
static int PushFilledString (lua_State *L)
static int PushFilledUnicodeString (lua_State *L)
static int PushUint8 (lua_State *L)
static int PushUint16 (lua_State *L)
static int PushUint32 (lua_State *L)
static int PushInt8 (lua_State *L)
static int PushInt16 (lua_State *L)
static int PushInt32 (lua_State *L)
static int PushNetUint8 (lua_State *L)
static int PushNetUint16 (lua_State *L)
static int PushNetInt8 (lua_State *L)
static int PushNetInt16 (lua_State *L)
static int PushNetUint32 (lua_State *L)
static int PushNetInt32 (lua_State *L)
static int PushNetF (lua_State *L)
static int PopC (lua_State *L)
static int PopI (lua_State *L)
static int PopU (lua_State *L)
static int PopF (lua_State *L)
static int PopS (lua_State *L)
static int PopFilledString (lua_State *L)
static int PopTerminatedString (lua_State *L)
static int PopUnicodeString (lua_State *L)
static int PopUnicodeLEString (lua_State *L)
static int PopUint32 (lua_State *L)
static int PopUint16 (lua_State *L)
static int PopUint8 (lua_State *L)
static int PopInt32 (lua_State *L)
static int PopInt16 (lua_State *L)
static int PopInt8 (lua_State *L)
static int PopNetUint32 (lua_State *L)
static int PopNetUint16 (lua_State *L)
static int PopNetUint8 (lua_State *L)
static int PopNetF (lua_State *L)
static int PopNetInt32 (lua_State *L)
static int PopNetInt16 (lua_State *L)
static int PopNetInt8 (lua_State *L)
static int PeekDecompressIntoFifo (lua_State *L)
static int PushCompressFromFifo (lua_State *L)
static int WriteToFile (lua_State *L)
static int AppendToFile (lua_State *L)
static int ReadFromFile (lua_State *L)
static int PeekFloat (lua_State *L)
static int PeekNetUint32 (lua_State *L)
static int PeekNetUint16 (lua_State *L)
static int PeekNetUint8 (lua_State *L)
static int PokeNetUint8 (lua_State *L)
static int CRC (lua_State *L)


Detailed Description

Definition at line 23 of file lugre_fifo_L.cpp.


Member Function Documentation

virtual void Lugre::cFIFO_L::RegisterMethods ( lua_State *  L  )  [inline, virtual]

static int Lugre::cFIFO_L::CreateFIFO ( lua_State *  L  )  [inline, static]

cFIFO* CreateFIFO (); for lua

Definition at line 213 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::CreateUData(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::Destroy ( lua_State *  L  )  [inline, static]

Definition at line 218 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::Clear ( lua_State *  L  )  [inline, static]

make empty

Definition at line 224 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::Size ( lua_State *  L  )  [inline, static]

for debugging from lua

Definition at line 230 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::GetQuickHandle ( lua_State *  L  )  [inline, static]

get handle usable with the static FIFO_QUICK_ functions above, doesn't do typechecking

Definition at line 236 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::GetTotalPopped ( lua_State *  L  )  [inline, static]

Definition at line 240 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopRaw ( lua_State *  L  )  [inline, static]

drop a specific number of bytes

Definition at line 246 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), max(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::HackRestore ( lua_State *  L  )  [inline, static]

hack for bug-handling in network, try to restore previously popped data

Definition at line 253 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), max(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushFIFOPartRaw ( lua_State *  L  )  [inline, static]

copies a part of otherfifo and pushes it to self for lua : void PushFIFOPartRaw (otherfifo,offset=0,length=full)

Definition at line 261 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), Lugre::cFIFO::HackGetRawReader(), PROFILE, and Lugre::cFIFO::size().

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopFIFO ( lua_State *  L  )  [inline, static]

pops [length] bytes from this fifo and appends them to targetfifo for lua : void PopFIFO (targetfifo,length)

Definition at line 278 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushC ( lua_State *  L  )  [inline, static]

Definition at line 286 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushI ( lua_State *  L  )  [inline, static]

Definition at line 287 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushU ( lua_State *  L  )  [inline, static]

Definition at line 288 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushF ( lua_State *  L  )  [inline, static]

Definition at line 289 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushS ( lua_State *  L  )  [inline, static]

Definition at line 290 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushFIFO ( lua_State *  L  )  [inline, static]

Definition at line 291 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushPlainText ( lua_State *  L  )  [inline, static]

Definition at line 292 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushFilledString ( lua_State *  L  )  [inline, static]

Definition at line 293 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushFilledUnicodeString ( lua_State *  L  )  [inline, static]

for lua : void PushUnicodeString (ascistring,len) converts a normal asci string to unicode and pushes it onto the fifo ( pushed bytes = len * 2 ) ascistring will be padded with zero bytes to reach len

Definition at line 299 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushUint8 ( lua_State *  L  )  [inline, static]

Definition at line 314 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushUint16 ( lua_State *  L  )  [inline, static]

Definition at line 315 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushUint32 ( lua_State *  L  )  [inline, static]

Definition at line 316 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushInt8 ( lua_State *  L  )  [inline, static]

Definition at line 323 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushInt16 ( lua_State *  L  )  [inline, static]

Definition at line 324 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushInt32 ( lua_State *  L  )  [inline, static]

Definition at line 325 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushNetUint8 ( lua_State *  L  )  [inline, static]

Definition at line 333 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushNetUint16 ( lua_State *  L  )  [inline, static]

Definition at line 334 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushNetInt8 ( lua_State *  L  )  [inline, static]

Definition at line 335 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushNetInt16 ( lua_State *  L  )  [inline, static]

Definition at line 336 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushNetUint32 ( lua_State *  L  )  [inline, static]

Definition at line 337 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushNetInt32 ( lua_State *  L  )  [inline, static]

Definition at line 344 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushNetF ( lua_State *  L  )  [inline, static]

Definition at line 351 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopC ( lua_State *  L  )  [inline, static]

Definition at line 363 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopI ( lua_State *  L  )  [inline, static]

Definition at line 364 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopU ( lua_State *  L  )  [inline, static]

Definition at line 365 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopF ( lua_State *  L  )  [inline, static]

Definition at line 366 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopS ( lua_State *  L  )  [inline, static]

Definition at line 367 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopFilledString ( lua_State *  L  )  [inline, static]

Definition at line 372 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopTerminatedString ( lua_State *  L  )  [inline, static]

Definition at line 379 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopUnicodeString ( lua_State *  L  )  [inline, static]

for lua : string PopUnicodeString (size_in_number_of_unicode_chars) size is the number of 2-byte UNICODE characters , so the number of bytes popped is 2 times that size

Definition at line 393 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), Lugre::cFIFO::PopC(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopUnicodeLEString ( lua_State *  L  )  [inline, static]

static int Lugre::cFIFO_L::PopUint32 ( lua_State *  L  )  [inline, static]

Definition at line 435 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopUint16 ( lua_State *  L  )  [inline, static]

Definition at line 442 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopUint8 ( lua_State *  L  )  [inline, static]

Definition at line 443 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopInt32 ( lua_State *  L  )  [inline, static]

Definition at line 445 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopInt16 ( lua_State *  L  )  [inline, static]

Definition at line 452 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopInt8 ( lua_State *  L  )  [inline, static]

Definition at line 453 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopNetUint32 ( lua_State *  L  )  [inline, static]

Definition at line 455 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopNetUint16 ( lua_State *  L  )  [inline, static]

Definition at line 462 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopNetUint8 ( lua_State *  L  )  [inline, static]

Definition at line 463 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopNetF ( lua_State *  L  )  [inline, static]

Definition at line 465 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopNetInt32 ( lua_State *  L  )  [inline, static]

Definition at line 473 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopNetInt16 ( lua_State *  L  )  [inline, static]

Definition at line 480 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PopNetInt8 ( lua_State *  L  )  [inline, static]

Definition at line 481 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PeekDecompressIntoFifo ( lua_State *  L  )  [inline, static]

Definition at line 485 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PushCompressFromFifo ( lua_State *  L  )  [inline, static]

Definition at line 499 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::WriteToFile ( lua_State *  L  )  [inline, static]

Definition at line 510 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::AppendToFile ( lua_State *  L  )  [inline, static]

Definition at line 521 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::ReadFromFile ( lua_State *  L  )  [inline, static]

Definition at line 532 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PeekFloat ( lua_State *  L  )  [inline, static]

Definition at line 553 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), max(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PeekNetUint32 ( lua_State *  L  )  [inline, static]

Definition at line 558 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), max(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PeekNetUint16 ( lua_State *  L  )  [inline, static]

Definition at line 563 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), max(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PeekNetUint8 ( lua_State *  L  )  [inline, static]

Definition at line 568 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), max(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::PokeNetUint8 ( lua_State *  L  )  [inline, static]

Definition at line 573 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), max(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cFIFO_L::CRC ( lua_State *  L  )  [inline, static]

Definition at line 580 of file lugre_fifo_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

virtual const char* Lugre::cFIFO_L::GetLuaTypeName (  )  [inline, virtual]

Implements Lugre::cLuaBind< _T >.

Definition at line 586 of file lugre_fifo_L.cpp.


The documentation for this class was generated from the following file:

Generated on Wed Feb 8 06:00:18 2012 for cpp by  doxygen 1.5.6