Method TypeCast
TypeCast<T>(IntPtr, int)
Helper method to get a reference to a struct data from its address in memory.
Declaration
public static ref T TypeCast<T>(IntPtr value, int offset = 0) where T : struct
Parameters
Type | Name | Description |
---|---|---|
IntPtr | value | |
int | offset |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |