Method Add
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
TThe managed pointer to add the offset to.
elementOffset
nintThe 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
TThe managed pointer to add the offset to.
elementOffset
nuintThe 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.