例如:
调用
[DllImport("winusb.dll")]
WinUsb_ReadPipe(IntPtr InterfaceHandle, Byte PipeID,
ref Byte Buffer, UInt32 BufferLength, ref UInt32 LengthTransferred, IntPtr
Overlapped)
后,LengthTransferred的值就是bulk in
pipe中缓存数据的长度,但是调用这个方法的话,会把所有缓存的数据都读取出来了。我想知道如何取得WinUSB bulk in
pipe缓存数据的长度,而不会清空掉缓存的数据。
谢谢。