Span and Memory
Stack-only memory views, slicing, stackalloc, Memory, ref struct rules
Span is a view over a contiguous block of memory: a reference to the first element plus a length, 16 bytes on 64-bit, that can point into a managed array, a string (ReadOnlySpan), memory on the stack (stackalloc) or native…