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); }
internal static extern void sm_allocator_thread_cache_create(IntPtr allocator, CacheWarmupOptions warmupOption, IntPtr cacheSize);