Span2D<T>.DangerousCreate(T, Int32, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new instance of the Span2D<T> struct with the specified parameters.
public static Microsoft.Toolkit.HighPerformance.Span2D<T> DangerousCreate (ref T value, int height, int width, int pitch);
static member DangerousCreate : 'T * int * int * int -> Microsoft.Toolkit.HighPerformance.Span2D<'T>
Public Shared Function DangerousCreate (ByRef value As T, height As Integer, width As Integer, pitch As Integer) As Span2D(Of T)
Parameters
- value
- T
The reference to the first T
item to map.
- height
- Int32
The height of the 2D memory area to map.
- width
- Int32
The width of the 2D memory area to map.
- pitch
- Int32
The pitch of the 2D memory area to map (the distance between each row).
Returns
A Span2D<T> instance with the specified parameters.
Exceptions
Thrown when one of the parameters are negative.