Table of Contents

Method Overlaps

Namespace
Zyl.ExSpans
Assembly
ExSpans.dll

Overlaps<T>(ExSpan<T>, ReadOnlyExSpan<T>)

Determines whether two sequences overlap in memory.

public static bool Overlaps<T>(this ExSpan<T> span, ReadOnlyExSpan<T> other)

Parameters

span ExSpan<T>
other ReadOnlyExSpan<T>

Returns

bool

Type Parameters

T

Overlaps<T>(ExSpan<T>, ReadOnlyExSpan<T>, out int)

Determines whether two sequences overlap in memory and outputs the element offset.

public static bool Overlaps<T>(this ExSpan<T> span, ReadOnlyExSpan<T> other, out int elementOffset)

Parameters

span ExSpan<T>
other ReadOnlyExSpan<T>
elementOffset int

Returns

bool

Type Parameters

T

Overlaps<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>)

Determines whether two sequences overlap in memory.

public static bool Overlaps<T>(this ReadOnlyExSpan<T> span, ReadOnlyExSpan<T> other)

Parameters

span ReadOnlyExSpan<T>
other ReadOnlyExSpan<T>

Returns

bool

Type Parameters

T

Overlaps<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>, out int)

Determines whether two sequences overlap in memory and outputs the element offset.

public static bool Overlaps<T>(this ReadOnlyExSpan<T> span, ReadOnlyExSpan<T> other, out int elementOffset)

Parameters

span ReadOnlyExSpan<T>
other ReadOnlyExSpan<T>
elementOffset int

Returns

bool

Type Parameters

T