Better HN
topnewbestaskshowjobs
Log inSign up

justinvp

16 karma · joined Nov 19, 2017 (9y ago) · 1 submissions

Submissions

comment 9y ago · link · parent

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 as an example.