<PackageReference Include="System.Drawing.Common" Version="10.0.0-preview.6.25358.103" />

BufferScope<T>

struct BufferScope<T>
Allows renting a buffer from ArrayPool<T> with a using statement. Can be used directly as if it were a Span<T>.
public ref T this[int i] { get; }

public Span<T> this[Range range] { get; }

public int Length { get; }

public BufferScope(int minimumLength)

public BufferScope(Span<T> initialBuffer)

Create the BufferScope<T> with an initial buffer. Useful for creating with an initial stack allocated buffer.

public BufferScope(Span<T> initialBuffer, int minimumLength)

Create the BufferScope<T> with an initial buffer. Useful for creating with an initial stack allocated buffer.

public static Span<T> op_Implicit(BufferScope<T> scope)

public static ReadOnlySpan<T> op_Implicit(BufferScope<T> scope)

public Span<T> AsSpan()

public void Dispose()

public void EnsureCapacity(int capacity, bool copy = false)

Ensure that the buffer has enough space for capacity number of elements.

public ref T GetPinnableReference()

public Span<T> Slice(int start, int length)