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

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

Merged
AArnott merged 1 commit into
dotnet:masterfrom
qmfrederik:features/winusb-writepipe-readonlymemory
Sep 28, 2021
Merged

AArnott merged 1 commit into
dotnet:masterfrom
qmfrederik:features/winusb-writepipe-readonlymemory

Conversation

@qmfrederik

Copy link
Copy Markdown
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