Class: LIBUSB::Bos::DeviceCapability

Inherits:
FFI::Struct
  • Object
show all
Includes:
GenericMethods
Defined in:
lib/libusb/bos.rb

Overview

A generic representation of a BOS Device Capability descriptor.

Instance Method Summary collapse

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