ArrayStreamBufferWriter Struct
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.
An implementation of IBufferWriter<T> which writes to a Stream, using an array as an intermediate buffer.
public struct ArrayStreamBufferWriter : System.Buffers.IBufferWriter<byte>
type ArrayStreamBufferWriter = struct
interface IBufferWriter<byte>
Public Structure ArrayStreamBufferWriter
Implements IBufferWriter(Of Byte)
- Inheritance
-
ArrayStreamBufferWriter
- Implements
Constructors
| Name | Description |
|---|---|
| ArrayStreamBufferWriter(Stream, Int32) |
Initializes a new instance of the ArrayStreamBufferWriter struct. |
Fields
| Name | Description |
|---|---|
| DefaultInitialBufferSize | |
Methods
| Name | Description |
|---|---|
| Advance(Int32) | Notifies the IBufferWriter<T> that |
| GetMemory(Int32) | Returns a Memory<T> to write to that is at least the requested size (specified by |
| GetSpan(Int32) | Returns a Span<T> to write to that is at least the requested size (specified by |