コード例 #1
0
        static int _m_Seek(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                MongoDB.Bson.IO.BsonStreamAdapter gen_to_be_invoked = (MongoDB.Bson.IO.BsonStreamAdapter)translator.FastGetCSObj(L, 1);



                {
                    long _offset = LuaAPI.lua_toint64(L, 2);
                    System.IO.SeekOrigin _origin; translator.Get(L, 3, out _origin);

                    long gen_ret = gen_to_be_invoked.Seek(_offset, _origin);
                    LuaAPI.lua_pushint64(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }