public static T *tnew <T>(Unity.Collections.Allocator allocator = Unity.Collections.Allocator.Persistent) where T : unmanaged { return(MemUtils.Create <T>(allocator)); }
//[MethodImplAttribute(MethodImplOptions.AggressiveInlining)] public static T *tnew <T>(ref T *ptr, ref T source, Unity.Collections.Allocator allocator = Unity.Collections.Allocator.Persistent) where T : unmanaged { return(MemUtils.Create(ref ptr, ref source, allocator)); }