libusb_get_max_packet_size method

int libusb_get_max_packet_size(
  1. Pointer<libusb_device> dev,
  2. int endpoint
)

Implementation

int libusb_get_max_packet_size(
  ffi.Pointer<libusb_device> dev,
  int endpoint,
) {
  return (_libusb_get_max_packet_size ??= _dylib.lookupFunction<
      _c_libusb_get_max_packet_size,
      _dart_libusb_get_max_packet_size>('libusb_get_max_packet_size'))(
    dev,
    endpoint,
  );
}