Ejemplo n.º 1
0
        /// <summary>
        /// Gets a PooledBitStream from the static BitStreamPool
        /// </summary>
        /// <returns>PooledBitStream</returns>
        public static PooledBitStream Get()
        {
            PooledBitStream stream = BitStreamPool.GetStream();

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