共用方式為


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)

來源:
MemoryExtensions.cs
來源:
MemoryExtensions.cs
來源:
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)

來源:
MemoryExtensions.cs
來源:
MemoryExtensions.cs
來源:
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>)

來源:
MemoryExtensions.cs
來源:
MemoryExtensions.cs
來源:
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>)

來源:
MemoryExtensions.cs
來源:
MemoryExtensions.cs
來源:
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

適用於