protected TElement[] EndGetArray <TElement>(IAsyncResult ar) where TElement : struct { return(DeviceIO.EndGetArray <TElement>(ar)); }
protected TElement[] GetArray <TElement>(DeviceControlCode deviceControlCode, Object inBuffer, Int32 maxElements) where TElement : struct { return(DeviceIO.GetArray <TElement>(m_device, deviceControlCode, inBuffer, maxElements)); }
protected IAsyncResult BeginGetArray <TElement>(DeviceControlCode deviceControlCode, Object inBuffer, Int32 maxElements, AsyncCallback asyncCallback, Object state) where TElement : struct { return(DeviceIO.BeginGetArray <TElement>(m_device, deviceControlCode, inBuffer, maxElements, asyncCallback, state)); }
protected IAsyncResult BeginGetObject <TResult>(DeviceControlCode deviceControlCode, Object inBuffer, AsyncCallback asyncCallback, Object state) where TResult : new() { return(DeviceIO.BeginGetObject <TResult>(m_device, deviceControlCode, inBuffer, asyncCallback, state)); }
protected TResult EndGetObject <TResult>(IAsyncResult ar) where TResult : new() { return(DeviceIO.EndGetObject <TResult>(ar)); }
protected TResult GetObject <TResult>(DeviceControlCode deviceControlCode) where TResult : new() { return(DeviceIO.GetObject <TResult>(m_device, deviceControlCode, null)); }
protected TResult GetObject <TResult>(DeviceControlCode deviceControlCode, Object inBuffer) where TResult : new() { return(DeviceIO.GetObject <TResult>(m_device, deviceControlCode, inBuffer)); }
protected void EndControl(IAsyncResult result) { DeviceIO.EndControl(result); }
protected IAsyncResult BeginControl(DeviceControlCode deviceControlCode, Object inBuffer, AsyncCallback asyncCallback, Object state) { return(DeviceIO.BeginControl(m_device, deviceControlCode, inBuffer, asyncCallback, state)); }
protected void Control(DeviceControlCode deviceControlCode, Object inBuffer) { DeviceIO.Control(m_device, deviceControlCode, inBuffer); }
protected void Control(DeviceControlCode deviceControlCode) { DeviceIO.Control(m_device, deviceControlCode); }
private SafeFileHandle m_device; // Device driver handle #region Protected Constructors and Public Dispose protected DeviceIOInfo(String deviceName, FileAccess access, FileShare share, Boolean useAsync) { m_device = DeviceIO.OpenDevice(deviceName, access, share, useAsync); }