Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


MemoryPool<T>.Rent(Int32) Method

Definition

Returns a memory block capable of holding at least minBufferSize elements of T.

C#
public abstract System.Buffers.IMemoryOwner<T> Rent(int minBufferSize = -1);

Parameters

minBufferSize
Int32

The minimum number of elements of T that the memory pool can hold. A value of -1 returns a memory pool set to the default size for the pool.

Returns

A memory block capable of holding at least minBufferSize elements of T.

Applies to

Termék Verziók
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1