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