NativePtr (FSharp.Core)
Returns a typed native pointer by adding index * sizeof<'T> to the
given input pointer.
Returns a typed native pointer by adding index * sizeof<'T> to the given input pointer.
-
Returns:
nativeptr<'T> -
A typed pointer.
Clears the value stored at the location of a given native pointer.
Clears the value stored at the location of a given native pointer.
-
address
:
nativeptr<'T> -
The input pointer.
Copies a value to a specified destination address from a specified source address.
Copies a value to a specified destination address from a specified source address.
Copies a block of memory to a specified destination address starting from a specified source address until a specified byte count of (count * sizeof<'T>).
Copies a block of memory to a specified destination address starting from a specified source address until a specified byte count of (count * sizeof<'T>).
Dereferences the typed native pointer computed by adding index * sizeof<'T> to the
given input pointer.
Dereferences the typed native pointer computed by adding index * sizeof<'T> to the given input pointer.
-
Returns:
'T -
The value at the pointer address.
Initializes a specified block of memory starting at a specific address to a given byte count and initial byte value.
Initializes a specified block of memory starting at a specific address to a given byte count and initial byte value.
Tests whether the given native pointer is null.
Tests whether the given native pointer is null.
-
address
:
nativeptr<'T> -
The input pointer.
-
Returns:
bool -
Whether the given native pointer is null.
Gets the null native pointer.
Gets the null native pointer.
-
Returns:
nativeptr<'T> -
The null native pointer.
Returns a typed native pointer for a Common IL (Intermediate Language) signature pointer.
Returns a typed native pointer for a Common IL (Intermediate Language) signature pointer.
-
address
:
ilsigptr<'T> -
The Common IL signature pointer.
-
Returns:
nativeptr<'T> -
A typed native pointer.
Returns a typed native pointer for a given machine address.
Returns a typed native pointer for a given machine address.
-
address
:
nativeint -
The machine address.
-
Returns:
nativeptr<'T> -
A typed native pointer.
Returns a typed native pointer for a untyped native pointer.
Returns a typed native pointer for a untyped native pointer.
-
address
:
voidptr -
The untyped native pointer.
-
Returns:
nativeptr<'T> -
A typed native pointer.
Dereferences the given typed native pointer.
Dereferences the given typed native pointer.
-
address
:
nativeptr<'T> -
The input pointer.
-
Returns:
'T -
The value at the pointer address.
Assigns the value into the memory location referenced by the typed native
pointer computed by adding index * sizeof<'T> to the given input pointer.
Assigns the value into the memory location referenced by the typed native
pointer computed by adding index * sizeof<'T> to the given input pointer.
Allocates a region of memory on the stack.
Allocates a region of memory on the stack.
-
count
:
int -
The number of objects of type T to allocate.
-
Returns:
nativeptr<'T> -
A typed pointer to the allocated memory.
Converts a given typed native pointer to a managed pointer.
Converts a given typed native pointer to a managed pointer.
-
address
:
nativeptr<'T> -
The typed native pointer.
-
Returns:
byref<'T> -
The managed pointer.
Returns a Common IL (Intermediate Language) signature pointer for a given typed native pointer.
Returns a Common IL (Intermediate Language) signature pointer for a given typed native pointer.
-
address
:
nativeptr<'T> -
The typed native pointer.
-
Returns:
ilsigptr<'T> -
A Common IL signature pointer.
Returns a machine address for a given typed native pointer.
Returns a machine address for a given typed native pointer.
-
address
:
nativeptr<'T> -
The typed native pointer.
-
Returns:
nativeint -
The machine address.
Returns an untyped native pointer for a given typed native pointer.
Returns an untyped native pointer for a given typed native pointer.
-
address
:
nativeptr<'T> -
The typed native pointer.
-
Returns:
voidptr -
An untyped native pointer.
Assigns the value into the memory location referenced by the given typed native pointer.
Assigns the value into the memory location referenced by the given typed native pointer.
-
address
:
nativeptr<'T> -
The input pointer.
-
value
:
'T -
The value to assign.