LibUsbDotNet 2.2.8
Read Method (buffer, offset, count, timeout, transferLength)
Library Reference ► LibUsbDotNet ► UsbEndpointReader ► Read(IntPtr, Int32, Int32, Int32, Int32%)
|
Reads data from the current UsbEndpointReader.
Declaration Syntax
C# | Visual Basic | Visual C++ |
Parameters
- buffer (IntPtr)
- The buffer to store the recieved data in.
- offset (Int32)
- The position in buffer to start storing the data.
- count (Int32)
- The maximum number of bytes to receive.
- timeout (Int32)
- Maximum time to wait for the transfer to complete. If the transfer times out, the IO operation will be cancelled.
- transferLength (Int32%)
- Number of bytes actually transferred.