Example #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));
        }
Example #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));
        }