![]() | PipeStreamWriteUseShortPacket Property |
Namespace: WinUsbNet
true if a short packet will be used; otherwise false.
Exception | Condition |
---|---|
NotSupportedException | The PipeStream does not support writing. |
This property only has an affect when the number of bytes transferred by the Write method happens to equal a multiple of WriteMaxPacketSize, the maximum packet size for the USB endpoint. In that case, if the WriteUseShortPacket property is true, then a zero-length packet will be sent after the data.
If the WriteUseShortPacket property is false, then a zero-length packet will never be added.