IntPtrExtensionsAddOffset Method
Adds an offset to the value of the source IntPtr.
Namespace: DevCase.Extensions.IntPtrExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static IntPtr AddOffset(
this IntPtr ptr,
long offset
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function AddOffset (
ptr As IntPtr,
offset As Long
) As IntPtr
Dim ptr As IntPtr
Dim offset As Long
Dim returnValue As IntPtr
returnValue = ptr.AddOffset(offset)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static IntPtr AddOffset(
IntPtr ptr,
long long offset
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member AddOffset :
ptr : IntPtr *
offset : int64 -> IntPtr
No code example is currently available or this language may not be supported.
- ptr IntPtr
-
The source IntPtr.
- offset Int64
-
The offset to add.
IntPtr
A new
IntPtr that reflects the
addition of
offset to
ptr.
In Visual Basic and C#, you can call this method as an instance method on any object of type
IntPtr. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).