Struct Pointer<T>.Enumerator
Represents enumerator over raw memory.
Inherited Members
Namespace: DotNext.Runtime.InteropServices
Assembly: DotNext.Unsafe.dll
Syntax
public struct Enumerator : IEnumerator<T>, IEnumerator, IDisposable
Properties
| Improve this Doc View SourceCurrent
Current element.
Declaration
public T Current { get; }
Property Value
Type | Description |
---|---|
T |
Pointer
Pointer to the currently enumerating element.
Declaration
public Pointer<T> Pointer { get; }
Property Value
Type | Description |
---|---|
Pointer<T> |
Methods
| Improve this Doc View SourceDispose()
Releases all resources with this enumerator.
Declaration
public void Dispose()
MoveNext()
Adjust pointer.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
Boolean | true, if next element is available; false, if end of sequence reached. |
Reset()
Sets the enumerator to its initial position.
Declaration
public void Reset()
Explicit Interface Implementations
| Improve this Doc View SourceIEnumerator.Current
Declaration
object IEnumerator.Current { get; }
Returns
Type | Description |
---|---|
Object |