Exemple #1
0
        public T AllocInit <T>() where T : struct
        {
            IntPtr value = ObjectiveCRuntime.IntPtr_objc_msgSend(NativePtr, "alloc");

            ObjectiveCRuntime.objc_msgSend(value, "init");
            return(Unsafe.AsRef <T>(&value));
        }
 public unsafe void setConstantValuetypeatIndex(void *value, MTLDataType type, UIntPtr index)
 {
     ObjectiveCRuntime.objc_msgSend(NativePtr, sel_setConstantValuetypeatIndex, value, (uint)type, index);
 }