Span<T>

A stack-only view over a continuous region of memory without owning that memory.

What is Span<T> in C#?

Span<T> — A stack-only view over a continuous region of memory without owning that memory.

class BufferReader
{
    void Clear(int[] buffer)
    {
        Span<int> view = buffer;
        view.Clear();
    }
}

Level: Master · More C# terms at this level

Updated