ArrayBufferWriter<T> Constructors
Definition
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.
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.