Removing byte[] allocations in .NET Framework using ReadOnlySpan<T>

In this post I describe how to remove static byte[] allocations, even on .NET Framework, by using Span , look at the associated IL, and discuss the risks