C# Class KopiLua.Lua

Show file Open project: NLua/KopiLua Class Usage Examples

Public Properties

Property Type Description
KEYWEAK int
VALUEWEAK int
WHITEBITS int
maskmarks byte

Private Properties

Property Type Description
Atomic void
CheckSizes void
CheckStackSizes void
ClearTable void
FreeObj void
GCTM void
GetBoolField int
GetField int
IsCleared bool
Lua System
LuaCSeparateUData uint
LuaStrLen uint
MahMin int
MarkMT void
MarkRoot void
MarkTMU void
MathACos int
MathASin int
MathATan int
MathATan2 int
MathAbs int
MathCeil int
MathCos int
MathCosH int
MathDeg int
MathExp int
MathFMod int
MathFRExp int
MathFloor int
MathLDExp int
MathLog int
MathLog10 int
MathMax int
MathModF int
MathPow int
MathRad int
MathRandom int
MathRandomSeed int
MathSin int
MathSinH int
MathSqrt int
MathTan int
MathTanH int
OSClock int
OSDate int
OSDiffTime int
OSExecute int
OSExit int
OSGetEnv int
OSPushResult int
OSRemove int
OSRename int
OSSetLocale int
OSTime int
OSTmpName int
PropagateAll uint
PropagateMark System.Int32
ReallyMarkObject void
RemarkUpVals void
RemoveEntry void
SetBoolField void
SetField void
SingleStep System.Int32
StrFTimeAdd CharPtr
StrFTimeFmt CharPtr
SweepList GCObjectRef
TraverseClosure void
TraverseProto void
TraverseStack void
TraverseTable int
strftime uint

Public Methods

Method Description
Bit2Mask ( int b1, int b2 ) : int
BitMask ( int b ) : int
Black2Gray ( GCObject x ) : void
ChangeWhite ( GCObject x ) : void
Gray2Black ( GCObject x ) : void
IsBlack ( GCObject x ) : bool
IsDead ( GlobalState g, GCObject v ) : bool
IsFinalized ( UdataUV u ) : bool
IsGray ( GCObject x ) : bool
IsWhite ( GCObject x ) : bool
LSetBit ( Byte &x, int b ) : int
LuaCBarrier ( LuaState L, object p, Lua.LuaTypeValue v ) : void
LuaCBarrierBack ( LuaState L, Table t ) : void
LuaCBarrierF ( LuaState L, GCObject o, GCObject v ) : void
LuaCBarrierT ( LuaState L, Table t, Lua.LuaTypeValue v ) : void
LuaCCallGCTM ( LuaState L ) : void
LuaCCheckGC ( LuaState L ) : void
LuaCFreeAll ( LuaState L ) : void
LuaCFullGC ( LuaState L ) : void
LuaCLink ( LuaState L, GCObject o, Byte tt ) : void
LuaCLinkUpVal ( LuaState L, UpVal uv ) : void
LuaCObjBarrier ( LuaState L, object p, object o ) : void
LuaCObjBarrierT ( LuaState L, Table t, object o ) : void
LuaCStep ( LuaState L ) : void
LuaCWhite ( GlobalState g ) : byte
LuaGetGCCount ( LuaState L ) : int
LuaGetGlobal ( LuaState L, CharPtr s ) : void
LuaGetRegistry ( LuaState L ) : void
LuaIsBoolean ( LuaState L, int n ) : bool
LuaIsFunction ( LuaState L, int n ) : bool
LuaIsLightUserData ( LuaState L, int n ) : bool
LuaIsNil ( LuaState L, int n ) : bool
LuaIsNone ( LuaState L, int n ) : bool
LuaIsNoneOrNil ( LuaState L, Double n ) : bool
LuaIsTable ( LuaState L, int n ) : bool
LuaIsThread ( LuaState L, int n ) : bool
LuaNewTable ( LuaState L ) : void
LuaOpen ( ) : LuaState
LuaOpenMath ( LuaState L ) : int
LuaOpenOS ( LuaState L ) : int
LuaPop ( LuaState L, int n ) : void
LuaPushCFunction ( LuaState L, LuaNativeFunction f ) : void
LuaPushLiteral ( LuaState L, CharPtr s ) : void
LuaRegister ( LuaState L, CharPtr n, LuaNativeFunction f ) : void
LuaSetGlobal ( LuaState L, CharPtr s ) : void
LuaToString ( LuaState L, int i ) : CharPtr
LuaUpValueIndex ( int i ) : int
MakeWhite ( GlobalState g, GCObject x ) : void
MarkFinalized ( UdataUV u ) : void
MarkObject ( GlobalState g, object t ) : void
MarkValue ( GlobalState g, Lua.LuaTypeValue o ) : void
OtherWhite ( GlobalState g ) : int
Reset2Bits ( Byte &x, int b1, int b2 ) : int
ResetBit ( Byte &x, int b ) : int
ResetBits ( Byte &x, int m ) : int
Set2Bits ( Byte &x, int b1, int b2 ) : int
SetBits ( Byte &x, int m ) : int
SetThreshold ( GlobalState g ) : void
StringMark ( TString s ) : void
SweepWholeList ( LuaState L, GCObjectRef p ) : void
Test2Bits ( Byte x, int b1, int b2 ) : bool
TestBit ( Byte x, int b ) : bool
TestBits ( Byte x, int m ) : bool
ValIsWhite ( Lua.LuaTypeValue x ) : bool
White2Gray ( GCObject x ) : void

Private Methods

Method Description
Atomic ( KopiLua.LuaState L ) : void
CheckSizes ( KopiLua.LuaState L ) : void
CheckStackSizes ( KopiLua.LuaState L, KopiLua.Lua.LuaTypeValue max ) : void
ClearTable ( GCObject l ) : void
FreeObj ( LuaState L, GCObject o ) : void
GCTM ( LuaState L ) : void
GetBoolField ( LuaState L, CharPtr key ) : int
GetField ( LuaState L, CharPtr key, int d ) : int
IsCleared ( Lua.LuaTypeValue o, bool iskey ) : bool
Lua ( ) : System
LuaCSeparateUData ( LuaState L, int all ) : uint
LuaStrLen ( LuaState L, int i ) : uint
MahMin ( LuaState L ) : int
MarkMT ( GlobalState g ) : void
MarkRoot ( LuaState L ) : void
MarkTMU ( GlobalState g ) : void
MathACos ( LuaState L ) : int
MathASin ( LuaState L ) : int
MathATan ( LuaState L ) : int
MathATan2 ( LuaState L ) : int
MathAbs ( LuaState L ) : int
MathCeil ( LuaState L ) : int
MathCos ( LuaState L ) : int
MathCosH ( LuaState L ) : int
MathDeg ( LuaState L ) : int
MathExp ( LuaState L ) : int
MathFMod ( LuaState L ) : int
MathFRExp ( LuaState L ) : int
MathFloor ( LuaState L ) : int
MathLDExp ( LuaState L ) : int
MathLog ( LuaState L ) : int
MathLog10 ( LuaState L ) : int
MathMax ( LuaState L ) : int
MathModF ( LuaState L ) : int
MathPow ( LuaState L ) : int
MathRad ( LuaState L ) : int
MathRandom ( LuaState L ) : int
MathRandomSeed ( LuaState L ) : int
MathSin ( LuaState L ) : int
MathSinH ( LuaState L ) : int
MathSqrt ( LuaState L ) : int
MathTan ( LuaState L ) : int
MathTanH ( LuaState L ) : int
OSClock ( LuaState L ) : int
OSDate ( LuaState L ) : int
OSDiffTime ( LuaState L ) : int
OSExecute ( LuaState L ) : int
OSExit ( LuaState L ) : int
OSGetEnv ( LuaState L ) : int
OSPushResult ( LuaState L, int i, CharPtr filename ) : int
OSRemove ( LuaState L ) : int
OSRename ( LuaState L ) : int
OSSetLocale ( LuaState L ) : int
OSTime ( LuaState L ) : int
OSTmpName ( LuaState L ) : int
PropagateAll ( GlobalState g ) : uint
PropagateMark ( GlobalState g ) : Int32
ReallyMarkObject ( GlobalState g, GCObject o ) : void
RemarkUpVals ( GlobalState g ) : void
RemoveEntry ( Node n ) : void
SetBoolField ( LuaState L, CharPtr key, int value ) : void
SetField ( LuaState L, CharPtr key, int value ) : void
SingleStep ( LuaState L ) : Int32
StrFTimeAdd ( CharPtr str, CharPtr pt, CharPtr ptlim ) : CharPtr
StrFTimeFmt ( CharPtr baseFormat, DateTime t, CharPtr pt, CharPtr ptlim ) : CharPtr
SweepList ( LuaState L, GCObjectRef p, UInt32 count ) : GCObjectRef
TraverseClosure ( GlobalState g, Closure cl ) : void
TraverseProto ( GlobalState g, Proto f ) : void
TraverseStack ( GlobalState g, LuaState l ) : void
TraverseTable ( GlobalState g, Table h ) : int
strftime ( CharPtr s, uint maxsize, CharPtr format, DateTime t ) : uint

Method Details

Bit2Mask() public static method

public static Bit2Mask ( int b1, int b2 ) : int
b1 int
b2 int
return int

BitMask() public static method

public static BitMask ( int b ) : int
b int
return int

Black2Gray() public static method

public static Black2Gray ( GCObject x ) : void
x GCObject
return void

ChangeWhite() public static method

public static ChangeWhite ( GCObject x ) : void
x GCObject
return void

Gray2Black() public static method

public static Gray2Black ( GCObject x ) : void
x GCObject
return void

IsBlack() public static method

public static IsBlack ( GCObject x ) : bool
x GCObject
return bool

IsDead() public static method

public static IsDead ( GlobalState g, GCObject v ) : bool
g GlobalState
v GCObject
return bool

IsFinalized() public static method

public static IsFinalized ( UdataUV u ) : bool
u UdataUV
return bool

IsGray() public static method

public static IsGray ( GCObject x ) : bool
x GCObject
return bool

IsWhite() public static method

public static IsWhite ( GCObject x ) : bool
x GCObject
return bool

LSetBit() public static method

public static LSetBit ( Byte &x, int b ) : int
x System.Byte
b int
return int

LuaCBarrier() public static method

public static LuaCBarrier ( LuaState L, object p, Lua.LuaTypeValue v ) : void
L LuaState
p object
v Lua.LuaTypeValue
return void

LuaCBarrierBack() public static method

public static LuaCBarrierBack ( LuaState L, Table t ) : void
L LuaState
t Table
return void

LuaCBarrierF() public static method

public static LuaCBarrierF ( LuaState L, GCObject o, GCObject v ) : void
L LuaState
o GCObject
v GCObject
return void

LuaCBarrierT() public static method

public static LuaCBarrierT ( LuaState L, Table t, Lua.LuaTypeValue v ) : void
L LuaState
t Table
v Lua.LuaTypeValue
return void

LuaCCallGCTM() public static method

public static LuaCCallGCTM ( LuaState L ) : void
L LuaState
return void

LuaCCheckGC() public static method

public static LuaCCheckGC ( LuaState L ) : void
L LuaState
return void

LuaCFreeAll() public static method

public static LuaCFreeAll ( LuaState L ) : void
L LuaState
return void

LuaCFullGC() public static method

public static LuaCFullGC ( LuaState L ) : void
L LuaState
return void

LuaCLink() public static method

public static LuaCLink ( LuaState L, GCObject o, Byte tt ) : void
L LuaState
o GCObject
tt System.Byte
return void

LuaCLinkUpVal() public static method

public static LuaCLinkUpVal ( LuaState L, UpVal uv ) : void
L LuaState
uv UpVal
return void

LuaCObjBarrier() public static method

public static LuaCObjBarrier ( LuaState L, object p, object o ) : void
L LuaState
p object
o object
return void

LuaCObjBarrierT() public static method

public static LuaCObjBarrierT ( LuaState L, Table t, object o ) : void
L LuaState
t Table
o object
return void

LuaCStep() public static method

public static LuaCStep ( LuaState L ) : void
L LuaState
return void

LuaCWhite() public static method

public static LuaCWhite ( GlobalState g ) : byte
g GlobalState
return byte

LuaGetGCCount() public static method

public static LuaGetGCCount ( LuaState L ) : int
L LuaState
return int

LuaGetGlobal() public static method

public static LuaGetGlobal ( LuaState L, CharPtr s ) : void
L LuaState
s CharPtr
return void

LuaGetRegistry() public static method

public static LuaGetRegistry ( LuaState L ) : void
L LuaState
return void

LuaIsBoolean() public static method

public static LuaIsBoolean ( LuaState L, int n ) : bool
L LuaState
n int
return bool

LuaIsFunction() public static method

public static LuaIsFunction ( LuaState L, int n ) : bool
L LuaState
n int
return bool

LuaIsLightUserData() public static method

public static LuaIsLightUserData ( LuaState L, int n ) : bool
L LuaState
n int
return bool

LuaIsNil() public static method

public static LuaIsNil ( LuaState L, int n ) : bool
L LuaState
n int
return bool

LuaIsNone() public static method

public static LuaIsNone ( LuaState L, int n ) : bool
L LuaState
n int
return bool

LuaIsNoneOrNil() public static method

public static LuaIsNoneOrNil ( LuaState L, Double n ) : bool
L LuaState
n Double
return bool

LuaIsTable() public static method

public static LuaIsTable ( LuaState L, int n ) : bool
L LuaState
n int
return bool

LuaIsThread() public static method

public static LuaIsThread ( LuaState L, int n ) : bool
L LuaState
n int
return bool

LuaNewTable() public static method

public static LuaNewTable ( LuaState L ) : void
L LuaState
return void

LuaOpen() public static method

public static LuaOpen ( ) : LuaState
return LuaState

LuaOpenMath() public static method

public static LuaOpenMath ( LuaState L ) : int
L LuaState
return int

LuaOpenOS() public static method

public static LuaOpenOS ( LuaState L ) : int
L LuaState
return int

LuaPop() public static method

public static LuaPop ( LuaState L, int n ) : void
L LuaState
n int
return void

LuaPushCFunction() public static method

public static LuaPushCFunction ( LuaState L, LuaNativeFunction f ) : void
L LuaState
f LuaNativeFunction
return void

LuaPushLiteral() public static method

public static LuaPushLiteral ( LuaState L, CharPtr s ) : void
L LuaState
s CharPtr
return void

LuaRegister() public static method

public static LuaRegister ( LuaState L, CharPtr n, LuaNativeFunction f ) : void
L LuaState
n CharPtr
f LuaNativeFunction
return void

LuaSetGlobal() public static method

public static LuaSetGlobal ( LuaState L, CharPtr s ) : void
L LuaState
s CharPtr
return void

LuaToString() public static method

public static LuaToString ( LuaState L, int i ) : CharPtr
L LuaState
i int
return CharPtr

LuaUpValueIndex() public static method

public static LuaUpValueIndex ( int i ) : int
i int
return int

MakeWhite() public static method

public static MakeWhite ( GlobalState g, GCObject x ) : void
g GlobalState
x GCObject
return void

MarkFinalized() public static method

public static MarkFinalized ( UdataUV u ) : void
u UdataUV
return void

MarkObject() public static method

public static MarkObject ( GlobalState g, object t ) : void
g GlobalState
t object
return void

MarkValue() public static method

public static MarkValue ( GlobalState g, Lua.LuaTypeValue o ) : void
g GlobalState
o Lua.LuaTypeValue
return void

OtherWhite() public static method

public static OtherWhite ( GlobalState g ) : int
g GlobalState
return int

Reset2Bits() public static method

public static Reset2Bits ( Byte &x, int b1, int b2 ) : int
x System.Byte
b1 int
b2 int
return int

ResetBit() public static method

public static ResetBit ( Byte &x, int b ) : int
x System.Byte
b int
return int

ResetBits() public static method

public static ResetBits ( Byte &x, int m ) : int
x System.Byte
m int
return int

Set2Bits() public static method

public static Set2Bits ( Byte &x, int b1, int b2 ) : int
x System.Byte
b1 int
b2 int
return int

SetBits() public static method

public static SetBits ( Byte &x, int m ) : int
x System.Byte
m int
return int

SetThreshold() public static method

public static SetThreshold ( GlobalState g ) : void
g GlobalState
return void

StringMark() public static method

public static StringMark ( TString s ) : void
s TString
return void

SweepWholeList() public static method

public static SweepWholeList ( LuaState L, GCObjectRef p ) : void
L LuaState
p GCObjectRef
return void

Test2Bits() public static method

public static Test2Bits ( Byte x, int b1, int b2 ) : bool
x System.Byte
b1 int
b2 int
return bool

TestBit() public static method

public static TestBit ( Byte x, int b ) : bool
x System.Byte
b int
return bool

TestBits() public static method

public static TestBits ( Byte x, int m ) : bool
x System.Byte
m int
return bool

ValIsWhite() public static method

public static ValIsWhite ( Lua.LuaTypeValue x ) : bool
x Lua.LuaTypeValue
return bool

White2Gray() public static method

public static White2Gray ( GCObject x ) : void
x GCObject
return void

Property Details

KEYWEAK public static property

public static int KEYWEAK
return int

VALUEWEAK public static property

public static int VALUEWEAK
return int

WHITEBITS public static property

public static int WHITEBITS
return int

maskmarks public static property

public static byte maskmarks
return byte