Class Transfer

Represents a USB transfer

Constructors

Methods

Constructors

Methods

  • Cancel the transfer.

    Returns true if the transfer was canceled, false if it wasn't in pending state.

    Returns boolean

  • (Re-)submit the transfer.

    Parameters

    • buffer: Buffer

      Buffer where data will be written (for IN transfers) or read from (for OUT transfers).

    • Optionalcallback: ((error: undefined | LibUSBException, buffer: Buffer, actualLength: number) => void)
        • (error, buffer, actualLength): void
        • Parameters

          Returns void

    Returns Transfer