LibUsbDotNet 2.2.8
Write Method (buffer, offset, count, timeout, transferLength)
Library Reference ► LibUsbDotNet ► UsbEndpointWriter ► Write(array<Byte>[]()[][], Int32, Int32, Int32, Int32%)
|
Writes data to the current UsbEndpointWriter.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual ErrorCode Write( byte[] buffer, int offset, int count, int timeout, out int transferLength )
Public Overridable Function Write ( _ buffer As Byte(), _ offset As Integer, _ count As Integer, _ timeout As Integer, _ <OutAttribute> ByRef transferLength As Integer _ ) As ErrorCode
public: virtual ErrorCode Write( array<unsigned char>^ buffer, int offset, int count, int timeout, [OutAttribute] int% transferLength )
Parameters
- buffer (array<Byte>[]()[][])
- The buffer storing the data to write.
- offset (Int32)
- The position in buffer to start writing the data from.
- count (Int32)
- The number of bytes to write.
- 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.