Exemple #1
0
        public CryptoMemoryOwner(int minimumLength, bool clearAll = true)
        {
            this.memory   = CryptoPool.SharedRent <T>(minimumLength);
            this.clearAll = clearAll;

            this.Memory = new Memory <T>(this.memory);
        }
Exemple #2
0
        public CryptoMemoryOwner(int minimumLength, bool clearAll = true)
        {
            _memory   = CryptoPool.SharedRent <T>(minimumLength);
            _clearAll = clearAll;

            Memory = _memory.AsMemory();
        }