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
This is very similar to the already championed fixed-sized buffers proposal: #1314 (which proposes supporting fixed-sized buffers of any type and relying on ref returning indexers).
From @AArnott on February 9, 2019 18:37
C# structs can have inline arrays like this:
But then
something
is typed asbyte*
. WithSpan<T>
we should have a safe alternative. Something like:This removes the
unsafe
keyword and lets us useSpan<T>
which embeds the length, making it safer.Copied from original issue: dotnet/roslyn#33272
The text was updated successfully, but these errors were encountered: