Struct RingBuffer<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
Current
Current entry in the enumerator.
Declaration
public T Current { readonly get; }
Property Value
Type | Description |
---|---|
T |
Methods
Dispose()
Declaration
public void Dispose()
Initialize(RingBuffer<T>)
Declaration
public void Initialize(RingBuffer<T> c)
Parameters
Type | Name | Description |
---|---|---|
RingBuffer<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