static int _m_ReadUndefined_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { MongoDB.Bson.IO.IBsonReader _reader = (MongoDB.Bson.IO.IBsonReader)translator.GetObject(L, 1, typeof(MongoDB.Bson.IO.IBsonReader)); string _name = LuaAPI.lua_tostring(L, 2); MongoDB.Bson.IO.IBsonReaderExtensions.ReadUndefined(_reader, _name); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_ReadRawBsonArray_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { MongoDB.Bson.IO.IBsonReader _reader = (MongoDB.Bson.IO.IBsonReader)translator.GetObject(L, 1, typeof(MongoDB.Bson.IO.IBsonReader)); string _name = LuaAPI.lua_tostring(L, 2); MongoDB.Bson.IO.IByteBuffer gen_ret = MongoDB.Bson.IO.IBsonReaderExtensions.ReadRawBsonArray(_reader, _name); translator.PushAny(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_CreateRoot_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && translator.Assignable <MongoDB.Bson.IO.IBsonReader>(L, 1) && translator.Assignable <System.Action <MongoDB.Bson.Serialization.BsonDeserializationContext.Builder> >(L, 2)) { MongoDB.Bson.IO.IBsonReader _reader = (MongoDB.Bson.IO.IBsonReader)translator.GetObject(L, 1, typeof(MongoDB.Bson.IO.IBsonReader)); System.Action <MongoDB.Bson.Serialization.BsonDeserializationContext.Builder> _configurator = translator.GetDelegate <System.Action <MongoDB.Bson.Serialization.BsonDeserializationContext.Builder> >(L, 2); MongoDB.Bson.Serialization.BsonDeserializationContext gen_ret = MongoDB.Bson.Serialization.BsonDeserializationContext.CreateRoot(_reader, _configurator); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 1 && translator.Assignable <MongoDB.Bson.IO.IBsonReader>(L, 1)) { MongoDB.Bson.IO.IBsonReader _reader = (MongoDB.Bson.IO.IBsonReader)translator.GetObject(L, 1, typeof(MongoDB.Bson.IO.IBsonReader)); MongoDB.Bson.Serialization.BsonDeserializationContext gen_ret = MongoDB.Bson.Serialization.BsonDeserializationContext.CreateRoot(_reader); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to MongoDB.Bson.Serialization.BsonDeserializationContext.CreateRoot!")); }
static int _m_ReadName_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 1 && translator.Assignable <MongoDB.Bson.IO.IBsonReader>(L, 1)) { MongoDB.Bson.IO.IBsonReader _reader = (MongoDB.Bson.IO.IBsonReader)translator.GetObject(L, 1, typeof(MongoDB.Bson.IO.IBsonReader)); string gen_ret = MongoDB.Bson.IO.IBsonReaderExtensions.ReadName(_reader); LuaAPI.lua_pushstring(L, gen_ret); return(1); } if (gen_param_count == 2 && translator.Assignable <MongoDB.Bson.IO.IBsonReader>(L, 1) && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { MongoDB.Bson.IO.IBsonReader _reader = (MongoDB.Bson.IO.IBsonReader)translator.GetObject(L, 1, typeof(MongoDB.Bson.IO.IBsonReader)); string _name = LuaAPI.lua_tostring(L, 2); MongoDB.Bson.IO.IBsonReaderExtensions.ReadName(_reader, _name); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to MongoDB.Bson.IO.IBsonReaderExtensions.ReadName!")); }