You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That causes System.ArgumentException : The current buffer writer can't contain the requested input data. at runtime.
Regression
No response
Steps to reproduce
Leave only one byte of free capacity and write a larger unmanaged type:
using var buffer = new ArrayPoolBufferWriter<byte>(16);
var count = buffer.Capacity - 1;
for (int i = 0; i < count; i++)
{
buffer.Write<byte>(0);
}
buffer.Write(1.0);
Expected behavior
It should grow the buffer accordingly.
Screenshots
No response
IDE and version
VS 2022
IDE version
No response
Nuget packages
CommunityToolkit.Common
CommunityToolkit.Diagnostics
CommunityToolkit.HighPerformance
CommunityToolkit.Mvvm (aka MVVM Toolkit)
Nuget package version(s)
8.2.2
Additional context
No response
Help us help you
Yes, I'd like to be assigned to work on this item
The text was updated successfully, but these errors were encountered:
Describe the bug
IBufferWriterExtension.Write method for unmanaged types creates a Span with invalid length:
should be:
That causes System.ArgumentException : The current buffer writer can't contain the requested input data. at runtime.
Regression
No response
Steps to reproduce
Expected behavior
It should grow the buffer accordingly.
Screenshots
No response
IDE and version
VS 2022
IDE version
No response
Nuget packages
Nuget package version(s)
8.2.2
Additional context
No response
Help us help you
Yes, I'd like to be assigned to work on this item
The text was updated successfully, but these errors were encountered: