Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

NativePtr.write<'T> Function (F#)

Assigns a value into the memory location referenced by the given typed native pointer.

Namespace/Module Path: Microsoft.FSharp.NativeInterop.NativePtr

Assembly: FSharp.Core (in FSharp.Core.dll)

// Signature:
NativePtr.write : nativeptr<'T> -> 'T -> unit (requires unmanaged)

// Usage:
NativePtr.write address value


Type: nativeptr<'T>

The input pointer.


Type: 'T

The value to assign.

This function is named WritePointerInlined in compiled assemblies. If you are accessing the function from a language other than F#, or through reflection, use this name.

Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

F# Core Library Versions

Supported in: 2.0, 4.0, Portable

© 2015 Microsoft