Table of Contents

Method IsAddressGreaterThanOrEqual

Namespace
Zyl.VectorTraits.Impl.Util
Assembly
VectorTraits.dll

IsAddressGreaterThanOrEqual<T>(ref T, ref T)

Determines whether the memory address referenced by left is greater or equal than the memory address referenced by right (返回一个值,该值指示指定的托管指针是否大于另一个指定的托管指针).

public static bool IsAddressGreaterThanOrEqual<T>(ref T left, ref T right)

Parameters

left T

The first managed pointer to compare (要比较的第一个托管指针).

right T

The second managed pointer to compare (要比较的第二个托管指针).

Returns

bool

true if is greater or equal; otherwise, false (大于等于时返回 true; 否则返回 false).

Type Parameters

T

The elemental type of the managed pointer (托管指针的元素类型).

Remarks

This check is conceptually similar to "(void*)(&left) >= (void*)(&right)".

See Also
IsAddressLessThan<T>(ref readonly T, ref readonly T)

IsAddressGreaterThanOrEqual<T>(ref T, ref T, int)

public static bool IsAddressGreaterThanOrEqual<T>(ref T left, ref T right, int rightOffset)

Parameters

left T

The first managed pointer to compare (要比较的第一个托管指针).

right T

The second managed pointer to compare (要比较的第二个托管指针).

rightOffset int

Offset of the second managed pointer (第二个托管指针的偏移量).

Returns

bool

true if is greater or equal; otherwise, false (大于等于时返回 true; 否则返回 false).

Type Parameters

T

The elemental type of the managed pointer (托管指针的元素类型).

Remarks

This check is conceptually similar to "(void*)(&left) >= (void*)(&(right+rightOffset))".

See Also
IsAddressGreaterThan<T>(ref readonly T, ref readonly T)