Table of Contents

Method AddPointer

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

AddPointer<T>(nint, nint)

Native pointer add (原生指针加法).

public static nint AddPointer<T>(nint source, nint elementOffset)

Parameters

source nint

The managed pointer to add the offset to.

elementOffset nint

The offset to add.

Returns

nint

Returns added pointer (返回相加后的指针).

Type Parameters

T

The element type (元素的类型).

AddPointer<T>(nuint, nuint)

Native pointer add (原生指针加法).

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

Parameters

source nuint

The managed pointer to add the offset to.

elementOffset nuint

The offset to add.

Returns

nuint

Returns added pointer (返回相加后的指针).

Type Parameters

T

The element type (元素的类型).