public static void AddLString(LuaBufferPtr B, string s, int l) { LuaLDelegates.luaL_addlstring(B, s, l); }
public static void AddString(LuaBufferPtr B, string s) { LuaLDelegates.luaL_addstring(B, s); }
public static void BuffInit(LuaStatePtr l, LuaBufferPtr B) { LuaLDelegates.luaL_buffinit(l, B); }
public static sbyte[] PrepBufferSize(LuaBufferPtr B, int sz) { sbyte * bytes = LuaLDelegates.luaL_prepbuffsize(B, sz); sbyte[] result = new sbyte[sz]; for (; sz >= 0; --sz) { result[sz] = bytes[sz]; } return result; }
internal extern static sbyte *luaL_prepbuffsize(LuaBufferPtr B, int sz);
internal extern static sbyte *luaL_buffinitsize(LuaStatePtr l, LuaBufferPtr B, int sz);
internal extern static void luaL_addvalue(LuaBufferPtr B);
public static void PushResultSize(LuaBufferPtr B, int sz) { LuaLDelegates.luaL_pushresultsize(B, sz); }
internal extern static void luaL_addstring(LuaBufferPtr B, [MarshalAs(UnmanagedType.LPStr)] string s);
internal extern static void luaL_buffinit(LuaStatePtr l, LuaBufferPtr B);
public static void AddValue(LuaBufferPtr B) { LuaLDelegates.luaL_addvalue(B); }
internal extern static void luaL_pushresult(LuaBufferPtr B);
public static void PushResult(LuaBufferPtr B) { LuaLDelegates.luaL_pushresult(B); }
internal extern static void luaL_pushresultsize(LuaBufferPtr B, int sz);
public static sbyte[] BuffInitSize(LuaStatePtr l, LuaBufferPtr B, int sz) { sbyte * bytes = LuaLDelegates.luaL_buffinitsize(l, B, sz); sbyte[] result = new sbyte[sz]; for (; sz >= 0; --sz) { result[sz] = bytes[sz]; } return result; }