/// <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); }
/// <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); }