Method PointerToInt
PointerToInt(Value, ITypeRef)
Builds a cast from a pointer to an integer type
Declaration
public Value PointerToInt(Value ptrValue, ITypeRef intType)
Parameters
public Value PointerToInt(Value ptrValue, ITypeRef intType)
Value | ptrValue | Pointer value to cast |
ITypeRef | intType | Integer type to return |
Returns
Value | Resulting value from the cast |
Remarks
The actual type of value returned depends on ptrValue
and is either a ConstantExpression or a PointerToInt
instruction. Conversion to a constant expression is performed whenever possible.