コード例 #1
0
ファイル: WindowCursor.cs プロジェクト: HackerBaloo/GitSharp
 /// <summary>
 /// Release the current window cursor.
 /// </summary>
 public void Release()
 {
     _byteWindow = null;
     try
     {
         InflaterCache.Instance.release(_inflater);
     }
     finally
     {
         _inflater = null;
     }
 }
コード例 #2
0
ファイル: WindowCursor.cs プロジェクト: HackerBaloo/GitSharp
 private void Pin(PackFile pack, long position)
 {
     ByteWindow w = _byteWindow;
     if (w == null || !w.contains(pack, position))
     {
         // If memory is low, we may need what is in our window field to
         // be cleaned up by the GC during the get for the next window.
         // So we always clear it, even though we are just going to set
         // it again.
         //
         _byteWindow = null;
         _byteWindow = WindowCache.get(pack, position);
     }
 }
コード例 #3
0
ファイル: WindowCursor.cs プロジェクト: ArildF/GitSharp
 /** Release the current window cursor. */
 public void release()
 {
     window = null;
     try
     {
         InflaterCache.Instance.release(inf);
     }
     finally
     {
         inf = null;
     }
 }