Edytuj

Udostępnij za pośrednictwem


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 Microsoft.Toolkit.HighPerformance.Buffers.ArrayPoolBufferWriter<'T> : System.Buffers.ArrayPool<'T> -> Microsoft.Toolkit.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 Microsoft.Toolkit.HighPerformance.Buffers.ArrayPoolBufferWriter<'T> : int -> Microsoft.Toolkit.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 positive (i.e. less than or equal to 0).

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 Microsoft.Toolkit.HighPerformance.Buffers.ArrayPoolBufferWriter<'T> : System.Buffers.ArrayPool<'T> * int -> Microsoft.Toolkit.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