Class: LIBUSB::Bos::DeviceCapability
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- LIBUSB::Bos::DeviceCapability
- Includes:
- GenericMethods
- Defined in:
- lib/libusb/bos.rb
Overview
A generic representation of a BOS Device Capability descriptor.
Instance Method Summary collapse
-
#initialize(bos, *args) ⇒ DeviceCapability
constructor
A new instance of DeviceCapability.
Methods included from GenericMethods
#bDescriptorType, #bDevCapabilityType, #bLength, #dev_capability_data, #inspect
Constructor Details
#initialize(bos, *args) ⇒ DeviceCapability
Returns a new instance of DeviceCapability.
59 60 61 62 63 |
# File 'lib/libusb/bos.rb', line 59 def initialize( bos, *args) # Avoid that the bos struct is GC'ed before this instance @bos = bos super(*args) end |