コード例 #1
0
 /// <exception cref="System.IO.IOException"></exception>
 internal virtual void CopyPackAsIs(PackOutputStream @out, bool validate, WindowCursor
                                    curs)
 {
     // Pin the first window, this ensures the length is accurate.
     curs.Pin(this, 0);
     curs.CopyPackAsIs(this, length, validate, @out);
 }
コード例 #2
0
ファイル: PackInputStream.cs プロジェクト: LunarLanding/ngit
		/// <exception cref="System.IO.IOException"></exception>
		internal PackInputStream(PackFile pack, long pos, WindowCursor wc)
		{
			this.pack = pack;
			this.pos = pos;
			this.wc = wc;
			// Pin the first window, to ensure the pack is open and valid.
			//
			wc.Pin(pack, pos);
		}
コード例 #3
0
 /// <exception cref="System.IO.IOException"></exception>
 internal PackInputStream(PackFile pack, long pos, WindowCursor wc)
 {
     this.pack = pack;
     this.pos  = pos;
     this.wc   = wc;
     // Pin the first window, to ensure the pack is open and valid.
     //
     wc.Pin(pack, pos);
 }