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.
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_length ⇒ Object
241 242 243 |
# File 'lib/libusb/transfer.rb', line 241 def actual_length @packet[:actual_length] end |
#length ⇒ Object
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 |
#status ⇒ Object
230 231 232 |
# File 'lib/libusb/transfer.rb', line 230 def status @packet[:status] end |