4 ms·
Unsafe is no longer necessary for such cases. This can now be written as: Span<byte> stackSpan = stackalloc byte[100]; See https://github.com/dotnet/corec
by justinvp 9y ago
Unsafe is no longer necessary for such cases. This can now be written as:
Span<byte> stackSpan = stackalloc byte[100];
See https://github.com/dotnet/coreclr/pull/14503/files https://github.com/dotnet/coreclr/pull/14503/files as an example.
- DubiousPusher 9y agoThanks, this is what I was wondering.
- ComputerGuru 9y agoYup. Perhaps the github links can be updated to reflect this awesomeness?