コード例 #1
0
ファイル: PackParser.cs プロジェクト: LunarLanding/ngit
			/// <exception cref="System.IO.IOException"></exception>
			internal virtual void Open(PackParser.Source source, long inflatedSize)
			{
				this.src = source;
				this.expectedSize = inflatedSize;
				this.actualSize = 0;
				this.p = this._enclosing.Fill(this.src, 1);
				this.inf.SetInput(this._enclosing.buf, this.p, this._enclosing.bAvail);
			}
コード例 #2
0
 /// <exception cref="System.IO.IOException"></exception>
 protected internal override void OnObjectData(PackParser.Source src, byte[] raw,
                                               int pos, int len)
 {
     crc.Update(raw, pos, len);
 }