TL;DR
Span<T> 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<char>), memory on the stack (stackalloc) or native memory, …
1 min read · 177 words
Read →