CVB.Net 14.0
ImagePlaneExtensions Class Reference

Extension methods used on image planes. More...

Static Public Member Functions

static IEnumerable< T > DereferenceAs< T > (this IEnumerable< IntPtr > source)
 Dereferences the given source range as a T. More...
 

Detailed Description

Extension methods used on image planes.

Member Function Documentation

◆ 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
TType to use for dereferencing.
Parameters
sourcePointer range to dereference.
Returns
Enumerable of the dereferenced values.
Type Constraints
T :struct