ArrayBufferWriter<T> Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
- 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
.NET 9 en andere versies
Product | Versies |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Standard | 2.1 |
- 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
.NET 9 en andere versies
Product | Versies |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Standard | 2.1 |
.NET-feedback
.NET is een open source project. Selecteer een koppeling om feedback te geven: