static int _m_BeginRead(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.IO.FileStream gen_to_be_invoked = (System.IO.FileStream)translator.FastGetCSObj(L, 1); { byte[] _array = LuaAPI.lua_tobytes(L, 2); int _offset = LuaAPI.xlua_tointeger(L, 3); int _numBytes = LuaAPI.xlua_tointeger(L, 4); System.AsyncCallback _userCallback = translator.GetDelegate <System.AsyncCallback>(L, 5); object _stateObject = translator.GetObject(L, 6, typeof(object)); System.IAsyncResult gen_ret = gen_to_be_invoked.BeginRead(_array, _offset, _numBytes, _userCallback, _stateObject); translator.PushAny(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state) { return(InternalFileStream.BeginRead(buffer, offset, count, callback, state)); }