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 ();

Applies to

.NET 9 en andere versies
Product Versies
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.1

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);

Parameters

initialCapacity
Int32

The minimum capacity with which to initialize the underlying buffer.

Exceptions

initialCapacity is less than or equal to 0.

Applies to

.NET 9 en andere versies
Product Versies
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.1