GenericTransferInfo constructor
GenericTransferInfo({
- required Direction direction,
- required int endpoint,
- int? length,
- ByteBuffer? data,
- int? timeout,
Implementation
GenericTransferInfo({
/// The transfer direction (`"in"` or `"out"`).
required Direction direction,
/// The target endpoint address. The interface containing this endpoint must
/// be claimed.
required int endpoint,
/// The maximum number of bytes to receive (required only by input
/// transfers).
int? length,
/// The data to transmit (required only by output transfers).
ByteBuffer? data,
/// Request timeout (in milliseconds). The default value `0`
/// indicates no timeout.
int? timeout,
}) : _wrapped = $js.GenericTransferInfo(
direction: direction.toJS,
endpoint: endpoint,
length: length,
data: data?.toJS,
timeout: timeout,
);