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