Replies: 1 comment 2 replies
-
Just a note (for people who aren't aware) that bit-blit is not required for .NET Core 2.1+ and .NET Standard 2.1 (specifically, whenever class <PrivateImplementationDetails>
{
public static ReadOnlySpan<T> CastUp<TDerived>(ReadOnlySpan<TDerived> items) where TDerived : class?, T
{
return MemoryMarshal.CreateReadOnlySpan(ref Unsafe.As<TDerived, T>(ref MemoryMarshal.GetReference(items)), items.Length);
}
} Runtime implementation: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/dotnet/csharplang/blob/main/meetings/2024/LDM-2024-05-13.md
Agenda
Beta Was this translation helpful? Give feedback.
All reactions