Table of Contents

Method Subtract

Namespace
Zyl.ExSpans.Impl
Assembly
ExSpans.Core.dll

Subtract<T>(ref T, nint)

Subtracts an element offset to the given managed pointer.

public static ref T Subtract<T>(ref T source, nint elementOffset)

Parameters

source T

The managed pointer to subtract the offset to.

elementOffset nint

The offset to subtract.

Returns

T

A new managed pointer that reflects the subtractition of the specified offset to the source pointer.

Type Parameters

T

The elemental type of the managed pointer.

Subtract<T>(ref T, nuint)

Subtracts an element offset to the given managed pointer.

[CLSCompliant(false)]
public static ref T Subtract<T>(ref T source, nuint elementOffset)

Parameters

source T

The managed pointer to subtract the offset to.

elementOffset nuint

The offset to subtract.

Returns

T

A new managed pointer that reflects the subtractition of the specified offset to the source pointer.

Type Parameters

T

The elemental type of the managed pointer.