Table of Contents

Method AddByteOffset

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

AddByteOffset<T>(ref T, nint)

Adds a byte offset to the given managed pointer.

public static ref T AddByteOffset<T>(ref T source, nint byteOffset)

Parameters

source T

The managed pointer to add the offset to.

byteOffset nint

The offset to add.

Returns

T

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

Type Parameters

T

The elemental type of the managed pointer.

AddByteOffset<T>(ref T, nuint)

Adds a byte offset to the given managed pointer.

[CLSCompliant(false)]
public static ref T AddByteOffset<T>(ref T source, nuint byteOffset)

Parameters

source T

The managed pointer to add the offset to.

byteOffset nuint

The offset to add.

Returns

T

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

Type Parameters

T

The elemental type of the managed pointer.