Table of Contents

Method Add

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

Add<T>(ref T, nint)

Adds an element offset to the given managed pointer.

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

Parameters

source T

The managed pointer to add the offset to.

elementOffset nint

The offset to add.

Returns

T

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

Type Parameters

T

The elemental type of the managed pointer.

Add<T>(ref T, nuint)

Adds an element offset to the given managed pointer.

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

Parameters

source T

The managed pointer to add the offset to.

elementOffset nuint

The offset to add.

Returns

T

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

Type Parameters

T

The elemental type of the managed pointer.