Unsafe.AddByteOffset<T>(T, IntPtr) Method

Definition

Adds a byte offset to the given reference.

public:
generic <typename T>
 static T % AddByteOffset(T % source, IntPtr byteOffset);
public static ref T AddByteOffset<T> (ref T source, IntPtr byteOffset);
static member AddByteOffset : 'T * nativeint -> 'T
Public Shared Function AddByteOffset(Of T) (ByRef source As T, byteOffset As IntPtr) As T

Type Parameters

T

The type of reference.

Parameters

source
T

The reference to add the offset to.

byteOffset
IntPtr

The offset to add.

Returns

T

A new reference that reflects the addition of byte offset to pointer.

Applies to