Esempio n. 1
0
        public static unsafe RCArray Create <T>(int length)
            where T : unmanaged
        {
            var context = new mir_rc_context_ptr(MirTypeInfoBuilder <T> .Info, new UIntPtr((uint)length));

            return(new RCArray(context));
        }
Esempio n. 2
0
        internal static unsafe RCPtr Create <T>()
            where T : unmanaged
        {
            var context = new mir_rc_context_ptr(MirTypeInfoBuilder <T> .Info, new UIntPtr(1));

            return(new RCPtr(context));
        }
Esempio n. 3
0
 internal unsafe RCArray(mir_rc_context_ptr context)
     : this(context.ToFollowingPtr())
 {
 }
Esempio n. 4
0
 internal SlimRCPtr(mir_rc_context_ptr context)
 {
     Ptr = context.ToFollowingPtr();
 }
Esempio n. 5
0
 internal RCPtr(IntPtr ptr, mir_rc_context_ptr context)
 {
     Ptr     = ptr;
     Context = context;
 }
Esempio n. 6
0
 internal RCPtr(mir_rc_context_ptr context)
 {
     Ptr     = context.ToFollowingPtr();
     Context = context;
 }