dart_lua_ffi library Null safety

Support for doing something awesome.

More dartdocs go here.

Classes

LuaFFI

Constants

LUA_ERRERR → const int
运行消息处理程序时出错
5
LUA_ERRMEM → const int
内存分配错误 对于此类错误Lua 不会调用消息处理程序 (4)
4
LUA_ERRRUN → const int
运行时错误 (2)
2
LUA_ERRSYNTAX → const int
预编译期间的语法错误 (3)
3
LUA_MULTRET → const int
(0)
0
LUA_OK → const int
没有错误 (0)
0
LUA_YIELD → const int
线程(协程)产生 (1)
1
NULL → const int
is number zero (0)
0

Properties

C_NULL_POINTER Pointer<Uint32>
final

Typedefs

LuaGetGlobal = void Function(Pointer<NativeType>, Pointer<Utf8>)
LuaGetGlobalFunc = NativeFunction<Void Function(Pointer<NativeType>, Pointer<Utf8>)>
LuaLLoadString = int Function(Pointer<NativeType>, Pointer<Utf8>)
LuaLLoadStringFunc = NativeFunction<Uint32 Function(Pointer<NativeType>, Pointer<Utf8>)>
LuaLoadFile = int Function(Pointer<NativeType>, Pointer<Utf8>, int)
LuaLoadFileFunc = NativeFunction<Uint32 Function(Pointer<NativeType>, Pointer<Utf8>, Uint32)>
LuaNewState = Pointer<NativeType> Function()
LuaNewStateFunc = NativeFunction<Pointer<NativeType> Function()>
开头大写 后缀带 Func 是 ffi 对应的函数类型 不带 Func 是对应的 dart 函数类型
LuaOpenLibs = void Function(Pointer<NativeType>)
LuaOpenLibsFunc = NativeFunction<Void Function(Pointer<NativeType>)>
LuaPcallK = int Function(Pointer<NativeType>, int, int, int, int, int)
LuaPcallKFunc = NativeFunction<Uint32 Function(Pointer<NativeType>, Uint32, Uint32, Uint32, Uint32, Uint32)>
LuaPushNumber = void Function(Pointer<NativeType>, double)
LuaPushNumberFunc = NativeFunction<Void Function(Pointer<NativeType>, Double)>
LuaPushString = void Function(Pointer<NativeType>, Pointer<Utf8>)
LuaPushStringFunc = NativeFunction<Void Function(Pointer<NativeType>, Pointer<Utf8>)>
LuaPushThread = int Function(Pointer<NativeType>)
LuaPushThreadFunc = NativeFunction<Uint32 Function(Pointer<NativeType>)>
LuaRemove = void Function(Pointer<NativeType>, int)
LuaRemoveFunc = NativeFunction<Void Function(Pointer<NativeType>, Uint32)>
LuaSetGlobal = void Function(Pointer<NativeType>, Pointer<Utf8>)
LuaSetGlobalFunc = NativeFunction<Void Function(Pointer<NativeType>, Pointer<Utf8>)>
LuaSetTop = void Function(Pointer<NativeType>, int)
LuaSetTopFunc = NativeFunction<Void Function(Pointer<NativeType>, Uint32)>
LuaToBoolean = int Function(Pointer<NativeType>, int)
LuaToBooleanFunc = NativeFunction<Uint32 Function(Pointer<NativeType>, Uint32)>
LuaToInteger = int Function(Pointer<NativeType>, int)
LuaToIntegerFunc = NativeFunction<Uint64 Function(Pointer<NativeType>, Uint32)>
LuaToNumberX = double Function(Pointer<NativeType>, int, Pointer<Uint32>)
LuaToNumberXFunc = NativeFunction<Double Function(Pointer<NativeType>, Uint32, Pointer<Uint32>)>
LuaToPointer = Pointer<NativeType> Function(Pointer<NativeType>, int)
LuaToPointerFunc = NativeFunction<Pointer<NativeType> Function(Pointer<NativeType>, Uint32)>
LuaToString = Pointer<Utf8> Function(Pointer<NativeType>, int)
LuaToStringFunc = NativeFunction<Pointer<Utf8> Function(Pointer<NativeType>, Uint32)>