MemoryExtensions.Overlaps 方法

定义

重载

Overlaps<T>(Span<T>, ReadOnlySpan<T>, Int32)

确定范围和只读跨度是否在内存中重叠,并输出元素偏移量。

Overlaps<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, Int32)

确定两个只读序列是否在内存中重叠,并输出元素偏移量。

Overlaps<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

确定两个只读序列是否在内存中重叠。

Overlaps<T>(Span<T>, ReadOnlySpan<T>)

确定范围和只读跨度是否在内存中重叠。

Overlaps<T>(Span<T>, ReadOnlySpan<T>, Int32)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

确定范围和只读跨度是否在内存中重叠,并输出元素偏移量。

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static bool Overlaps(Span<T> span, ReadOnlySpan<T> other, [Runtime::InteropServices::Out] int % elementOffset);
public static bool Overlaps<T> (this Span<T> span, ReadOnlySpan<T> other, out int elementOffset);
static member Overlaps : Span<'T> * ReadOnlySpan<'T> * int -> bool
<Extension()>
Public Function Overlaps(Of T) (span As Span(Of T), other As ReadOnlySpan(Of T), ByRef elementOffset As Integer) As Boolean

类型参数

T

范围中的元素类型。

参数

span
Span<T>

要比较的第一个序列。

other
ReadOnlySpan<T>

要比较的第二个序列。

elementOffset
Int32

方法返回时,包含 spanother之间的偏移量。

返回

如果两个序列重叠,则 true;否则,false

适用于

Overlaps<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, Int32)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

确定两个只读序列是否在内存中重叠,并输出元素偏移量。

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static bool Overlaps(ReadOnlySpan<T> span, ReadOnlySpan<T> other, [Runtime::InteropServices::Out] int % elementOffset);
public static bool Overlaps<T> (this ReadOnlySpan<T> span, ReadOnlySpan<T> other, out int elementOffset);
static member Overlaps : ReadOnlySpan<'T> * ReadOnlySpan<'T> * int -> bool
<Extension()>
Public Function Overlaps(Of T) (span As ReadOnlySpan(Of T), other As ReadOnlySpan(Of T), ByRef elementOffset As Integer) As Boolean

类型参数

T

范围中的元素类型。

参数

span
ReadOnlySpan<T>

第一个序列。

other
ReadOnlySpan<T>

第二个序列。

elementOffset
Int32

方法返回时,包含 spanother之间的偏移量。

返回

如果两个序列重叠,则 true;否则,false

适用于

Overlaps<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

确定两个只读序列是否在内存中重叠。

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static bool Overlaps(ReadOnlySpan<T> span, ReadOnlySpan<T> other);
public static bool Overlaps<T> (this ReadOnlySpan<T> span, ReadOnlySpan<T> other);
static member Overlaps : ReadOnlySpan<'T> * ReadOnlySpan<'T> -> bool
<Extension()>
Public Function Overlaps(Of T) (span As ReadOnlySpan(Of T), other As ReadOnlySpan(Of T)) As Boolean

类型参数

T

只读序列中的元素类型。

参数

span
ReadOnlySpan<T>

第一个序列。

other
ReadOnlySpan<T>

第二个序列。

返回

如果两个序列重叠,则 true;否则,false

适用于

Overlaps<T>(Span<T>, ReadOnlySpan<T>)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

确定范围和只读跨度是否在内存中重叠。

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static bool Overlaps(Span<T> span, ReadOnlySpan<T> other);
public static bool Overlaps<T> (this Span<T> span, ReadOnlySpan<T> other);
static member Overlaps : Span<'T> * ReadOnlySpan<'T> -> bool
<Extension()>
Public Function Overlaps(Of T) (span As Span(Of T), other As ReadOnlySpan(Of T)) As Boolean

类型参数

T

范围中的元素类型。

参数

span
Span<T>

要比较的跨度。

other
ReadOnlySpan<T>

要比较的只读范围。

返回

如果两个序列重叠,则 true;否则,false

适用于