Exemplo n.º 1
0
 public static string InitializeMetadataString(uint *ptr)
 {
     return((string)Intrinsic.GetObjectFromAddress(ptr));
 }
Exemplo n.º 2
0
        private static RuntimeTypeHandle GetTypeHandle(object obj)
        {
            var o = Intrinsic.GetObjectAddress(obj);

            return(new RuntimeTypeHandle(Intrinsic.LoadPointer(o)));
        }
Exemplo n.º 3
0
 public static int GetLength(IntPtr array, int dimension)
 {
     return((int)Intrinsic.Load32(array, IntPtr.Size * 2));
 }
Exemplo n.º 4
0
        public static Pointer GetObjectHashValue(object obj)
        {
            var address = Intrinsic.GetObjectAddress(obj);

            return(address - Pointer.Size - 4 - 4);
        }
Exemplo n.º 5
0
        public static Pointer GetObjectLockAndStatus(object obj)
        {
            var address = Intrinsic.GetObjectAddress(obj);

            return(address - Pointer.Size - 4);
        }
Exemplo n.º 6
0
        public static Pointer GetTypeDefinition(object obj)
        {
            var address = Intrinsic.GetObjectAddress(obj);

            return(address.LoadPointer(-Pointer.Size));
        }