LitDev.Engines.HIDDevice.BeginAsyncRead C# (CSharp) Method

BeginAsyncRead() private method

Kicks off an asynchronous read which completes when data is read or when the device is disconnected. Uses a callback.
private BeginAsyncRead ( ) : void
return void
        private void BeginAsyncRead()
        {
            byte[] arrInputReport = new byte[m_nInputReportLength];
            // put the buff we used to receive the stuff as the async state then we can get at it when the read completes
            m_oFile.BeginRead(arrInputReport, 0, m_nInputReportLength, new AsyncCallback(ReadCompleted), arrInputReport);
        }