Uh oh!
There was an error while loading. Please reload this page.
add Memory<byte> support in SendPacketElements and SendPacketsAsync - #46975
Conversation
ghost
commented
Jan 14, 2021
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
ghost
commented
Jan 14, 2021
Tagging subscribers to this area: @dotnet/ncl Issue DetailsFixes #45267 @antonfirsov@stephentoub @dotnet/ncl
|
geoffkizer
commented
Jan 14, 2021
/azp run runtime-libraries-coreclr outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
antonfirsov
left a comment
There was a problem hiding this comment.
A few concerns regarding tests, otherwise looks good.
I would add at least one test that uses NativeMemoryManager to wrap an actual pointer into ReadOnlyMemory<byte> & apply custom some offset + length there to stress that behavior too.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…cketsElement.cs Co-authored-by: Stephen Toub <stoub@microsoft.com>
geoffkizer
commented
Jan 15, 2021
There are also a bunch of tests marked as [Outerloop] that don't need to be, as far as I can tell. Will remove this. |
geoffkizer
commented
Jan 15, 2021
Feedback addressed. Please take a look. |
geoffkizer
commented
Jan 15, 2021
/azp run runtime-libraries-coreclr outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
| return new ElementWithMemoryManager(new SendPacketsElement(memoryManager.Memory.Slice(offset, count)), memoryManager); | ||
| } | ||
| private static ElementWithMemoryManager CreateElementForBuffer(BufferType bufferType, int size) => |
Fixes#45267
@antonfirsov@stephentoub @dotnet/ncl