static int Close(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); VisowFrameWork.ByteBuffer obj = (VisowFrameWork.ByteBuffer)ToLua.CheckObject <VisowFrameWork.ByteBuffer>(L, 1); obj.Close(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
/// <summary> /// 发送消息 /// </summary> public void SendMessage(ByteBuffer buffer) { SessionSend(buffer.ToBytes()); buffer.Close(); }