[Home] Module Microsoft.FSharp.NativeInterop.NativePtr


Contains operations on native pointers. Use of these operators may result in the generation of unverifiable code.

Values

ValueDescription
[<UnverifiableAttribute (); NoDynamicInvocationAttribute ()>]
val add : nativeptr<'T> -> int -> nativeptr<'T>
Return a typed native pointer by adding index * sizeof<'T> to the given input pointer
[<UnverifiableAttribute (); NoDynamicInvocationAttribute ()>]
val get : nativeptr<'T> -> int -> 'T
Dereference the typed native pointer computed by adding index * sizeof<'T> to the given input pointer
[<UnverifiableAttribute (); NoDynamicInvocationAttribute ()>]
val of_array : 'T [] -> int -> nativeptr<'T>
Get the address of an element of a pinned array
[<UnverifiableAttribute (); NoDynamicInvocationAttribute ()>]
val of_array2 : 'T [,] -> int -> int -> nativeptr<'T>
Get the address of an element of a pinned 2-dimensional array
[<UnverifiableAttribute (); NoDynamicInvocationAttribute ()>]
val of_nativeint : nativeint -> nativeptr<'T>
Return a typed native pointer for a given machine address
[<UnverifiableAttribute (); NoDynamicInvocationAttribute ()>]
val read : nativeptr<'T> -> 'T
Dereference the given typed native pointer
[<UnverifiableAttribute (); NoDynamicInvocationAttribute ()>]
val set : nativeptr<'T> -> int -> 'T -> unit
Assign the value into the memory location referenced by the typed native pointer computed by adding index * sizeof<'T> to the given input pointer
[<UnverifiableAttribute (); NoDynamicInvocationAttribute ()>]
val to_nativeint : nativeptr<'T> -> nativeint
Return a machine address for a given typed native pointer
[<UnverifiableAttribute (); NoDynamicInvocationAttribute ()>]
val write : nativeptr<'T> -> 'T -> unit
Assign the value into the memory location referenced by the given typed native pointer

See Also

Microsoft.FSharp.NativeInterop


Documentation for assembly FSharp.Core, version 1.9.6.16, generated using F# Programming Language version 1.9.6.16