Span2D Struct
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.
public readonly ref struct Span2D
type Span2D<'T> = struct
Public Structure Span2D(Of T)
Type Parameters
- T
- Inheritance
-
Span2D
Constructors
| Name | Description |
|---|---|
|
Span2D |
Initializes a new instance of the Span2D |
|
Span2D |
Initializes a new instance of the Span2D |
|
Span2D |
Initializes a new instance of the Span2D |
|
Span2D |
Initializes a new instance of the Span2D |
|
Span2D |
Initializes a new instance of the Span2D |
|
Span2D |
Initializes a new instance of the Span2D |
|
Span2D |
Initializes a new instance of the Span2D |
Properties
| Name | Description |
|---|---|
| Empty |
Gets an empty Span2D |
| Height |
Gets the height of the underlying 2D memory area. |
| IsEmpty |
Gets a value indicating whether the current Span2D |
| Item[Index, Index] |
Gets the element at the specified zero-based indices. |
| Item[Int32, Int32] |
Gets the element at the specified zero-based indices. |
| Item[Range, Range] |
Slices the current instance with the specified parameters. |
| Length |
Gets the length of the current Span2D |
| Width |
Gets the width of the underlying 2D memory area. |
Methods
| Name | Description |
|---|---|
| Clear() |
Clears the contents of the current Span2D |
|
CopyTo(Span |
Copies the contents of this Span2D |
|
CopyTo(Span2D |
Copies the contents of this Span2D |
| DangerousCreate(T, Int32, Int32, Int32) |
Creates a new instance of the Span2D |
| DangerousGetReference() |
Returns a reference to the first element within the current instance, with no bounds check. |
| DangerousGetReferenceAt(Int32, Int32) |
Returns a reference to a specified element within the current instance, with no bounds check. |
| Equals(Object) |
Obsolete.
Indicates whether this instance and a specified object are equal. |
| Fill(T) |
Fills the elements of this span with a specified value. |
| GetColumn(Int32) |
Gets an enumerable that traverses items in a specified column. |
| GetEnumerator() |
Returns an enumerator for the current Span2D |
| GetHashCode() |
Obsolete.
Returns the hash code for this instance. |
| GetPinnableReference() |
Returns a reference to the 0th element of the Span2D |
| GetRow(Int32) |
Gets an enumerable that traverses items in a specified row. |
| GetRowSpan(Int32) |
Gets a Span |
| Slice(Int32, Int32, Int32, Int32) |
Slices the current instance with the specified parameters. |
| ToArray() |
Copies the contents of the current Span2D |
| ToString() |
Returns the fully qualified type name of this instance. |
|
TryCopyTo(Span |
Attempts to copy the current Span2D |
|
TryCopyTo(Span2D |
Attempts to copy the current Span2D |
|
TryGetSpan(Span |
Tries to get a Span |
Operators
| Name | Description |
|---|---|
|
Equality(Span2D |
Checks whether two Span2D |
|
Implicit(T[,] to Span2D |
|
|
Inequality(Span2D |
Checks whether two Span2D |