Struct ChunkSequence<T>.Enumerator
Represents enumerator of memory chunks.
Inherited Members
Namespace: DotNext.Buffers
Assembly: DotNext.dll
Syntax
[Obsolete("Use ReadOnlySequence<T> data type instead")]
public struct Enumerator : IEnumerator<ReadOnlyMemory<T>>, IEnumerator, IDisposable
Properties
| Improve this Doc View SourceCurrent
Gets currently iterating memory segment.
Declaration
public ReadOnlyMemory<T> Current { get; }
Property Value
Type | Description |
---|---|
ReadOnlyMemory<T> |
Methods
| Improve this Doc View SourceMoveNext()
Moves to the next memory segment.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
Boolean | true if the next segment exists; otherwise, langword_csharp_langword. |
Reset()
Resets enumerator to its initial state.
Declaration
public void Reset()
Explicit Interface Implementations
| Improve this Doc View SourceIEnumerator.Current
Declaration
object IEnumerator.Current { get; }
Returns
Type | Description |
---|---|
Object |
IDisposable.Dispose()
Declaration
void IDisposable.Dispose()