Method LastAsReadOnlySpan
LastAsReadOnlySpan<T>(ReadOnlyExSpan<T>)
An conversion of a ReadOnlyExSpan<T> to a ReadOnlySpan<T>, last beginning at end. The length will saturating limited to the maximum length it supports (ReadOnlyExSpan<T> 到 ReadOnlySpan<T> 的转换, 从尾部索引处开始. 长度会饱和限制为它所支持的最大长度).
public static ReadOnlySpan<T> LastAsReadOnlySpan<T>(this ReadOnlyExSpan<T> span)
Parameters
span
ReadOnlyExSpan<T>The object to convert (要转换的对象).
Returns
Type Parameters
T
The element type (元素的类型).
- See Also
-
AsReadOnlySpan<T>(ReadOnlyExSpan<T>)
LastAsReadOnlySpan<T>(ReadOnlyExSpan<T>, nint, int)
An conversion of a ReadOnlyExSpan<T> to a ReadOnlySpan<T>, last beginning at 'end', of given length (ReadOnlyExSpan<T> 到 ReadOnlySpan<T> 的转换, 从尾部指定索引处开始, 且使用指定长度).
[FakeCLSCompliant(false)]
public static ReadOnlySpan<T> LastAsReadOnlySpan<T>(this ReadOnlyExSpan<T> span, nint end, int length)
Parameters
span
ReadOnlyExSpan<T>The object to convert (要转换的对象).
end
nintThe zero-based index at which to begin this slice (从零开始的切片尾部索引).
length
int
Returns
Type Parameters
T
The element type (元素的类型).
- See Also