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

Remove MemoryPool and fix System.Buffers version - #2086

Merged
joshfree merged 5 commits into
dotnet:masterfrom
ahsonkhan:RemoveMemoryPool
Jan 30, 2018
Merged

Remove MemoryPool and fix System.Buffers version#2086
joshfree merged 5 commits into
dotnet:masterfrom
ahsonkhan:RemoveMemoryPool

Conversation

@ahsonkhan

Copy link
Copy Markdown
Contributor

Fixes the issue in #2072 (comment) and supersedes it.

MemoryPool got added to S.M in corefx here: dotnet/corefx#26563

cc @KrzysztofCwalina, @pakrym, @joshfree, @dotnet/corefxlab-contrib

public override OwnedMemory<byte> Rent(int numberOfBytes = DefaultSize)
{
if (numberOfBytes == AnySize) numberOfBytes = DefaultSize;
if (numberOfBytes == -1) numberOfBytes = DefaultSize;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we still have a private constant for documentation purposes?

@joshfree
joshfree merged commit 1420939 into dotnet:master Jan 30, 2018
@ahsonkhan
ahsonkhan deleted the RemoveMemoryPool branch January 31, 2018 20:47
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.

3 participants