Constructor PointerSpanEnumerator
PointerSpanEnumerator(byte*, uint)
Provides an enumerator to process chunks of unmanaged memory as a Span<T>.
Declaration
public PointerSpanEnumerator(byte* pointer, uint length)
Parameters
| Type | Name | Description |
|---|---|---|
| byte* | pointer | A pointer to the starting address of a specified number of byte elements in memory. |
| uint | length | The number of byte elements to be processed by the PointerSpanEnumerator. |
PointerSpanEnumerator(nint, uint)
Provides an enumerator to process chunks of unmanaged memory as a Span<T>.
Declaration
public PointerSpanEnumerator(nint pointer, uint length)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | pointer | A pointer to the starting address of a specified number of byte elements in memory. |
| uint | length | The number of byte elements to be processed by the PointerSpanEnumerator. |