CORE-POS/IS4C

View on GitHub
pos/is4c-nf/scale-drivers/drivers/NewMagellan/HidSharp/Platform/Libusb/NativeMethods.cs

Summary

Maintainability
C
1 day
Test Coverage

Class NativeMethods has 31 methods (exceeds 20 allowed). Consider refactoring.
Open

    static class NativeMethods
    {
        const string Libusb = "libusb-1.0";
        
        public struct DeviceDescriptor

    Method libusb_control_transfer has 8 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            public static extern Error libusb_control_transfer(IntPtr deviceHandle,
                                                               byte bmRequestType, byte bRequest,
                                                               ushort wValue, ushort wIndex,
                                                               byte[] data, ushort wLength,
                                                               uint timeout);

      Method libusb_get_descriptor_core has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              static Error libusb_get_descriptor_core(IntPtr deviceHandle, DescriptorType type, byte index, byte[] data, ushort wLength, ushort wIndex)

        Method libusb_get_string_descriptor has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                public static Error libusb_get_string_descriptor(IntPtr deviceHandle, DescriptorType type, byte index, ushort languageID, byte[] data, ushort wLength)

          Method libusb_bulk_transfer has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  public static extern Error libusb_bulk_transfer(IntPtr deviceHandle,
                                                                   byte endpoint,
                                                                   byte[] data, int length,
                                                                   out int transferred,
                                                                   uint timeout);

            Method libusb_interrupt_transfer has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                    public static extern Error libusb_interrupt_transfer(IntPtr deviceHandle,
                                                                            byte endpoint,
                                                                            byte[] data, int length,
                                                                            out int transferred,
                                                                            uint timeout);

              Method libusb_get_descriptor has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                      public static Error libusb_get_descriptor(IntPtr deviceHandle, DescriptorType type, byte index, byte[] data, ushort wLength)

                There are no issues that match your filters.

                Category
                Status