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

Write() protected method

Write an output report to the device.
protected Write ( OutputReport oOutRep ) : void
oOutRep OutputReport Output report to write
return void
        protected void Write(OutputReport oOutRep)
        {
            try
            {
                m_oFile.Write(oOutRep.Buffer, 0, oOutRep.BufferLength);
            }
            catch (IOException ex)
            {
                Utilities.OnError(Utilities.GetCurrentMethod(), ex);
                // The device was removed!
                throw new HIDDeviceException("Device was removed");
            }
        }