public static string InitializeMetadataString(uint *ptr) { return((string)Intrinsic.GetObjectFromAddress(ptr)); }
private static RuntimeTypeHandle GetTypeHandle(object obj) { var o = Intrinsic.GetObjectAddress(obj); return(new RuntimeTypeHandle(Intrinsic.LoadPointer(o))); }
public static int GetLength(IntPtr array, int dimension) { return((int)Intrinsic.Load32(array, IntPtr.Size * 2)); }
public static Pointer GetObjectHashValue(object obj) { var address = Intrinsic.GetObjectAddress(obj); return(address - Pointer.Size - 4 - 4); }
public static Pointer GetObjectLockAndStatus(object obj) { var address = Intrinsic.GetObjectAddress(obj); return(address - Pointer.Size - 4); }
public static Pointer GetTypeDefinition(object obj) { var address = Intrinsic.GetObjectAddress(obj); return(address.LoadPointer(-Pointer.Size)); }