Struct ChunkSequence<T>.Enumerator
Represents enumerator of memory chunks.
Implements
IEnumerator<ReadOnlyMemory<T>>
Namespace: DotNext.Buffers
Assembly: DotNext.dll
Syntax
public struct Enumerator : IEnumerator<ReadOnlyMemory<T>>
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()
Implements
IEnumerator<>