PrefixingBufferWriter<T,TBufferWriter>.Sequence Class
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.
Manages a sequence of elements, readily castable as a ReadOnlySequence<T>.
public class PrefixingBufferWriter<T,TBufferWriter>.Sequence : IDisposable, System.Buffers.IBufferWriter<T> where TBufferWriter : IBufferWriter<T>
type PrefixingBufferWriter<'T, 'BufferWriter (requires 'BufferWriter :> IBufferWriter<'T>)>.Sequence = class
interface IBufferWriter<'T>
interface IDisposable
Public Class PrefixingBufferWriter(Of T, TBufferWriter).Sequence
Implements IBufferWriter(Of T), IDisposable
- T
- TBufferWriter
- Inheritance
-
PrefixingBufferWriter<T,TBufferWriter>.Sequence
- Implements
Instance members are not thread-safe.
Prefixing |
Initializes a new instance of the PrefixingBufferWriter<T,TBufferWriter>.Sequence class. |
As |
Gets this sequence expressed as a ReadOnlySequence<T>. |
Length |
Gets the length of the sequence. |
Advance(Int32) |
Advances the sequence to include the specified number of elements initialized into memory returned by a prior call to GetMemory(Int32). |
Advance |
Removes all elements from the sequence from its beginning to the specified position, considering that data to have been fully processed. |
Dispose() |
Clears the entire sequence, recycles associated memory into pools, and resets this instance for reuse. This invalidates any ReadOnlySequence<T> previously produced by this instance. |
Get |
Gets writable memory that can be initialized and added to the sequence via a subsequent call to Advance(Int32). |
Get |
Gets writable memory that can be initialized and added to the sequence via a subsequent call to Advance(Int32). |
Reset() |
Clears the entire sequence and recycles associated memory into pools. This invalidates any ReadOnlySequence<T> previously produced by this instance. |
Produkt | Versioner |
---|---|
.NET Orleans | 3.6.0 |