Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
justinvp
· 9y ago · 0 comments
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.
Comments
[–]
ComputerGuru
9y ago
Yup. Perhaps the github links can be updated to reflect this awesomeness?
[–]
DubiousPusher
9y ago
Thanks, this is what I was wondering.