Class ExecutionStack
Extends RuntimeHelpers class with execution stack inspection routines.
Inheritance
ExecutionStack
Assembly: DotNext.Unsafe.dll
Syntax
public static class ExecutionStack
Methods
View Source
IsOnExecutionStack(void*)
Determines whether the specified memory location belongs to the stack memory.
Declaration
[CLSCompliant(false)]
public static bool IsOnExecutionStack(void* location)
Parameters
| Type |
Name |
Description |
| void* |
location |
The memory location.
|
Returns
| Type |
Description |
| bool |
true if location is on the stack; otherwise, false.
|
Exceptions
See Also
View Source
IsOnExecutionStack<T>(ref readonly T)
Determines whether the specified memory location belongs to the stack memory.
Declaration
public static bool IsOnExecutionStack<T>(ref readonly T location) where T : allows ref struct
Parameters
| Type |
Name |
Description |
| T |
location |
The memory location.
|
Returns
| Type |
Description |
| bool |
true if location is on the stack; otherwise, false.
|
Type Parameters
| Name |
Description |
| T |
The type of the data at the memory location.
|
Exceptions
See Also
View Source
get_ExecutionStackSize()
Gets a value of the execution stack belongs to the current thread.
Declaration
public static nuint get_ExecutionStackSize()
Returns
Exceptions
See Also
View Source
get_IsStackAllocated<T>(ReadOnlySpan<T>)
Gets a value indicating that the span represents a memory allocated on the stack.
Declaration
public static bool get_IsStackAllocated<T>(ReadOnlySpan<T> span)
Parameters
Returns
Type Parameters
Exceptions
See Also
View Source
get_IsStackDetectionSupported()
Declaration
public static bool get_IsStackDetectionSupported()
Returns
View Source
get_RemainingExecutionStack()
Gets the remaining execution stack space.
Declaration
public static nuint get_RemainingExecutionStack()
Returns
Exceptions
See Also