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.
320 321 322 323 |
# File 'lib/libusb/transfer.rb', line 320 def initialize(ptr, pkg_nr) @packet = Call::IsoPacketDescriptor.new ptr @pkg_nr = pkg_nr end |
Instance Method Details
#actual_length ⇒ Object
336 337 338 |
# File 'lib/libusb/transfer.rb', line 336 def actual_length @packet[:actual_length] end |
#length ⇒ Object
329 330 331 |
# File 'lib/libusb/transfer.rb', line 329 def length @packet[:length] end |
#length=(len) ⇒ Object
332 333 334 |
# File 'lib/libusb/transfer.rb', line 332 def length=(len) @packet[:length] = len end |
#status ⇒ Object
325 326 327 |
# File 'lib/libusb/transfer.rb', line 325 def status @packet[:status] end |