Class: LIBUSB::IsoPacket
- Inherits:
-
Object
- Object
- LIBUSB::IsoPacket
- Defined in:
- lib/libusb/transfer.rb
Instance Method Summary collapse
- #actual_length ⇒ Object
-
#initialize(ptr, pkg_nr) ⇒ IsoPacket
constructor
A new instance of IsoPacket.
- #length ⇒ Object
- #length=(len) ⇒ Object
- #status ⇒ Object
Constructor Details
#initialize(ptr, pkg_nr) ⇒ IsoPacket
Returns a new instance of IsoPacket.
357 358 359 360 |
# File 'lib/libusb/transfer.rb', line 357 def initialize(ptr, pkg_nr) @packet = Call::IsoPacketDescriptor.new ptr @pkg_nr = pkg_nr end |
Instance Method Details
#actual_length ⇒ Object
373 374 375 |
# File 'lib/libusb/transfer.rb', line 373 def actual_length @packet[:actual_length] end |
#length ⇒ Object
366 367 368 |
# File 'lib/libusb/transfer.rb', line 366 def length @packet[:length] end |
#length=(len) ⇒ Object
369 370 371 |
# File 'lib/libusb/transfer.rb', line 369 def length=(len) @packet[:length] = len end |
#status ⇒ Object
362 363 364 |
# File 'lib/libusb/transfer.rb', line 362 def status @packet[:status] end |