I am working with network buffers and streams, and Span and Memory would fit perfectly in the application requirements.
As per this question, I would like to get a Stream to accept Span as a parameter. I know that is implemented in .NET Core 2.1, but I was wondering if there's a way to get this functionality in .NET Framework as well? (I am using 4.7.1)
Something like:
Span<Byte> buffer = new Span<byte>();
stream.Read(buffer);