Table of Contents

Method AddAsRef

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

AddAsRef<T>(nint, nint)

Adds an element offset to the given managed pointer.

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

Parameters

source nint

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.

AddAsRef<T>(nuint, nuint)

Adds an element offset to the given managed pointer.

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

Parameters

source nuint

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.