public T[] GetPrimitivesArray <T>(int fbPos, bool ignoreLookup = false) where T : struct { try { UnityEngine.Profiling.Profiler.BeginSample("PutIntoDeserializeCache"); int bufPos = GetBufferPos(fbPos); if (bufPos == 0) { return(null); } if (typeof(T).IsEnum) { int[] tA = __p.__vector_as_array <int>(fbPos, true, true); T[] result = tA.Cast <T>().ToArray(); return(result); } else { T[] tA = __p.__vector_as_array <T>(fbPos, true, true); return(tA); } } finally { UnityEngine.Profiling.Profiler.EndSample(); } }