Extension methods used on image planes.
More...
|
static IEnumerable< T > | DereferenceAs< T > (this IEnumerable< IntPtr > source) |
| Dereferences the given source range as a T .
|
|
Extension methods used on image planes.
◆ DereferenceAs< T >()
static IEnumerable< T > DereferenceAs< T > |
( |
this IEnumerable< IntPtr > | source | ) |
|
|
static |
Dereferences the given source range as a T
.
Dereferencing a pointer means getting the value at the location pointed to.
Attention:
if the type T
does not match the actual type at the pointer, the result is undefined. Also do not use structs containing reference types.
- Template Parameters
-
T | Type to use for dereferencing. |
- Parameters
-
source | Pointer range to dereference. |
- Returns
- Enumerable of the dereferenced values.