Bearbeiten

Freigeben über


ArrayPoolBufferWriter<T> Constructors

Definition

Overloads

ArrayPoolBufferWriter<T>()

Initializes a new instance of the ArrayPoolBufferWriter<T> class.

ArrayPoolBufferWriter<T>(ArrayPool<T>)

Initializes a new instance of the ArrayPoolBufferWriter<T> class.

ArrayPoolBufferWriter<T>(Int32)

Initializes a new instance of the ArrayPoolBufferWriter<T> class.

ArrayPoolBufferWriter<T>(ArrayPool<T>, Int32)

Initializes a new instance of the ArrayPoolBufferWriter<T> class.

ArrayPoolBufferWriter<T>()

Initializes a new instance of the ArrayPoolBufferWriter<T> class.

public ArrayPoolBufferWriter ();
Public Sub New ()

Applies to

ArrayPoolBufferWriter<T>(ArrayPool<T>)

Initializes a new instance of the ArrayPoolBufferWriter<T> class.

public ArrayPoolBufferWriter (System.Buffers.ArrayPool<T> pool);
new CommunityToolkit.HighPerformance.Buffers.ArrayPoolBufferWriter<'T> : System.Buffers.ArrayPool<'T> -> CommunityToolkit.HighPerformance.Buffers.ArrayPoolBufferWriter<'T>
Public Sub New (pool As ArrayPool(Of T))

Parameters

pool
ArrayPool<T>

The ArrayPool<T> instance to use.

Applies to

ArrayPoolBufferWriter<T>(Int32)

Initializes a new instance of the ArrayPoolBufferWriter<T> class.

public ArrayPoolBufferWriter (int initialCapacity);
new CommunityToolkit.HighPerformance.Buffers.ArrayPoolBufferWriter<'T> : int -> CommunityToolkit.HighPerformance.Buffers.ArrayPoolBufferWriter<'T>
Public Sub New (initialCapacity As Integer)

Parameters

initialCapacity
Int32

The minimum capacity with which to initialize the underlying buffer.

Exceptions

Thrown when initialCapacity is not valid.

Applies to

ArrayPoolBufferWriter<T>(ArrayPool<T>, Int32)

Initializes a new instance of the ArrayPoolBufferWriter<T> class.

public ArrayPoolBufferWriter (System.Buffers.ArrayPool<T> pool, int initialCapacity);
new CommunityToolkit.HighPerformance.Buffers.ArrayPoolBufferWriter<'T> : System.Buffers.ArrayPool<'T> * int -> CommunityToolkit.HighPerformance.Buffers.ArrayPoolBufferWriter<'T>
Public Sub New (pool As ArrayPool(Of T), initialCapacity As Integer)

Parameters

pool
ArrayPool<T>

The ArrayPool<T> instance to use.

initialCapacity
Int32

The minimum capacity with which to initialize the underlying buffer.

Exceptions

Thrown when initialCapacity is not valid.

Applies to