Class: LIBUSB::IsoPacket

Inherits:
Object
  • Object
show all
Defined in:
lib/libusb/transfer.rb

Instance Method Summary collapse

Constructor Details

#initialize(ptr, pkg_nr) ⇒ IsoPacket

Returns a new instance of IsoPacket.


353
354
355
356
# File 'lib/libusb/transfer.rb', line 353

def initialize(ptr, pkg_nr)
  @packet = Call::IsoPacketDescriptor.new ptr
  @pkg_nr = pkg_nr
end

Instance Method Details

#actual_lengthObject


369
370
371
# File 'lib/libusb/transfer.rb', line 369

def actual_length
  @packet[:actual_length]
end

#lengthObject


362
363
364
# File 'lib/libusb/transfer.rb', line 362

def length
  @packet[:length]
end

#length=(len) ⇒ Object


365
366
367
# File 'lib/libusb/transfer.rb', line 365

def length=(len)
  @packet[:length] = len
end

#statusObject


358
359
360
# File 'lib/libusb/transfer.rb', line 358

def status
  @packet[:status]
end