public ReusableTempWriter(ArrayPool <byte> bufferPool, ObjectPool <ReusableTempWriter> memStreamPool)
        {
            _memoryStream = new MemoryStreamSlim(bufferPool, AmqpPrimitivesWriter.BufferSize);

            _innerWriter = new InternalBigEndianWriter(_memoryStream);

            _writer2 = new AmqpPrimitivesWriter(_innerWriter, bufferPool, memStreamPool);
        }
        public ReusableTempWriter(ArrayPool<byte> bufferPool, ObjectPool<ReusableTempWriter> memStreamPool)
        {
            _memoryStream = new MemoryStreamSlim(bufferPool, AmqpPrimitivesWriter.BufferSize);

            _innerWriter = new InternalBigEndianWriter(_memoryStream);

            _writer2 = new AmqpPrimitivesWriter(_innerWriter, bufferPool, memStreamPool);
        }