Marshal.WriteIntPtr Method (IntPtr, Int32, IntPtr)
Writes a processor native-sized integer value to unmanaged memory at a specified offset.
Assembly: mscorlib (in mscorlib.dll)
[<SecurityCriticalAttribute>] static member WriteIntPtr : ptr:nativeint * ofs:int * val:nativeint -> unit
Base address (ptr) plus offset byte (ofs) produces a null or invalid address.
This method writes a 32 bit integer on 32 bit systems, and a 64 bit integer on 64 bit systems.
Marshal.Copy) to a separate managed array before setting its element values.enables direct interaction with an unmanaged C-style IntPtr array, eliminating the expense of copying an entire unmanaged array (using
Writing to unaligned memory locations is supported.
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
Available since 4.5
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 8.1