LibUsbDotNet 2.2.8
GetDescriptor Method (descriptorType, index, langId, buffer, bufferLength, transferLength)
Library Reference ► LibUsbDotNet.LudnMonoLibUsb ► MonoUsbDevice ► GetDescriptor(Byte, Byte, Int16, IntPtr, Int32, Int32%)
|
Gets a descriptor from the device. See DescriptorType for more information.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public override bool GetDescriptor( byte descriptorType, byte index, short langId, IntPtr buffer, int bufferLength, out int transferLength )
Public Overrides Function GetDescriptor ( _ descriptorType As Byte, _ index As Byte, _ langId As Short, _ buffer As IntPtr, _ bufferLength As Integer, _ <OutAttribute> ByRef transferLength As Integer _ ) As Boolean
public: virtual bool GetDescriptor( unsigned char descriptorType, unsigned char index, short langId, IntPtr buffer, int bufferLength, [OutAttribute] int% transferLength ) override
Parameters
- descriptorType (Byte)
- The descriptor type ID to retrieve; this is usually one of the DescriptorType enumerations.
- index (Byte)
- Descriptor index.
- langId (Int16)
- Descriptor language id.
- buffer (IntPtr)
- Memory to store the returned descriptor in.
- bufferLength (Int32)
- Length of the buffer parameter in bytes.
- transferLength (Int32%)
- The number of bytes transferred to buffer upon success.
Return Value
True on success.