Table of Contents

Struct RentedMemorySequenceSegmentCollection<T>.Enumerator

Namespace
LfrlAnvil.Memory
Assembly
LfrlAnvil.Core.dll

Lightweight enumerator implementation for RentedMemorySequenceSegmentCollection<T>.

public ref struct RentedMemorySequenceSegmentCollection<T>.Enumerator
Inherited Members

Properties

Current

Gets the segment in the RentedMemorySequenceSegmentCollection<T> at the current position of this enumerator.

public readonly ArraySegment<T> Current { get; }

Property Value

ArraySegment<T>

Methods

MoveNext()

Advances this enumerator to the next segment.

public bool MoveNext()

Returns

bool

true when next element exists, otherwise false.