Edit

Share via


ArrayBufferWriter<T> Constructors

Definition

Overloads

ArrayBufferWriter<T>()

Creates an instance of an ArrayBufferWriter<T> to which data can be written, with the default initial capacity.

ArrayBufferWriter<T>(Int32)

Creates an instance of an ArrayBufferWriter<T> to which data can be written, with a specified initial capacity.

ArrayBufferWriter<T>()

Source:
ArrayBufferWriter.cs
Source:
ArrayBufferWriter.cs
Source:
ArrayBufferWriter.cs

Creates an instance of an ArrayBufferWriter<T> to which data can be written, with the default initial capacity.

public:
 ArrayBufferWriter();
public ArrayBufferWriter ();
Public Sub New ()

Applies to

ArrayBufferWriter<T>(Int32)

Source:
ArrayBufferWriter.cs
Source:
ArrayBufferWriter.cs
Source:
ArrayBufferWriter.cs

Creates an instance of an ArrayBufferWriter<T> to which data can be written, with a specified initial capacity.

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

Parameters

initialCapacity
Int32

The minimum capacity with which to initialize the underlying buffer.

Exceptions

initialCapacity is less than or equal to 0.

Applies to