Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
justinvp
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
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 as an example.