We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting the maxBufferSizeBytes to handle the largest expected operation also allocates that memory for the smallest.
It would be good if the buffer could expand up to the max, rather than be pre-allocated.
Re: #238
The text was updated successfully, but these errors were encountered:
Hi @CrspyAu , i guess good point.
Probably doable via extending MemoryStream and overriding Capacity property: https://github.com/dotnet/runtime/blob/1d1bf92fcf43aa6981804dc53c5174445069c9e4/src/libraries/System.Private.CoreLib/src/System/IO/MemoryStream.cs#L252
Capacity
wanna provide proof of concept PR?
Sorry, something went wrong.
No branches or pull requests
Setting the maxBufferSizeBytes to handle the largest expected operation also allocates that memory for the smallest.
It would be good if the buffer could expand up to the max, rather than be pre-allocated.
Re: #238
The text was updated successfully, but these errors were encountered: