コード例 #1
0
        public void CreateThreadCache(int cacheSize, CacheWarmupOptions warmupOption)
        {
            if (cacheSize == 0 || cacheSize < 0)
            {
                throw new ArgumentOutOfRangeException();
            }

            Native.sm_allocator_thread_cache_create(nativeAllocator, warmupOption, (IntPtr)cacheSize);
        }
コード例 #2
0
 internal static extern void sm_allocator_thread_cache_create(IntPtr allocator, CacheWarmupOptions warmupOption, IntPtr cacheSize);