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.



225
226
227
228
# File 'lib/libusb/transfer.rb', line 225

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

Instance Method Details

#actual_lengthObject



241
242
243
# File 'lib/libusb/transfer.rb', line 241

def actual_length
  @packet[:actual_length]
end

#lengthObject



234
235
236
# File 'lib/libusb/transfer.rb', line 234

def length
  @packet[:length]
end

#length=(len) ⇒ Object



237
238
239
# File 'lib/libusb/transfer.rb', line 237

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

#statusObject



230
231
232
# File 'lib/libusb/transfer.rb', line 230

def status
  @packet[:status]
end