Exemplo n.º 1
0
        public Standard(bool clear = true, int bufferSize = DefaultBufferSize, IAllocEvents allocEvents = null, IAllocEvents cacheEvents = null, int cacheSize = DefaultCacheSize)
        {
            if (bufferSize <= 0)
            {
                throw new ArgumentException("Buffer size must be bigger than 0", nameof(bufferSize));
            }

            _standard = new StandardInternal <IntPtr>(new UnmanagedAllocator(), clear, bufferSize, cacheSize, allocEvents, cacheEvents);
        }