LibUsbDotNet 2.2.8
SetData Method (data, offset, length)
Library Reference ► MonoLibUsb.Transfer ► MonoUsbControlSetup ► SetData(Object, Int32, Int32)
|
Copies data into PtrData.
Declaration Syntax
Parameters
- data (Object)
Data buffer to copy into PtrDatafor an output control transfer.
This value can be:- An Array of bytes or other blittable types.
- An already allocated, pinned GCHandle. In this case AddrOfPinnedObject()()()() is used for the buffer address.
- An IntPtr.
- offset (Int32)
- The offset in data to begin copying.
- length (Int32)
- Number of to copy.