public ByteArrayBuilder(com.fasterxml.jackson.core.util.BufferRecycler br, int firstBlockSize
     )
 {
     // Size of the first block we will allocate.
     // Maximum block size we will use for individual non-aggregated
     // blocks. Let's limit to using 256k chunks.
     // Optional buffer recycler instance that we can use for allocating the first block.
     // Number of bytes within byte arrays in {@link _pastBlocks}.
     _bufferRecycler = br;
     _currBlock = (br == null) ? new byte[firstBlockSize] : br.allocByteBuffer(com.fasterxml.jackson.core.util.BufferRecycler
         .BYTE_WRITE_CONCAT_BUFFER);
 }
 public TextBuffer(com.fasterxml.jackson.core.util.BufferRecycler allocator)
 {
     /*
     /**********************************************************
     /* Configuration:
     /**********************************************************
     */
     /*
     /**********************************************************
     /* Shared input buffers
     /**********************************************************
     */
     /*
     /**********************************************************
     /* Aggregation segments (when not using input buf)
     /**********************************************************
     */
     // // // Currently used segment; not (yet) contained in _seqments
     /*
     /**********************************************************
     /* Caching of results
     /**********************************************************
     */
     /*
     /**********************************************************
     /* Life-cycle
     /**********************************************************
     */
     _allocator = allocator;
 }
 public IOContext(com.fasterxml.jackson.core.util.BufferRecycler br, object sourceRef
     , bool managedResource)
 {
     /*
     /**********************************************************
     /* Configuration
     /**********************************************************
     */
     /*
     /**********************************************************
     /* Buffer handling, recycling
     /**********************************************************
     */
     /*
     /**********************************************************
     /* Life-cycle
     /**********************************************************
     */
     _bufferRecycler = br;
     _sourceRef = sourceRef;
     _managedResource = managedResource;
 }
		/*
		/**********************************************************
		/* Internal factory methods, other
		/**********************************************************
		*/
		/// <summary>
		/// Method used by factory to create buffer recycler instances
		/// for parsers and generators.
		/// </summary>
		/// <remarks>
		/// Method used by factory to create buffer recycler instances
		/// for parsers and generators.
		/// <p>
		/// Note: only public to give access for <code>ObjectMapper</code>
		/// </remarks>
		public virtual com.fasterxml.jackson.core.util.BufferRecycler _getBufferRecycler(
			)
		{
			com.fasterxml.jackson.core.util.BufferRecycler br;
			/* 23-Apr-2015, tatu: Let's allow disabling of buffer recycling
			*   scheme, for cases where it is considered harmful (possibly
			*   on Android, for example)
			*/
			if (isEnabled(com.fasterxml.jackson.core.JsonFactory.Feature.USE_THREAD_LOCAL_FOR_BUFFER_RECYCLING
				))
			{
				Sharpen.SoftReference<com.fasterxml.jackson.core.util.BufferRecycler> @ref = _recyclerRef
					.get();
				br = (@ref == null) ? null : @ref.get();
				if (br == null)
				{
					br = new com.fasterxml.jackson.core.util.BufferRecycler();
					_recyclerRef.set(new Sharpen.SoftReference<com.fasterxml.jackson.core.util.BufferRecycler
						>(br));
				}
			}
			else
			{
				br = new com.fasterxml.jackson.core.util.BufferRecycler();
			}
			return br;
		}