Struct ResettableRingBuffer<T>.Enumerator
Custom enumerator to prevent garbage collection.
Implements
System.Collections.Generic.IEnumerator<T>
System.Collections.IEnumerator
System.IDisposable
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: GameKit.Dependencies.Utilities.Types
Assembly: GameKit.Dependencies.dll
Syntax
public struct Enumerator : IEnumerator<T>, IEnumerator, IDisposable
Properties
ActualIndex
Actual index of the last enumerated value.
Declaration
public readonly int ActualIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Current
Current entry in the enumerator.
Declaration
public T Current { readonly get; }
Property Value
Type | Description |
---|---|
T |
SimulatedIndex
Simulated index of the last enumerated value.
Declaration
public readonly int SimulatedIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Dispose()
Declaration
public void Dispose()
Initialize(ResettableRingBuffer<T>)
Declaration
public void Initialize(ResettableRingBuffer<T> c)
Parameters
Type | Name | Description |
---|---|---|
ResettableRingBuffer<T> | c |
MoveNext()
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
System.Boolean |
Reset()
Resets read count.
Declaration
public void Reset()
Explicit Interface Implementations
IEnumerator.Current
Declaration
readonly object IEnumerator.Current { get; }
Returns
Type | Description |
---|---|
System.Object |
Implements
System.Collections.Generic.IEnumerator<T>
System.Collections.IEnumerator
System.IDisposable