Пример #1
0
        public static NativePointer <N> Create <N>(RNA rna, string ctype, IntPtr ptr) where N : struct
        {
            Console.WriteLine($"Create NativePointer<{typeof(N)}>, ptr={ptr}, ctype={ctype}");

            var entity = rna.FindEntityForCType(ctype);

            return(new NativePointer <N>(rna, entity, ptr));
        }
Пример #2
0
        public static NativeArray <N> Create <N>(RNA rna, string ctype, int count, IntPtr ptr) where N : struct
        {
            var entity = rna.FindEntityForCType(ctype);

            return(new NativeArray <N>(rna, entity, ptr, count));
        }