GetFixedDataContainer() 공개 메소드

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
리턴 GATData
예제 #1
0
파일: GATManager.cs 프로젝트: r618/G-Audio
        /// <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));
        }