コード例 #1
0
ファイル: Ptr32RateCounter.cs プロジェクト: tempbottle/INCC6
        /// <summary>
        /// Initializes a new instance of the <see cref="Ptr32RateCounter"/> class.
        /// </summary>
        /// <param name="device">The <see cref="Ptr32"/> device from which to take measurements.</param>
        /// <exception cref="ArgumentNullException"><paramref name="device"/> is <c>null</c>.</exception>
        public Ptr32RateCounter(Ptr32 device)
        {
            if (device == null) {
                throw new ArgumentNullException("device");
            }

            m_device = device;
            m_parser = new Ptr32Parser(Analyze);
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Ptr32RateCounter"/> class.
        /// </summary>
        /// <param name="device">The <see cref="Ptr32"/> device from which to take measurements.</param>
        /// <exception cref="ArgumentNullException"><paramref name="device"/> is <c>null</c>.</exception>
        public Ptr32RateCounter(Ptr32 device)
        {
            if (device == null)
            {
                throw new ArgumentNullException("device");
            }

            m_device = device;
            m_parser = new Ptr32Parser(Analyze);
        }
コード例 #3
0
 /// <summary>
 /// Initializes an new instance of the <see cref="Ptr32ProcessingState"/> class.
 /// </summary>
 public Ptr32ProcessingState()
 {
     InitParseBuffers(1, 4, false);
     m_parser = new Ptr32Parser(Analyze);
     m_writingFile = CentralizedState.App.AppContext.LiveFileWrite;
 }