GetFixedDataContainer() public méthode

Allocates a fixed chunk of memory. Fixed chunks cannot be freed, but may be of any size. For debugging ease, a description is required when requesting a fixed chunk.
public GetFixedDataContainer ( int size, string description ) : GATData
size int
description string
Résultat GATData
Exemple #1
0
        /// <summary>
        /// Convenience method to request a chunk of fixed virtual memory from the default
        /// GATDataAllocator instance.
        /// </summary>
        public static GATData GetFixedDataContainer(int length, string description)
        {
#if UNITY_EDITOR
            if (Application.isPlaying == false)
            {
                return(new GATData(new float[length]));
            }
#endif
            return(__allocator.GetFixedDataContainer(length, description));
        }