Microsoft.AspNet.SignalR.Infrastructure.MemoryPoolTextWriter.MemoryPoolTextWriter C# (CSharp) Method

MemoryPoolTextWriter() public method

public MemoryPoolTextWriter ( IMemoryPool memory ) : System
memory IMemoryPool
return System
        public MemoryPoolTextWriter(IMemoryPool memory)
            : base(CultureInfo.InvariantCulture)
        {
            _memory = memory;
            _textArray = _memory.AllocChar(_textLength);
            _dataArray = MemoryPool.EmptyArray;
            _encoder = Encoding.UTF8.GetEncoder();
        }