Class: LIBUSB::IsoPacket

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

Instance Method Summary (collapse)

Constructor Details

- (IsoPacket) initialize(ptr, pkg_nr)

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

- (Object) actual_length



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

def actual_length
  @packet[:actual_length]
end

- (Object) length



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

def length
  @packet[:length]
end

- (Object) length=(len)



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

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

- (Object) status



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

def status
  @packet[:status]
end