Module: LIBUSB::Bos::GenericMethods

Instance Method Summary collapse

Instance Method Details

#bDescriptorTypeInteger

in this context.



32
33
34
# File 'lib/libusb/bos.rb', line 32

def bDescriptorType
  self[:bDescriptorType]
end

#bDevCapabilityTypeInteger



37
38
39
# File 'lib/libusb/bos.rb', line 37

def bDevCapabilityType
  self[:bDevCapabilityType]
end

#bLengthInteger



26
27
28
# File 'lib/libusb/bos.rb', line 26

def bLength
  self[:bLength]
end

#dev_capability_dataString



46
47
48
# File 'lib/libusb/bos.rb', line 46

def dev_capability_data
  pointer.read_bytes(bLength - 3)
end

#inspectObject



41
42
43
# File 'lib/libusb/bos.rb', line 41

def inspect
  "\#<#{self.class} cap: #{bDevCapabilityType} data: #{dev_capability_data.unpack1("H*")}>"
end