C# Class LibUsbDotNet.Internal.TransferContextBase

Inheritance: IDisposable
显示文件 Open project: arvydas/BlinkStickDotNet Class Usage Examples

Protected Properties

Property Type Description
mHasWaitBeenCalled bool
mOriginalCount int
mOriginalOffset int
mTimeout int
mTransferCancelEvent System.Threading.ManualResetEvent
mTransferCompleteEvent System.Threading.ManualResetEvent

Public Methods

Method Description
Cancel ( ) : ErrorCode
Dispose ( ) : void
Fill ( IntPtr buffer, int offset, int count, int timeout ) : void
Fill ( object buffer, int offset, int count, int timeout ) : void
IncrementTransfer ( int amount ) : bool
Reset ( ) : void
Submit ( ) : ErrorCode
Wait ( int &transferredCount ) : ErrorCode

Protected Methods

Method Description
IncFailRetries ( ) : void
TransferContextBase ( UsbEndpointBase endpointBase ) : System

Private Methods

Method Description
SyncTransfer ( TransferContextBase transferContext, IntPtr buffer, int offset, int length, int timeout, int &transferLength ) : ErrorCode

Method Details

Cancel() public method

public Cancel ( ) : ErrorCode
return ErrorCode

Dispose() public method

public Dispose ( ) : void
return void

Fill() public method

public Fill ( IntPtr buffer, int offset, int count, int timeout ) : void
buffer System.IntPtr
offset int
count int
timeout int
return void

Fill() public method

public Fill ( object buffer, int offset, int count, int timeout ) : void
buffer object
offset int
count int
timeout int
return void

IncFailRetries() protected method

protected IncFailRetries ( ) : void
return void

IncrementTransfer() public method

public IncrementTransfer ( int amount ) : bool
amount int
return bool

Reset() public method

public Reset ( ) : void
return void

Submit() public abstract method

public abstract Submit ( ) : ErrorCode
return ErrorCode

TransferContextBase() protected method

protected TransferContextBase ( UsbEndpointBase endpointBase ) : System
endpointBase LibUsbDotNet.Main.UsbEndpointBase
return System

Wait() public abstract method

public abstract Wait ( int &transferredCount ) : ErrorCode
transferredCount int
return ErrorCode

Property Details

mHasWaitBeenCalled protected_oe property

protected bool mHasWaitBeenCalled
return bool

mOriginalCount protected_oe property

protected int mOriginalCount
return int

mOriginalOffset protected_oe property

protected int mOriginalOffset
return int

mTimeout protected_oe property

protected int mTimeout
return int

mTransferCancelEvent protected_oe property

protected ManualResetEvent,System.Threading mTransferCancelEvent
return System.Threading.ManualResetEvent

mTransferCompleteEvent protected_oe property

protected ManualResetEvent,System.Threading mTransferCompleteEvent
return System.Threading.ManualResetEvent