Ejemplo n.º 1
0
        /// <summary>
        /// Gets a PooledBitReader from the static BitReaderPool
        /// </summary>
        /// <returns>PooledBitReader</returns>
        public static PooledBitReader Get(Stream stream)
        {
            PooledBitReader reader = BitReaderPool.GetReader(stream);

            reader.isDisposed = false;
            return(reader);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns the PooledBitReader into the static BitReaderPool
 /// </summary>
 public void Dispose()
 {
     if (!isDisposed)
     {
         isDisposed = true;
         BitReaderPool.PutBackInPool(this);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Returns the PooledBitReader into the static BitReaderPool
 /// </summary>
 public void Dispose()
 {
     BitReaderPool.PutBackInPool(this);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Gets a PooledBitReader from the static BitReaderPool
 /// </summary>
 /// <returns>PooledBitReader</returns>
 public static PooledBitReader Get(Stream stream)
 {
     return(BitReaderPool.GetReader(stream));
 }