Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

WinUsb_WritePipeAsync: Use ReadOnlyMemory<byte> instead of Memory<byte> #585

Merged
merged 1 commit into from
Sep 28, 2021
Merged

WinUsb_WritePipeAsync: Use ReadOnlyMemory<byte> instead of Memory<byte> #585

merged 1 commit into from
Sep 28, 2021

Conversation

qmfrederik
Copy link
Contributor

WinUsb_WritePipe sends the data to the USB device, and does not change the contents of the buffer. Changing the API signature makes it implement WriteAsync in a Stream subclass which wraps around the WinUsb API.

WinUsb_WritePipe sends the data to the USB device, and does not change the contents of the buffer. Changing the API signature makes it implement WriteAsync in a Stream subclass which wraps around the WinUsb API.
@AArnott AArnott merged commit 891ad63 into dotnet:master Sep 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants